I’m attempting to follow this tutorial: http://drupal.org/node/1464236 on installing ffmpeg on MAMP (for use with Drupal, which is incidental)
I’m stuck here:
You should also execute in your Terminal
which php pecl phpize
which should point to your MAMP installation:
/Applications/MAMP/bin/php/php5.x.x/bin
…but when I do it, which php pecl phpize says it’s pointing to /usr/bin/php (and pecl and phpize respectively). If I do ln /usr/bin/php /Applications/MAMP/bin/php/php5.3.6/bin/php it says ‘file already exists’. How do I point to the right file?
Your
$PATHis wrong, which means that something went wrong in the first step of that tutorial:Did you remember to re-login?
Let me also add, doing something like your attempted fix with
lnis generally not a good idea./usr/bingenerally contains system-installed software and may depend on that software being the correct version in the correct location. If you want to use a different version of PHP for something, the standard practice is to install it somewhere else, like/usr/local/bin, and then have that directory listed before/usr/binin your$PATH. That way you’ll use your version, while the system will still have its version to use.