php编译过程中的报错

checking build system type… Invalid configuration ./configure': machine./configure’ not recognized configure: error: /bin/sh ./config.sub ./configure failed

确定已安装
libtool
libtool-ltdl
libtool-ltdl-devel
如果没安装,使用yum  install  libtool
yum  install  libtool-ltdl
yum  install  libtool-ltdl-devel
 
然后将
/usr/share/libtool/config/config.guess
/usr/share/libtool/config/config.sub
复制到你当前要configure目录下

configure: error: Please reinstall the libzip distribution checking for libzip… configure: error: system libzip must be upgraded to version >= 0.11

yum remove libzip -y
 
下载安装、编译libzip
 
wget https://nih.at/libzip/libzip-1.2.0.tar.gz
#libzip 1.4及以上版本安装需要cmake,此处选择1.2
tar -zxvf libzip-1.2.0.tar.gz cd libzip-1.2.0
./configure
  make
 make install

configure: error: off_t undefined; check your library configuration

[root@localhost ~]# vim /etc/ld.so.conf
 
include ld.so.conf.d/*.conf                          #此行原有
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
 
[root@localhost ~]# ldconfig -v
[root@localhost ~]# echo 'ldconfig' >> /etc/rc.local

make: *** [ext/zip/php_zip.lo] 错误 1 make: *** 正在等待未完成的任务… In file included from /root/php-7.3.4/ext/zip/php_zip.h:31:0, from /root/php-7.3.4/ext/zip/zip_stream.c:29: /usr/local/include/zip.h:59:21: 致命错误:zipconf.h:没有那个文件或目录

[root@localhost php-7.3.4]# cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
[root@localhost php-7.3.4]# make -j `grep processor /proc/cpuinfo | wc -l` && make install
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Rio520

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值