Support the ongoing development of Laravel.io →
posted 10 years ago
Installation
Last updated 2 years ago.
0

You might need to give it execute permission:

sudo chmod +x /usr/local/bin/laravel
Last updated 2 years ago.
0

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?

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Did that. It worked thanks!

Last updated 2 years ago.
0

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 :)

Last updated 2 years ago.
0

tommulroy said:

You might need to give it execute permission:

sudo chmod +x /usr/local/bin/laravel

It Works :)

Last updated 2 years ago.
0

A fully detailed with terminal command screenshots tutorial here

http://tutsnare.com/how-to-install-laravel-on-ubuntu-lamp/

0

Sign in to participate in this thread!

Eventy

Your banner here too?

elbsurfer elbsurfer Joined 23 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.