drush与autoload.php失败无法打开流

时间:2015-06-13 03:24:20

标签: php drupal composer-php

我搜索了整个drupal目录,但是我找不到autoload.php文件。我在命令行上使用drush启用模块时看到错误。

这是确切的错误

include(sites/all/modules/contrib/guzzle/vendor/autoload.php): failed to open stream: No such file or directory composer_autoload.module:24                           [warning]
include(): Failed opening 'sites/all/modules/contrib/guzzle/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')                      [warning]
composer_autoload.module:24

2 个答案:

答案 0 :(得分:1)

之前我还没有看到过这个错误,但我认为它告诉你必须安装composer,这现在是Drush的要求。请参阅Drush的安装说明:http://docs.drush.org/en/master/install/#composer-one-drush-for-all-projects

答案 1 :(得分:0)

我通过安装composer二进制文件修复它,重新运行drush dl composer并drush dl guzzle然后进入guzzle并运行./composer.phar install