编译PHP5.3时候的错误
巴扎黑
巴扎黑 2017-04-11 10:16:04
0
2
396

CENTOS 6.5 ,下载了PHP5.3的源码,解压后,执行配置命令:

./configure —prefix=/usr/local/php5 —with-config-file-path=/usr/local/php5/etc —with-config-file-scan-dir=/usr/local/php5/etc/php.d —with-bz2 —with-openssl —with-zlib —with-mhash —with-pcre —enable-exif —enable-sockets —enable-mbstring —enable-xml —enable-fpm —enable-soap —with-gd —with-curl —with-mcrypt —with-unixODBC —with-imap —with-imap-ssl —with-jpeg-dir —with-png-dir —with-zlib-dir —with-freetype-dir —enable-gd-native-ttf —enable-gd-jis-conv —with-mysqli —with-pdo-mysql —enable-dom —with-kerberos —disable-debug

一开始遇到两个错误,都是因为缺少安装依赖引起的,修正后再次运行上面的代码,就报错:

configure: warning: —with-config-file-path=/usr/local/php5/etc: invalid host type

configure: error: can only configure for one host and one target at a time

这怎么解决?Google了下也没找到办法,有谁遇到过吗?

巴扎黑
巴扎黑

全部回复(2)
大家讲道理

Well, it looks like you have not installed GCC. Install it first.

google到的,参考一下咯

PHPzhong

先用 ./buildconf 进行系统监测。编译遇到的依赖问题可参考https://www.hongweipeng.com/i...

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!