Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Getting Started with Laravel Installing Laravel

Daniel White
Daniel White
2,558 Points

Need help with creating the site. I go to create the site and get the error: Your requirements could not be resolved...

Error when creating my site:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0]. - laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

I believe this is an error with yosemite. I have updated and cannot find a good source to add this file. Please help.

Bleeerrghh I just got this too. If I find a solution I'll post it up.

3 Answers

Hai Le Quang
Hai Le Quang
5,855 Points

I also have this problem. What a horrible error! I found this: http://stackoverflow.com/questions/26493762/yosemite-php-gd-mcrypt-installation/26505558#26505558 But still not resolved the problem. Any help, pls!!!

Daniel White
Daniel White
2,558 Points

Ok I think I found a fix. I followed the tutorial to install the mcrypt file: http://remonpel.nl/2012/01/adding-mcrypt-to-your-osx-based-php-server-setup/?osx_version=10.10

  • the only thing I changed was the command: " [ ! -f "/etc/php.ini" ] && sudo cp /etc/php.ini.default /etc/php.ini"

I changed it to: sudo cp /etc/php.ini.default /etc/php.ini

I was able to use vagrant up and create my project with no errors. However, when I launch my project it pulls up a blank screen vs before a page full of errors. No larval image is visible, but I take this as a small victory.

Hope this helps.

Manalive! I've gone and done all manner of things and it shows that I have mcrypt installed here: mcrypt installed info But when trying it set up Laravel via Composer it still runs that same error: Terminal

I would have thought that this would have sorted out any problems. :(