编译PHP提示zip错误,请问怎么解决

搜遍google了也没找到答案,编译出现这个错误

/home/levi/soft/php-5.6.8/ext/zip/lib/zipint.h:118:2: error: #error unsupported size of off_t
 #error unsupported size of off_t
  ^
make: *** [ext/zip/lib/zip_add.lo] 错误 1

情况和这个一样:https://bugs.php.net/bug.php?id=68302

求解

阅读 14.4k
2 个回答
vi /etc/ld.so.conf.d/local.conf //创建local.conf
/usr/local/lib //添加输入
ldconfig -v //执行命令

按照“已采纳”的答案解决,高版本PHP在configure时会报“configure: error: off_t undefined; check your library configuration”错误,同样也可以这么解决。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题