歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下編譯PHP 5.3.8 出錯:make: *** [sapi/fpm/php-fpm] Error 1

Linux下編譯PHP 5.3.8 出錯:make: *** [sapi/fpm/php-fpm] Error 1

日期:2017/2/28 15:54:41   编辑:Linux教程

在Linux下編譯安裝PHP的時候make報錯,make: *** [sapi/fpm/php-fpm] Error 1

原因iconv重復安裝在不同目錄,造成include文件iconv.h等重復 通過 find / -name “iconv.h” 如果查找到2個以上返回結果,說明 iconv重復安裝了,卸載多余的版本即可正常編譯。

安裝iconv是源碼編譯安裝,於是到安裝目錄cd /usr/local/src/libiconv-1.13.1,執行 make uninstall卸載自己安裝的版本。再重新

cd /usr/local/src/php-5.3.8,

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap

make

make install

Copyright © Linux教程網 All Rights Reserved