Wildhoney / Magento-on-Angular

Angular.js application using Magento as the backend API
360 stars 120 forks source link

Problem with Mcrypt #82

Open gokhandemirtas opened 10 years ago

gokhandemirtas commented 10 years ago

Hi,

I know it's not an issue with your code, but I've been pulling my hair off. composer install fails with this:

Mcrypt PHP extension required. Script php artisan optimize handling the post-install-cmd event returned with an error

I've tried installing it with brew, and visited pretty much every stackoverflow thread about it, but no result. Can you help ? I'd very much appreciate it. If you think this is irrelevant, I'll delete it.

Thanks

aonic commented 10 years ago

Have you installed mcrypt for php? What have you tried in an attempt to install it?

Raja Kapur

On Fri, Nov 21, 2014 at 8:05 AM, Gokhan Demirtas notifications@github.com wrote:

Hi,

I know it's not an issue with your code, but I've been pulling my hair off. composer install fails with this:

Mcrypt PHP extension required. Script php artisan optimize handling the post-install-cmd event returned with an error

I've tried installing it with brew, and visited pretty much every stackoverflow thread about it, but no result. Can you help ? I'd very much appreciate it. If you think this is irrelevant, I'll delete it.

Thanks

— Reply to this email directly or view it on GitHub https://github.com/Wildhoney/Magento-on-Angular/issues/82.

sergev6 commented 10 years ago

I can say that if you use MAMP, as I have just configured, you will need to update your ~/.bash_profile to point to your MAMP PHP version. You can do this by doing the following:

  1. emacs ~/.bash_profile
  2. Include your PHP version being ran by MAMP (this is the latest if you have the most recent upgrade from MAMP):

export MAMP_PHP=/Applications/MAMP/bin/php/php5.6.2/bin export PATH="$MAMP_PHP:$PATH"

  1. Terminate your terminal and re-open it to cd applications/MAMP/htdocs/moa/api
  2. Now run your composer install

You will now be at the point in which you must update your sample.config.json file

ricricucit commented 9 years ago

:+1: yep.