centos7源码安装php5.3遇到的问题及解决
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
终于可以了
相关推荐
Noneyes 2020-11-10
Phplayers 2020-09-05
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23