我有 phpfarm 编译 php 5.4.21 没有错误。但是当我尝试通过添加 custom-options-5.4.21.sh 来添加对 mysql 的支持时:
configoptions="--with-mysql=/usr/"
我最终以失败的编译结尾:
-L/usr//lib/x86_64-linux-gnu -lcrypt -lresolv -lcrypt -lrt -lmysqlclient -lrt -lm -ldl -lnsl -lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -Wl,--rpath -Wl,/usr//lib/x86_64-linux-gnu
/usr/bin/ld: ext/standard/image.o: undefined reference to symbol 'uncompress'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
看起来 phpfarm 正在从链接库中删除 -lz,但错误来自 libz.so.1,这是否意味着它正在使用 zlib 库?