0

To install Laravel 4 I've to do some tricks because a don't have root PHP 5.3

Instead of using php I've to use: /opt/php53/bin/

So after downloading composer.phar I type:

/opt/php53/bin/php ~/composer.phar create-project laravel/laravel

Everything works fine until it gets to the json file line: php artisan optimize

Then a have to edit the json file and change all occurrences of php to /opt/php53/bin/ and the run

/opt/php53/bin/php ~/composer.phar update

Is there a better way to deal with this?

4

1 回答 1

0

你在哪个操作系统上?您可以在 linux 或 mac 中创建别名,并将 php 添加到 Windows 中的路径中。在任何一种情况下,您都会对 php 的长路径有更好、更简短的表示。

于 2013-08-24T18:20:15.507 回答