Laravel No such file or directory in /bootstrap/autoload.php on line 17

具体错误如下:

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

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

首先是要确定你的php版本是5.3.7以上的,其次看下面:

我的laravel是从git直接clone下来的,由于默认是忽略vendor文件夹的,所以里面的东西是clone不到本地的,因此需要进行两个步骤:

一. 安装composer

具体安装可参照 http://getcomposer.org/doc/00-intro.md

二. 安装好以后,在项目目录下(也就是跟 app文件夹 public文件夹 同级的目录下)执行 composer install 然后等一会(时间长短看网速)

再次打开首页(http://localhost/public)是不是会出现laravel的图标?那么恭喜了,错误解决了