You might need to give it execute permission:
sudo chmod +x /usr/local/bin/laravel
I tried it with composer now. But i also receive these errors:
Generating autoload files Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
I googled it but i haven't found a solution for this. I just want to have a folder in my MAMP's htdocs folder and want to use Laravel there. I'm afraid that this error happens because of the "php artisan clear-compiled" command because if i type "php artisan clear-compiled" in my terminal it says iMac:laravel torb$ php artisan clear-compiled Mcrypt PHP extension required.
How can i solve this? Has anyone an idea?
The default PHP version that comes with Mac OS X does not have Mcrypt enabled, which is required for Laravel.
What I do is add the PHP version I want from MAMP to the start of my PATH variable, e.g:
export PATH=/Applications/MAMP/bin/php/php5.4.25/bin:$PATH
That way the PHP version I run on the command line is the same that I'm running on the web server.
tommulroy said:
You might need to give it execute permission:
sudo chmod +x /usr/local/bin/laravel
same problem here solved with that command. Thanks :)
tommulroy said:
You might need to give it execute permission:
sudo chmod +x /usr/local/bin/laravel
It Works :)
A fully detailed with terminal command screenshots tutorial here
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community