編譯安裝php 的時候, 執(zhí)行make報錯誤
創(chuàng)新互聯(lián)公司是專業(yè)的景東網(wǎng)站建設(shè)公司,景東接單;提供網(wǎng)站設(shè)計制作、網(wǎng)站設(shè)計,網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行景東網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
make: *** [ext/phar/phar.php] 錯誤 127
[root@localhost php-5.4.9]# mkdir /usr/local/webserver/MySQL/include/mysql
[root@localhost php-5.4.9]# ln -s /usr/local/webserver/mysql/include/* /usr/local/webserver/mysql/include/mysql
[root@localhost php-5.4.9]# make ZEND_EXTRA_LIBS='-liconv'
拋錯:
Generating phar.phar
/usr/local/src/php-5.4.9/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
解決的方法如下:
#vi /etc/ld.so.conf
在里面加上一行
/usr/local/lib
2.然后運行/sbin/ldconfig
#/sbin/ldconfig
編譯make
#make ZEND_EXTRA_LIBS='-liconv'
拋錯:
Generating phar.phar
chmod: cannot access `ext/phar/phar.phar': No such file or directory
make: [ext/phar/phar.phar] Error 1 (ignored)
Build complete.
Don't forget to run 'make test'.
此處可以忽略 不過解決辦法如下
#cd ext/phar/
#cp ./phar.php ./phar.phar
然后到php5.4文件夾
#make ZEND_EXTRA_LIBS='-liconv'
#make test
#make install