编译安装php过程中报错及解决

回复 收藏
[root@66 php-5.4.45]# ./configure --prefix=/usr/local/php.5.4.45 \
> --enable-fpm   --with-fpm-user=php-fpm  --with-fpm-group=php-fpm   --with-mysql=/usr/local/mysql  --with-mysql-sock=/tmp/mysql.sock  --with-libxml-dir  --with-gd   --with-jpeg-dir   --with-png-dir   --with-freetype-dir  --with-iconv-dir   --with-zlib-dir   --with-mcrypt   --enable-soap   --enable-gd-native-ttf   --enable-ftp  --enable-mbstring  --enable-exif    --disable-ipv6     --with-curl  
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cc... no
checking for gcc... no
configure: error: in `/usr/local/src/php-5.4.45':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
***yum install gcc
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
[root@66 php-5.4.45]# yum install libxml2-devel
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
[root@66 php-5.4.45]# yum install -y libcurl-devel
configure: error: jpeglib.h not found.
yum install libjpeg-devel
configure: error: png.h not found.
[root@66 php-5.4.45]# yum install -y libpng-devel
configure: error: freetype-config not found.
[root@66 php-5.4.45]# yum install -y freetype-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
[root@66 php-5.4.45]# yum install -y epel-release
[root@66 php-5.4.45]# yum install -y libmcrypt-devel

至此OK



2016-04-12 20:37 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: