这是我在安装所有内容后收到的错误:
这些是我安装的步骤。
- 已下载 XAMPP
-
从根用户打开的命令终端:
git clone -b develop git://github.com/laravel/laravel.git L4_site
- 更改目录 CD L4_site
-
在根目录中创建一个 composer.json 文件或通过终端安装:
curl -S getcomposer.org/installer|php -d detect_unicode=off
*见 chris-schmitz.com/getting-started-with-laravel-4
-
在终端类型L4_site目录中:php composer.phar install
This is the error I got after installing composer: Strikers-MacBook-Pro:L4_site striker$ php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
-
然后点服务器,键入:
php -S localhost:8888 -t public/
完成所有这些操作后,我将目录复制到我的托管服务器(hostgator)并收到以下错误:
>Warning: require(/home/flemzy/public_html/l/bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /home/flemzy/public_html/l/bootstrap/autoload.php on line 17
>Fatal error: require() [function.require]: Failed opening required '/home/flemzy/public_html/l/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php53/lib/php') in /home/flemzy/public_html/l/bootstrap/autoload.php on line 17
我非常接近获得一个有效的 laravel 4 开始应用程序。错误位于依赖项未正确安装的某个位置。我想我需要一个正确的 composer.json 文件才能克服这些错误。
谢谢大家的帮助。
步骤 4 中存在错误),您应该执行以下操作:
curl -S getcomposer.org/installer | php
然后
php composer.phar install
有关安装 Composer 的详细说明,请参阅 https://getcomposer.org/doc/00-intro.md#locally