![](/img/trans.png)
[英]Dealing with “the requested PHP extension pdo_sqlite is missing from your system. ” when running composer install
[英]Composer Install : the requested PHP extension zip is missing from your system
我想在服务器上安装composer,但是我收到错误“系统中缺少所请求的PHP扩展zip”。 我试过键入命令
sudo apt-get install php7.1-zip
但得到另一个错误
E:无法找到php7.1-zip软件包E:找不到任何软件包由regex'php7.1-zip'
有没有人经历过它?
尝试这个
sudo apt install php-zip
要么
sudo apt-get install php-zip
我将安装您系统支持的最新版本,
然后重启你的apache服务器
sudo /etc/init.d/apache2 restart
您应该安装它的环境中缺少扩展名php-zip
检查已安装的扩展程序运行
php -m
然后,如果没有php-zip
,你可以添加它:
如果你在ubuntu上,这将安装它
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.0-zip
那么您应该restart the server
以应用更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.