尝试设置Laravel 4会显示“无法打开流:没有这样的文件或目录". [英] Trying to set up Laravel 4 gives "failed to open stream: No such file or directory"

查看:71
本文介绍了尝试设置Laravel 4会显示“无法打开流:没有这样的文件或目录".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Mac上设置Laravel 4.我已经安装了Composer,但是当我通过XAMPP转到公用文件夹时,我得到了:

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:

警告:require(/Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/../vendor/autoload.php)[function.require]:无法打开流:/Applications中没有此类文件或目录/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/autoload.php在第17行

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

致命错误:require()[function.require]:无法打开所需的'/Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/../vendor/autoload.php'(include_path ='.:/在第17行的/Applications/XAMPP/xamppfiles/htdocs/laravel-master/bootstrap/autoload.php中的Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear')

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

推荐答案

好的,

我遇到了同样的问题,并找到了解决问题的方法.

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

只需阅读以下内容: http://laravel.com/docs/installation 并遵循它.

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

首先安装composer,将laravel添加到根目录,然后使用cmd安装composer.json.它对我有用.

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

这篇关于尝试设置Laravel 4会显示“无法打开流:没有这样的文件或目录".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆