Well, I saw a lot of posts about this, and I spent all day working on them to solve this problem, without any success.
I am trying to create a Laravel project. I am using a Mac (Yosemite) running PHP 5.5.14. An older version of PHP is also installed on the computer. When I try to create a project from the command line using "laravel new projectname", no error messages are reported, but the command simply creates an empty folder with the project name. I get the message "Crafting application ..." and "Application ready! Build something amazing", but again, only an empty folder.
If I try to use this command: composer create-project laravel / laravel projectname
I get this:
Install laravel / laravel (v5.0.16) - Install laravel / laravel (v5.0.16) Download: 100%
A project has been created in the name of the project. Downloading composer repositories with package information. Installing dependencies (including require-dev) from the lock file. Your requirements cannot be resolved to the set of packages being installed.
Problem 1 - Installation request for laravel / framework v5.0.16 → we will execute according to laravel / framework [v5.0.16]. - laravel / framework v5.0.16 requires ext-mcrypt * → the requested mcrypt PHP extension is missing on your system.
In the terminal, if I enter this: which php I get: / usr / bin / php / usr / bin / php -v I got: PHP 5.5.14 (cli) (built: September 9, 2014 19:09:25) Copyright (c) 1997-2014 PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, Derick Rethans
I used homebrew to install autoconf and mcrypt with this command: brew install autoconf mcrypt
If I run this command again, I get: Warning: autoconf-2.69 is already installed Warning: mcrypt-2.6.8 is already installed
Since I continued to receive the error, I assumed that it was installed in the wrong place, so I compiled and installed mcrypt myself using the following instructions: [Install the mcrypt php extension] [1]. During the installation, I used PHP version 5.5.14. Mcrypt was installed in this directory: / usr / lib / php / extensions / no-debug-non-zts-20121212 /
I restarted Apache. I checked my .bash_profile to make sure / usr / bin is in my path.
If I create a page with phpinfo () and view it in my browser, I see that mcrypt is listed in the "Module Authors" section of the page. It simply lists the names of the people who created the module.
I'm at a dead end. I look forward to any suggestions that people can offer (I really do not want to install a virtual box or something like that. Of course, I can install this module in the right place!)
Thank you very much!