PHP 7.0.14(Arch Linux)抱怨以下错误
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/modules/zip.so' - libzip.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
locate libzip.so.4
找不到任何内容
看起来我有更新版本的libzip(libzip.so.5)
$ locate zip.so
/usr/lib/libminizip.so
/usr/lib/libminizip.so.1
/usr/lib/libminizip.so.1.0.0
/usr/lib/libzip.so
/usr/lib/libzip.so.5
/usr/lib/libzip.so.5.0.0
/usr/lib/gnome-vfs-2.0/modules/libgzip.so
/usr/lib/jvm/java-7-openjdk/jre/lib/amd64/libzip.so
/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libzip.so
/usr/lib/php/modules/zip.so
如何使用新的zip lib在Arch Linux for php-7.0.14中重建它?
我已经有/var/cache/pacman/pkg/php-7.0.14-1-x86_64.pkg.tar.xz
答案 0 :(得分:1)
试试这个:
sudo apt-get install php7.0-zip
并安装
sudo apt-get install php7.0-gd
然后重启apache
sudo /etc/init.d/apache2 restart