Skip to content

uv 和 swoole 同时启用的时候会导致 uv 找不到,分开各自编译都是ok的 #307

@minbaby

Description

@minbaby

今天更新了一下仓库,然后在编译8.1的时候报了如下的错

git commit: dabdb51 (xz use github)

[12:06:12] [INFO] Build OS:       Linux (x86_64)
[12:06:12] [INFO] Build SAPI:     cli
[12:06:12] [INFO] Extensions (5): zlib, openssl, curl, swoole, uv
[12:06:12] [INFO] Libraries (7):  zlib, openssl, brotli, nghttp2, curl, libcares, libuv
[12:06:12] [INFO] Strip Binaries: yes
[12:06:12] [INFO] Enable ZTS:     no
[12:06:12] [INFO] Hardcoded INI:  openssl.capath=/etc/ssl/certs
[12:06:12] [WARN] Some extensions will be enabled due to dependencies: zlib,openssl,curl

报错

checking Whether to enable the "dtrace" debug... no
checking for pkg-config... /home/min-work/code/php/static-php-cli/buildroot/bin/pkg-config
checking for libuv... from option: found in /home/min-work/code/php/static-php-cli/buildroot
checking for uv_version in -luv... no
configure: error: wrong uv library version or library not found

   SPC\exception\RuntimeException

  Command run failed with code[1]: cd '/home/min-work/code/php/static-php-cli/source/php-src' && LD_LIBRARY_PATH=/usr/local/musl/x86_64-linux-musl/lib ./configure --prefix= --with-valgrind=no --enable-shared=no --enable-static=yes --disable-all --disable-cgi --disable-phpdbg --enable-cli --disable-fpm --disable-embed --disable-micro --with-zlib --with-zlib-dir="/home/min-work/code/php/static-php-cli/buildroot" --with-openssl=/home/min-work/code/php/static-php-cli/buildroot --with-openssl-dir=/home/min-work/code/php/static-php-cli/buildroot --with-curl --enable-swoole --enable-swoole-coro-time --enable-thread-context --enable-swoole-curl --enable-openssl --enable-cares --with-brotli-dir=/home/min-work/code/php/static-php-cli/buildroot --with-nghttp2-dir=/home/min-work/code/php/static-php-cli/buildroot --disable-swoole-pgsql --disable-swoole-sqlite --with-uv="/home/min-work/code/php/static-php-cli/buildroot" CFLAGS='' CPPFLAGS='-I/home/min-work/code/php/static-php-cli/buildroot/include' LDFLAGS='-L/home/min-work/code/php/static-php-cli/buildroot/lib' LIBS='-ldl -lpthread'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkind/extensionIssues related to extensions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions