Laravel Php Artisan服务错误

时间:2016-11-07 03:37:01

标签: laravel

1天后没有睡觉, 我收到了这些错误,但仍然难以解决。 运行composer install / update后,总是会出现这些错误。

Your requirements could not be resolved to an installable set of packages.

问题1      - guzzle / guzzle v3.9.3需要ext-curl * - >系统中缺少所请求的PHP扩展curl。      - guzzle / guzzle v3.9.2需要ext-curl * - >系统中缺少所请求的PHP扩展curl。      - guzzle / guzzle v3.9.1需要ext-curl * - >系统中缺少所请求的PHP扩展curl。      - guzzle / guzzle v3.9.0需要ext-curl * - >系统中缺少所请求的PHP扩展curl。      - 喷嘴/喷嘴的安装要求~3.9 - > guzzle / guzzle满足[v3.9.0,v3.9.1,v3.9.2,v3.9.3]。

要启用扩展程序,请验证它们是否已在这些.ini文件中启用:      - /etc/php/7.0/cli/php.ini      - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini      - /etc/php/7.0/cli/conf.d/10-opcache.ini      - /etc/php/7.0/cli/conf.d/10-pdo.ini      - /etc/php/7.0/cli/conf.d/15-xml.ini      - /etc/php/7.0/cli/conf.d/20-calendar.ini      - /etc/php/7.0/cli/conf.d/20-ctype.ini      - /etc/php/7.0/cli/conf.d/20-dom.ini      - /etc/php/7.0/cli/conf.d/20-exif.ini      - /etc/php/7.0/cli/conf.d/20-fileinfo.ini      - /etc/php/7.0/cli/conf.d/20-ftp.ini      - /etc/php/7.0/cli/conf.d/20-gd.ini      - /etc/php/7.0/cli/conf.d/20-gettext.ini      - /etc/php/7.0/cli/conf.d/20-iconv.ini      - /etc/php/7.0/cli/conf.d/20-json.ini      - /etc/php/7.0/cli/conf.d/20-mbstring.ini      - /etc/php/7.0/cli/conf.d/20-mcrypt.ini      - /etc/php/7.0/cli/conf.d/20-mysqli.ini      - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini      - /etc/php/7.0/cli/conf.d/20-phar.ini      - /etc/php/7.0/cli/conf.d/20-posix.ini      - /etc/php/7.0/cli/conf.d/20-readline.ini      - /etc/php/7.0/cli/conf.d/20-shmop.ini      - /etc/php/7.0/cli/conf.d/20-simplexml.ini      - /etc/php/7.0/cli/conf.d/20-sockets.ini      - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini      - /etc/php/7.0/cli/conf.d/20-sysvsem.ini      - /etc/php/7.0/cli/conf.d/20-sysvshm.ini      - /etc/php/7.0/cli/conf.d/20-tokenizer.ini      - /etc/php/7.0/cli/conf.d/20-wddx.ini      - /etc/php/7.0/cli/conf.d/20-xmlreader.ini      - /etc/php/7.0/cli/conf.d/20-xmlwriter.ini      - /etc/php/7.0/cli/conf.d/20-xsl.ini   您还可以在终端内运行php --ini以查看PHP在CLI模式下使用的文件。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

在php 7中,您可以使用follwing命令安装CURL。

sudo apt-get install php-curl

并重启服务

sudo service apache2 restart