Php 编写器安装要求
我正在尝试将composer安装到laravel项目中。 当我在projects目录中安装Php 编写器安装要求,php,linux,laravel,composer-php,Php,Linux,Laravel,Composer Php,我正在尝试将composer安装到laravel项目中。 当我在projects目录中安装sudo composer时,会显示两个错误: Problem 1 - Installation request for simplesoftwareio/simple-qrcode dev-master -> satisfiable by simplesoftwareio/simple-qrcode[dev-master]. - simplesoftwareio/simple-qrc
sudo composer
时,会显示两个错误:
Problem 1
- Installation request for simplesoftwareio/simple-qrcode dev-master -> satisfiable by simplesoftwareio/simple-qrcode[dev-master].
- simplesoftwareio/simple-qrcode dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
- Installation request for esendex/sdk ^1.3 -> satisfiable by esendex/sdk[v1.3.0].
- esendex/sdk v1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
我正在检查如何安装它,发现以下命令:
编写器需要simplesoftwareio/simple qrcode
编写器需要esendex/sdk
- simplesoftwareio/simple qrcode开发主机需要ext gd*->系统中缺少请求的PHP扩展gd
- esendex/sdk v1.3.0需要ext curl*->系统中缺少请求的PHP扩展curl
例如,Ubuntu16.10提供了
PHPGD
和PHPCURL
系统包。看起来您缺少一些php模块
对于PHP5
对于PHP7
软件包可能因您的操作系统而异
您的系统上是否安装了PHP扩展名
ext gd
和ext curl
?阅读错误消息可能会有所帮助。安装缺少的扩展,然后再试一次。例如,Ubuntu 20.4提供了php gd和php curl系统包。它告诉我找不到php5 curl,但我刚刚编写了sudo apt get Install php*-curl
,它可以工作。谢谢:)
sudo apt-get install php5-curl
sudo apt-get install php5-gd
sudo apt-get install php7-curl
sudo apt-get install php7-gd