hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
860 stars 433 forks source link

PHP Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' #94

Open joaopedroalbernaz opened 9 months ago

joaopedroalbernaz commented 9 months ago

I keep getting this error:

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ ls composer.json composer.lock images index.php LICENSE README.md src tests

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ php index.php PHP Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /home/joaopedro/oci/oci-arm-host-capacity/index.php on line 8 PHP Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /home/joaopedro/oci/oci-arm-host-capacity/index.php:8 Stack trace:

0 {main}

thrown in /home/joaopedro/oci/oci-arm-host-capacity/index.php on line 8

I tried with sudo but get the same error. This autoload.php is nowhere to be found

joaopedroalbernaz commented 9 months ago

PHP Version:

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ php -v PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

Composer Version:

`joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ composer


/ __/_ __ _ ____ / / / \/ ` \/ \/ \/ / _ \/ / / // // / / / / / / // / // ( ) / / __/__// // // ./__/__/\// // Composer version 2.6.2 2023-09-03 14:09:15 `

hitrov commented 9 months ago

It means you either never run composer install or it didn’t end up successfully

shadowwinds commented 3 months ago

please check the output of composer install/composer update and make sure that php-curl and php-dom are installed

apt-get install composer php-curl php-dom