I'm just getting familiar with Linux servers and I'm trying to install Composer on my Ubuntu server. I think everything installed correctly except when I try to include Composer's autoloader I get a PHP error:
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
My composer.json is:
{
"require": {
"rackspace/php-opencloud": "v1.7.0"
}
}
And when I run "composer diag" it outputs this:
Checking composer.json: FAIL
name : is missing and it is required
description : is missing and it is required
The warning seems to be pretty clear, it can't find autoload.php file. I guess some path problem in your require:
About the missing data you could solve adding it in your composer.json