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