amphp / ext-uv

Other
191 stars 28 forks source link

configure: error: wrong uv library version or library not found #105

Closed twomiao closed 2 years ago

twomiao commented 3 years ago

PHP information:

PHP 7.4.16 (cli) (built: Apr 28 2021 18:20:46) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies

Error message:

checking for libuv... checking for uv_version in -luv... no configure: error: wrong uv library version or library not found Lack of vu environment, how to solve it?

iggyvolz commented 2 years ago

You would have to install the UV package on your operating system - https://pkgs.org/search/?q=libuv

On Ubuntu/Debian I found success with apt install libuv1, it looks like Alpine uses apk add libuv and Fedora/CentOS/RHEL uses yum install libuv.

kelunik commented 2 years ago

You'll likely need libuv1-dev for the header files.