资讯专栏INFORMATION COLUMN

centos7源码安装php5.3遇到的问题及解决

adie / 1765人阅读

摘要:的时候报参考解决了又报错参考终于可以了

make的时候报
note: in definition of macro ‘ZVAL_STRINGL’
参考 https://blog.csdn.net/kajweb/...
解决了

[root@localhost php-5.3.3]# curl -o php-5.x.x.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
[root@localhost php-5.3.3]# cd php-5.3.3
[root@localhost php-5.3.3]# patch -p0 -b < /root/php-5.x.x.patch 
[root@localhost php-5.3.3]# yum install patch
[root@localhost php-5.3.3]# patch -p0 -b < /root/php-5.x.x.patch 
[root@localhost php-5.3.3]# make clean
[root@localhost php-5.3.3]# ./configure --prefix=/usr/local/php/php53 --datadir=/usr/local/php/php53/doc --mandir=/usr/local/php/php53/man --with-config-file-path=/usr/local/php/php53/etc --with-mcrypt --with-mhash --with-openssl --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd --with-zlib --enable-zip --disable-rpath --enable-shared --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbstring --enable-ftp --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --without-pear --with-gettext --with-curl --with-freetype-dir --enable-fpm --enable-fast-install
[root@localhost php-5.3.3]# make
[root@localhost php-5.3.3]# make install 

又报错
undefined reference to `php_ob_gzhandler_check"

参考 https://bugs.php.net/bug.php?...

[root@localhost php-5.3.3]# rm config.cache
[root@localhost php-5.3.3]# ./configure --prefix=/usr/local/php/php53 --datadir=/usr/local/php/php53/doc --mandir=/usr/local/php/php53/man --with-config-file-path=/usr/local/php/php53/etc --with-mcrypt --with-mhash --with-openssl --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd --with-zlib --enable-zip --disable-rpath --enable-shared --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbstring --enable-ftp --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --without-pear --with-gettext --with-curl --with-freetype-dir --enable-fpm --enable-fast-install
[root@localhost php-5.3.3]# make clean && make
[root@localhost php-5.3.3]# make install

终于可以了

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/31684.html

相关文章

  • CentOS7源码编译安装MySQL5.7

    摘要:一安装准备官网下载页二下载在下载页,选择的版本。创建用户组和用户设置权限的安装目录为初始化数据库结果生成了一个临时密码,这个要记录下来。解决编辑配置文件,然后将写入其中。 一、安装准备 MySQL官网 https://www.mysql.com/ MySQL下载页 https://dev.mysql.com/downloa... 二、下载MySQL 在MySQL下载页,选择My...

    roadtogeek 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<