Laravel Installation on Macbook pro

So, laravel it is. And this is not a step by step tutorial. Purely based on experience 🙂

Will lead me to use composer from the get go.

However insallation is a frigging nightmare for me. JUST for me. Getting so much errors and exceptions.

Went ahead and tried to install composer and then update, here’s the warning, kinda scary looking, but maybe I’ll break it down afterwards. Right now I’m in a hurry to install laravel

Mohits-MacBook-Pro:laravel mohitjawanjal$ php composer.phar update

Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead. in phar:///Applications/XAMPP/xamppfiles/htdocs/laravel/composer.phar/src/Composer/Package/LinkConstraint/MultiConstraint.php:17

Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///Applications/XAMPP/xamppfiles/htdocs/laravel/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17

Composer could not find a composer.json file in /Applications/XAMPP/xamppfiles/htdocs/laravel

To initialize a project, please create a composer.json file as described in the “Getting Started” section

This  was resolved by using –no-plugins option. The same error comes with Laravel installation as well, but if I use the same option it atleast downloads the Laravel installation. Now I don’t see anything in the directory, just my composer file sitting there. 

Time to create a project:

php composer.phar create-project laravel/laravel laravel/ “~5.0.0” –prefer-dist

SO many laravel’s, because it is a sample project LOL. Still gives me that damn deprecated error.

And another set of errors:

Problem 1

    – Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].

    – laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

The 2nd one I can probably manage, but the 1st one is a problem. I’ll have to look it up. So much for a good tuesday morning. I think my mac is messed up and will try to install it on Linux mint.