对php7进行重新编译
- 进入php的源文件目录 cd Downloads/php-7.0.11
- make clean先将上次编译的结果清除掉
- ./configure –prefix=/usr/local/php7 –with-config-file-path=/usr/local/php7/etc –with-apxs2=/usr/local/httpd/bin/apxs –with-iconv-dir=/usr/local/lib –enable-mysqlnd –with-pdo-mysql=mysqlnd
- make ZEND _EXTRA _LIBS=’-liconv’
- sudo make install
- 执行php -m就会看到