linux 编译安装 php

//配置

./configure --prefix=/usr/local/php_test --with-config-file-path=/usr/local/php_test/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --disable-fileinfo


此时我的电脑上出现一个问题就是关于iconv出错   是这个库的问题

make ZEND_EXTRA_LIBS='-liconv'

//make test  测试  ,如果没问题就安装

make && make install



你可能感兴趣的:(linux 编译安装 php)