欢迎光临
我们一直在努力

php7.3-编译安装过程中碰到的3个错误

php7.3在Linux7环境中编译安装过程中碰到的3个错误,解决方法整理如下:

  • configure: error: Please reinstall the libzip distribution
#解决方法:
wget https://nih.at/libzip/libzip-1.2.0.tar.gz
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
#解决方法
# 添加搜索路径到配置文件
echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
# 更新配置
ldconfig -v
  • /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire
#解决方法:手动复制过去
cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
赞(17) 打赏
原创文章转载请注明出处:爱编程 » php7.3-编译安装过程中碰到的3个错误
分享到: 更多

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

爱编程、一个运维兼程序员的博客!

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏