简体   繁体   English

Piwigo“中止 pclzip.lib.php:缺少 zlib 扩展”错误

[英]Piwigo "Abort pclzip.lib.php : Missing zlib extensions" error

I'm trying to install the Community Plugin for Piwigo and am getting the following error:我正在尝试为 Piwigo 安装社区插件,但出现以下错误:

Abort pclzip.lib.php : Missing zlib extensions

I've been searching and trying as much as I can and still am not able to solve this issue.我一直在尽可能多地搜索和尝试,但仍然无法解决这个问题。 It looks to be something about gzopen really now being gzopen64 .看起来gzopen现在真的是gzopen64

I have verified I have zlib installed.我已经验证我已经安装了 zlib。 I have the latest and greatest Piwigo 2.8.0.我有最新最好的 Piwigo 2.8.0。

I've found these and tried them - sadly it hasn't helped:我找到了这些并尝试了它们 - 遗憾的是它没有帮助:

http://www.thomasmonaco.com/pclzip-lib-php-missing-zlib-extensions/ https://forum.synology.com/enu/viewtopic.php?t=33684 http://www.thomasmonaco.com/pclzip-lib-php-missing-zlib-extensions/ https://forum.synology.com/enu/viewtopic.php?t=33684

This issue was supposed to be fixed in 2.7.2 per the following link: http://piwigo.org/forum/viewtopic.php?id=23759这个问题应该通过以下链接在 2.7.2 中修复: http : //piwigo.org/forum/viewtopic.php?id=23759

However I don't know HOW to implement this fix.但是我不知道如何实施此修复程序。

Any help is extremely appreciated.非常感谢任何帮助。

Piwigo version: 2.8.0
PHP version: 5.6.19
MySQL version: 5.6.27
Piwigo URL: http://{localserver}/piwigo

Figured out solution.想出了解决办法。

the PHP wasn't compiled with zlib that @OhgodWhy pointed out. PHP 不是用@OhgodWhy 指出的 zlib 编译的。

I went to /usr/ports/lang/php56 and did make deinstall clean我去了 /usr/ports/lang/php56 并确实make deinstall clean

then reinstalled php56 with the php56-zlib module.然后使用php56-zlib模块重新安装php56

And everything works!一切正常!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM