我刚刚熟悉 Linux 服务器,并且正在尝试在我的 Ubuntu 服务器上安装 Composer。我认为一切都安装正确,除非我尝试包含 Composer 的自动加载器,但我得到一个 PHP 错误:
Warning: require(/usr/share/php/opencloud/lib/../vendor/autoload.php): failed to open stream: No such file or directory in /usr/share/php/opencloud/lib/php-opencloud.php on line 5 Fatal error: require(): Failed opening required '/usr/share/php/opencloud/lib/../vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/opencloud/lib/php-opencloud.php on line 5
我的 composer.json 是:
{
"require": {
"rackspace/php-opencloud": "v1.7.0"
}
}
当我运行“composer diag”时,它会输出:
Checking composer.json: FAIL
name : is missing and it is required
description : is missing and it is required