The following notes are based on this blog post for Development learning
Cloning a project from GitHub to a local
git clone https://github.com/RryLee/StuGradeWithLaravel5.git
Second, switch to the local project directory, install composer
macdemacbook-pro-3:~ mac$ cd desktopmacdemacbook-pro-3:stugradewithlaravel5 mac$ curl-ss https://getcomposer.org/ Installer | Phpall settings correct for using composerdownloading 1.0.1...Composer successfully installed to:/users/mac/desktop/ Stugradewithlaravel5/composer.pharuse it:php Composer.phar
The top command can be placed in the bin directory, so that you don't have to enter the last command every time.
Macdemacbook-pro-3:stugradewithlaravel5 mac$ sudo mv composer.phar/usr/bin/composermacdemacbook-pro-3: StuGradeWithLaravel5 mac$
Update composer
Macdemacbook-pro-3:stugradewithlaravel5 mac$ Composer Update
The update appears with this problem,-_-!!!
Macdemacbook-pro-3:stugradewithlaravel5 mac$ Composer Update
Loading Composer repositories with the package information
Updating dependencies (including Require-dev)
Your requirements could not being resolved to an installable set of packages.
Problem 1
-Laravel/framework v5.0.9 requires Ext-mcrypt *, the requested PHP extension MCrypt is missing from your system.
Workaround:
It seems that PHP does not open the mcrypt extension, my is not open mbstring extension ...
See if you have this extension in your php.ini, take the front of it, remove it and restart Apache.
Or
To install PHP expansion pack MCrypt
You can play the brew install Php-mcrypt on the Maxos
Run "sudo cp/etc/php.ini.default/etc/php.ini" so that you can configure various PHP functions via php.ini.
The maximum value of the PHP commit file is adjusted by the following two items, such as the maximum value of the imported data in phpMyAdmin
Upload_max_filesize = 2M
Post_max_size = 8M
, such as using display_errors to control whether or not to display the PHP program error
Display_errors = Off
Run "sudo apachectl restart" and restart Apache so PHP is ready to use.
Solution:
Vim/etc/php.ini
Append a sentence to the end of the file
Extension=mcrypt.so
The last successful execution of the two-segment code:
Macdemacbook-pro-3:apache2 mac$ Brew Install MCrypt
Macdemacbook-pro-3:apache2 mac$ export Path=/usr/local/php5/bin: $PATH
Desktop entry:
macdemacbook-pro-3:~ mac$ CD Desktop/stugrade
Macdemacbook-pro-3:stugrade mac$