Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: failed to open stream: No such file or directory in C:\wamp\www\laravel\bootstrap\autoload.php on line 17

Environement

  • Windows 7
  • WAMP server
    • PHP 5.3.13
    • Apache 2.2.12
    • MySQL 5.5.24
  • Laravel 4.1

I installed laravel, trying to run the URL

http://localhost/laravel/public 

autoload.php

define('LARAVEL_START', microtime(true));
require __DIR__.'/../vendor/autoload.php';

if (file_exists($compiled = __DIR__.'/compiled.php')){
    require $compiled;
}

Illuminate\Support\ClassLoader::register();

if (is_dir($workbench = __DIR__.'/../workbench')){
    Illuminate\Workbench\Starter::start($workbench);
}

I am facing the following errors:

Warning: require(C:\wamp\www\laravel\bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\laravel\bootstrap\autoload.php on line 17

and

Fatal error: require() [function.require]: Failed opening required 'C:\wamp\www\laravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\wamp\www\laravel\bootstrap\autoload.php on line 17

like image 860
zogo Avatar asked Jan 26 '14 13:01

zogo


1 Answers

Go to the current Project folder

C:\wamp\www\laravelProjectFolder>

and type composer install in command prompt and press ENTER key.

composer install

Then the vendor directory will be downloaded in the current project of laravel. Now refresh the screen.

like image 108
user2092317 Avatar answered Oct 13 '22 16:10

user2092317