Problems about installing laravel framework on mac

Source: Internet
Author: User
Tags mcrypt
Mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command on the mac system. Without this extension, the installation fails. I want to use the php Command to make the installation fail... mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command of the mac system, because the installation fails without this extension, I want to use the php Command that enables the command line to use the extended php version of mamp. How can I solve this problem.

Reply content:

Mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command of the mac system, because the installation fails without this extension, I want to use the php Command that enables the command line to use the extended php version of mamp. How can I solve this problem.

Rename/usr/local/bin/php to php. old, and soft link php/bin/php to mamp.

When laravel is installed, php-cli is called and installed using a PHP script.

I am using the brew global installation mode. You can try it.

Download the php5.4 source code and compile a mcrypt file by yourself. Why? It seems that google will find many answers

However, my practice is to ignore the system's php, homebrew re-installed a php5.5, here there are detailed tossing steps

I see this tutorial succeeded: http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-y...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.