作曲家看不到php-curl

时间:2018-08-01 13:31:19

标签: drupal composer-php drupal-8

使用作曲家screenshot在安装drupal 8上下午好。我得到以下依赖错误。 screenshot error

在我的本地计算机上安装成功并且没有问题。但是我不想在服务器上工作。在另一个用户身上,合作社的工作正常。

据我了解,他要求安装 php-curl 。但是他很聪明。 我当时想重置 php-curl php-cli 并重新启动服务器,并从用户 root 运行,但没有任何帮助。 / p>

错误:

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

  Problem 1
    - webflo/drupal-core-require-dev 8.5.3 requires behat/mink-selenium2-driver 1.3.x-dev -> satisfiable by behat/mink-selenium2-driver[1.3.x-dev].
    - webflo/drupal-core-require-dev 8.5.4 requires behat/mink-selenium2-driver 1.3.x-dev -> satisfiable by behat/mink-selenium2-driver[1.3.x-dev].
    - webflo/drupal-core-require-dev 8.5.5 requires behat/mink-selenium2-driver 1.3.x-dev -> satisfiable by behat/mink-selenium2-driver[1.3.x-dev].
    - webflo/drupal-core-require-dev 8.5.x-dev requires behat/mink-selenium2-driver 1.3.x-dev -> satisfiable by behat/mink-selenium2-driver[1.3.x-dev].
    - behat/mink-selenium2-driver 1.3.x-dev requires instaclick/php-webdriver ~1.1 -> satisfiable by instaclick/php-webdriver[1.1, 1.1.1, 1.2, 1.2.1, 1.2.2, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5].
    - instaclick/php-webdriver 1.4.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.4.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.4.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.4.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.4.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.4.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.2.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.2.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.1.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - instaclick/php-webdriver 1.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - Installation request for webflo/drupal-core-require-dev ~8.5.3 -> satisfiable by webflo/drupal-core-require-dev[8.5.3, 8.5.4, 8.5.5, 8.5.x-dev].

  To enable extensions, verify that they are enabled in your .ini files:
    - /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-curl.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-imap.ini
    - /etc/php/7.0/cli/conf.d/20-intl.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-ldap.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-pspell.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-soap.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
    - /etc/php/7.0/cli/conf.d/20-zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

1 个答案:

答案 0 :(得分:1)

我按如下纠正了这个问题。 1)找到扩展名Curl文件

ls /usr/lib/php/20151012/ | grep curl
- result:
curl.so

2)更改/etc/php/7.0/cli/php.ini中的路径

extension=php_curl.dll --> change on
extension=curl.so