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模式下使用的文件。
我该如何解决这个问题?
答案 0 :(得分:0)
在php 7中,您可以使用follwing命令安装CURL。
sudo apt-get install php-curl
并重启服务
sudo service apache2 restart