Home > Backend Development > PHP Tutorial > 编译PHP提示zip错误,请问怎么解决

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

WBOY
Release: 2016-06-06 20:35:42
Original
2237 people have browsed it

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

<code>/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
</code>
Copy after login
Copy after login

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

求解

回复内容:

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

<code>/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
</code>
Copy after login
Copy after login

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

求解

<code>vi /etc/ld.so.conf.d/local.conf //创建local.conf
/usr/local/lib //添加输入
ldconfig -v //执行命令
</code>
Copy after login

我按照一楼的方法解决了问题

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template