计算机网络/计算机科学与应用/系统/运维/开发

PHP7.2编译安装时make: *** [sapi/cli/php] 错误 1

php编译

./configure 

     --prefix=/usr/local/php7  

     --with-gd 

     --with-iconv 

     --with-mcrypt  

     --with-pdo-mysql=shared,mysqlnd 

     --with-zlib 

     --enable-xml 

     --enable-mbstring 

     --enable-pcntl 

     --with-curl


出现错误:

collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] 错误 1


解决方法:

make ZEND_EXTRA_LIBS='-liconv' 

或者

vim Makefile

添加  -lcrypt


PHP

只要一个人还有追求,他就没有老。直到后悔取代了梦想,一个人才算老。熬过了必须的苦,才能过上喜欢的生活。

评论

^