简体   繁体   English

Phpfarm在添加mysql支持时从包含中删除zlib

[英]Phpfarm dropping zlib from include when adding mysql support

I have phpfarm compiling php 5.4.21 without error. 我有phpfarm编译php 5.4.21,没有错误。 But when I try to add in support for mysql by adding a custom-options-5.4.21.sh: 但是当我尝试通过添加一个custom-options-5.4.21.sh添加对mysql的支持时:

configoptions="--with-mysql=/usr/"

I end up with a failed compile ending with: 我最终以失败告终:

-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

It looks like phpfarm is dropping -lz from the linked libraries, but the error is coming from libz.so.1, so does that mean that it is using the zlib library? 看起来phpfarm正在从链接的库中删除-lz,但是错误来自libz.so.1,这是否意味着它正在使用zlib库?

Think I figured it out. 想想我知道了。 I had run phpfarm's compile.sh before I had installed libmysqlclient-dev. 在安装libmysqlclient-dev之前,我已经运行phpfarm的compile.sh。 In the post where I found to install that the post had said to run a make clean. 在我发现要安装的帖子中,该帖子说要进行清洁。 I just assumed phpfarm did that. 我只是假设phpfarm做到了。 Turns out, it's in that scipt, but commented out. 事实证明,它就在其中,但已注释掉。 Went into the php source directory and ran make clean and now it compiles fine. 进入php源代码目录并进行清理,现在可以正常编译了。

i got rid of this error by including --with-zlib in the end of configuration command. 我通过在配置命令末尾包含--with-zlib摆脱了此错误。 here is what i have done: 这是我所做的:

./configure --with-mysql --with-libdir=/lib/x86_64-linux-gnu/ --with-zlib ./configure --with-mysql --with-libdir = / lib / x86_64-linux-gnu / --with-zlib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM