作曲家的安装要求 [英] Composer installation requirements

查看:77
本文介绍了作曲家的安装要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将composer安装到laravel项目. 即时通讯在项目目录中执行sudo composer install时,向我显示两个错误:

I am trying to install composer to the laravel project. When im doing sudo composer install in projects directory it shows me two errors:

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.

我正在检查如何安装它,并且找到了以下命令:

I was checking how to install it and I found these commands:

  1. composer require simplesoftwareio/simple-qrcode
  2. composer require esendex/sdk
  1. composer require simplesoftwareio/simple-qrcode
  2. composer require esendex/sdk

无论如何,他们给了我同样的错误.我有什么可以做的吗?

Anyway, they are giving me the same error. Is there anything I can do about it?

推荐答案

好像您缺少一些PHP模块.

Looks like you have some PHP modules missing.

sudo apt-get install php5-curl
sudo apt-get install php5-gd

对于PHP7

sudo apt-get install php7-curl
sudo apt-get install php7-gd

根据操作系统的不同,软件包可能会有所不同

Packages may be different depending on your OS

这篇关于作曲家的安装要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆