i'm trying to install amfext.
I have a mac that I use as a development server. I installed MAMP to develop web apps and it seems entirely satisfactory as it allows me to select PHP 5.3.2 as its PHP version (the other option being 5.2.13).
However, when I run php from the command it reports a version of 5.2.12:
My-Mac:~ sneakyimp$ php -v
PHP 5.2.12 (cli) (built: Feb 9 2010 00:34:23)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
I have no idea how this particular version got installed on my machine -- unless it was put there by MAMP.
I renamed /usr/bin/php to /usr/bin/phpOLD and then created a symbolic link to the MAMP version of php 5.3.2:
sudo ln -s /applications/mamp/bin/php5.3/bin/php /usr/bin/
Now when I run php-v, I get what I thought I should:
My-Mac:~ sneakyimp$ php -v
PHP 5.3.2 (cli) (built: Mar 5 2010 16:45:34)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
Q1: Does anyone see any problem with this?
I tried to run a pecl install. It complained about no stable version so I tried the beta version:
sudo pecl install amfext channel://pecl.php.net/amfext-0.9.2
This appeared to run an installation but when it finished, it reported this:
Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20060613/amf.so'
I haven't the slightest clue where it got that extension directory from! Command line php reports an extension_dir of /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
Jason-Mac:~ christopherwalsh$ php -i | grep extension_dir
extension_dir => /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/ => /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
When I look at the output of 'pecl config-show', I get another extension_dir entirely:
/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922
Q2: What on earth is up with my system? Can anyone recommend how to clean this mess up?