是因为内存过小的原因,编译时加上 --disable-fileinfo

 

出现make: *** [sapi/cli/php] Error 1 解决办法(php7.3版本报错util.c没有修复安装7.1或7.2版本)

undefined reference to `libiconv_open

 

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

tar -zxvf libiconv-1.13.1.tar.gz
cd libiconv-1.13.1
./configure --prefix=/usr/local/libiconv
make
make install
php编译时添加 --with-iconv=/usr/local/libiconv
 
 
 

报错:error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

解决: 编译php的参数的时候--disable-pdo了

 

 

解决”Autoconf version 2.64 or higher is required“错误

查询当前版本:
[root@wslu-cs wslu]# rpm -qf /usr/bin/autoconf
autoconf-2.63-5.1.el6.noarch

卸载当前版本:
[root@wslu-cs wslu]# rpm -e --nodeps autoconf-2.63

安装最新版本:
[root@wslu-cs wslu]# wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
[root@wslu-cs wslu]# tar zxvf autoconf-2.69.tar.gz
[root@wslu-cs wslu]# cd autoconf-2.69
[root@wslu-cs wslu]# ./configure --prefix=/usr/
[root@wslu-cs wslu]# make && make install

查看当前版本:
[root@wslu-cs autoconf-2.69]# /usr/bin/autoconf -V

添加软链: ln -s /usr/bin/autoconf /usr/bin

 

相关文章:

  • 2021-08-01
  • 2021-06-13
  • 2021-05-06
  • 2021-04-27
  • 2022-03-08
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2018-02-18
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案