Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to set up Laravel 4 gives "failed to open stream: No such file or directory"

Trying to set up Laravel 4 on a Mac. I've installed Composer but when I go to the public folder via XAMPP I get this:

Warning: require(/Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/autoload.php on line 17

Fatal error: require() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/../vendor/autoload.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/autoload.php on line 17

like image 908
user2431832 Avatar asked May 29 '13 09:05

user2431832


3 Answers

Okay,

I had the same problem and found a way to fix it.

Just read this: http://laravel.com/docs/installation and follow it.

Install composer first, add laravel to the root and install the composer.json with cmd. It worked for me.

like image 124
Rick Avatar answered Nov 16 '22 14:11

Rick


You need to provide the following command from your terminal

composer install

it might get stuck due to permission issues, so try with

sudo composer install

I guess this should solve your problem.

like image 38
adib.mosharrof Avatar answered Nov 16 '22 13:11

adib.mosharrof


in the command prompt try this

D:\xampp\htdocs\laravel>composer update 
like image 7
Steve Bals Avatar answered Nov 16 '22 14:11

Steve Bals