php编译安装报错记录及解决方法

php安装报错

报错
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
解决方法

yum -y install postgresql-devel

报错
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
解决方法

yum -y install libxslt-devel

报错
configure: WARNING: unrecognized options: --with-gd–enable-gd-native-ttf, --without-pear–with-gettext
解决方法

命令与命令之前缺少空格隔开(有时候也需要留意“--”符号是否少了)

报错
configure: WARNING: unrecognized options:–enable-magic-quotes --enable-safe-mode --with-curlwrappers
解决方法

直接移除这三项内容,报错原因是该php版本已经移除这几项默认支持了。

你可能感兴趣的:(php编译安装报错记录及解决方法)