MAMP friends:
I have done some research, updated the how to to match the latest changes made by the MAMP team in ver. 1.9, tested on latest PHP 5.2 release. Updated Leopard, Snow Leopard, manual build and trouble shooting section.
If you do not have full control over your PECL installation and config pls. follow the manual build section then you will avoid a lot of grief and sorrow.
sudo /Applications/MAMP/bin/php5.3/bin/phpize
Password:
Cannot find config.m4.
Make sure that you run '/Applications/MAMP/bin/php5.3/bin/phpize' in the top level source directory of the module
@Bi Devi:
Doooh! Wait wait the error message -bash: -: command not found
Tell you that you are trying to run a "-" as a separate command. To verify this just type - and press enter.
@Yves:
Let me run some tests to see if there are issues with latest version of MAMP and PHP 5.3, there might then things have a tendency to break with every major PHP release :-/
Attempt 1
- Created /Applications/MAMP/bin/php5.3/include
- Put php-5.3.2 into /include and renamed it to php
- Pasted MACOSX_DEPL... et cetera one by one into terminal
- cd /Applications/MAMP/bin/php5.3/include/php
- ./configure
Result:
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i386-apple-darwin10.4.0
checking target system type... i386-apple-darwin10.4.0
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
GAVE UP ATTEMPT 1
Attempt 2
- Downloaded and unpacked uploadprogress-1.0.1.tgz into /include
- cd /Applications/MAMP/bin/php5.3/include/uploadprogress-1.0.1/
- /Applications/MAMP/bin/php5.3/bin/phpize
Result: permission denied
- sudo /Applications/MAMP/bin/php5.3/bin/phpize
- Password:
Result:
sudo: /Applications/MAMP/bin/php5.3/bin/phpize: command not found
Check:
- cd /Applications/MAMP/bin/php5.3/bin
- ls
pear pecl phar.phar php-config
peardev phar php phpize
GAVE UP ATTEMPT 2
Attempt 3
- Downloaded uploadprogress.so version 1.0.1
- Put it here: ... php5.3/lib/php/extensions/no-debug-non-zts-20090626
- Opened: ... conf/php5.3/php.ini in TextWrangler
- Added the line: extension=uploadprogress.so and saved
- Restarted the MAMP servers
- Checked phpInfo: Tokenizer followed by XCache
GAVE UP ATTEMPT 3
I'm currently traveling and unable to look into the issue. I'll have a look when I get back in about a week. Pls. Include php and Mamp ver. In your error rapports.
I tried your precompiled version and it works. But I was hoping to use your tutorial to install http_conf and as far as I aware there is no precompiled http.so. I had to make alteration when following your tutorial as zinho did.
Does your tutorial need updating?
I would very much like be able install other pecl extensions as it's been in a nightmare in both MAMP and XAMPP.
25-May-2010 11:38:51] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so' - dlopen(/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so, 9): image not found in Unknown on line 0
and the extension doesn't work (at leat Drupal doesn't recognize it as installed and running).
Hi,
I'm trying to install pecl_http with your instruction, but I get stuck at the "./configure", when I get the answer:
-bash: ./configure: No such file or directory
Obviously, after that pecl i pecl_http starts but it fails in the end...
Thank you so much for sharing this.. this has been doing my head in try to install zip extension..
I'm on MAMP 1.8.2 and it worked fine too (after adjusting to the correct php version and picking the right paths).
thanks!
Thanks! I compiled xdebug 2.1!!!
Successfully compiled the latest version of Xdebug (http://xdebug.org) following the manual build section in this how to.
MAMP friends:
I have done some research, updated the how to to match the latest changes made by the MAMP team in ver. 1.9, tested on latest PHP 5.2 release. Updated Leopard, Snow Leopard, manual build and trouble shooting section.
If you do not have full control over your PECL installation and config pls. follow the manual build section then you will avoid a lot of grief and sorrow.
Now I get this:
sudo /Applications/MAMP/bin/php5.3/bin/phpize
Password:
Cannot find config.m4.
Make sure that you run '/Applications/MAMP/bin/php5.3/bin/phpize' in the top level source directory of the module
@Bi Devi:
Doooh! Wait wait the error message
-bash: -: command not foundTell you that you are trying to run a "-" as a separate command. To verify this just type - and press enter.
These are the files in directory /Applications/MAMP/bin/php5.3/bin :
pear
peardev
pecl
phar (shortcut)
phar.phar
php
php-config
phpize
@Yves:
Let me run some tests to see if there are issues with latest version of MAMP and PHP 5.3, there might then things have a tendency to break with every major PHP release :-/
"@Bi Devi" So it tell you that phpize is not in the bin directory. What do you have in the directory?
@steinmb
I did: sudo chmod a+x /Applications/MAMP/bin/php5.3/bin/*
Then: /Applications/MAMP/bin/php5.3/bin/phpize
Result: -bash: -: command not found
Make the bin-files executeable
sudo chmod a+x /Applications/MAMP/bin/php5.3/bin/*
This should fix the "Result: permission denied" issue.
Mac OS 19.6.4
XCode 3.2.2
MAMP 1.9
Attempt 1
- Created /Applications/MAMP/bin/php5.3/include
- Put php-5.3.2 into /include and renamed it to php
- Pasted MACOSX_DEPL... et cetera one by one into terminal
- cd /Applications/MAMP/bin/php5.3/include/php
- ./configure
Result:
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i386-apple-darwin10.4.0
checking target system type... i386-apple-darwin10.4.0
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
GAVE UP ATTEMPT 1
Attempt 2
- Downloaded and unpacked uploadprogress-1.0.1.tgz into /include
- cd /Applications/MAMP/bin/php5.3/include/uploadprogress-1.0.1/
- /Applications/MAMP/bin/php5.3/bin/phpize
Result: permission denied
- sudo /Applications/MAMP/bin/php5.3/bin/phpize
- Password:
Result:
sudo: /Applications/MAMP/bin/php5.3/bin/phpize: command not found
Check:
- cd /Applications/MAMP/bin/php5.3/bin
- ls
pear pecl phar.phar php-config
peardev phar php phpize
GAVE UP ATTEMPT 2
Attempt 3
- Downloaded uploadprogress.so version 1.0.1
- Put it here: ... php5.3/lib/php/extensions/no-debug-non-zts-20090626
- Opened: ... conf/php5.3/php.ini in TextWrangler
- Added the line: extension=uploadprogress.so and saved
- Restarted the MAMP servers
- Checked phpInfo: Tokenizer followed by XCache
GAVE UP ATTEMPT 3
Was I lazy? Any suggestions?
I'm currently traveling and unable to look into the issue. I'll have a look when I get back in about a week. Pls. Include php and Mamp ver. In your error rapports.
Cheers
@steinmb
Did you find out what went wrong?
Hello,
I've had the same problem as Lex, I get :-
image not found in Unknown on line 0
I tried your precompiled version and it works. But I was hoping to use your tutorial to install http_conf and as far as I aware there is no precompiled http.so. I had to make alteration when following your tutorial as zinho did.
Does your tutorial need updating?
I would very much like be able install other pecl extensions as it's been in a nightmare in both MAMP and XAMPP.
No /bin directory created...
Hello, thank you for the precompiled extension. I used that and all was well. However, curious why my attempts at your instructions failed...
I have Snow Leopard, and the compile of PHP worked great. However, when I tried to proceed through the next step:
cd /Applications/MAMP/bin/php5.2/bin
(I opted to use php5.2 to mimic the original MAMP directory)
... the php5.2/bin directory did not exist. The only directory in php5.2/ was the include directory from the previous steps.
Anyway, its working with the precompiled extension, but trying to backtrack and figure out what my mistake was...
Thanks if you have the time to reply.
Your php arcitecture doesn't match the auth.so you compiled. you probably have 32b php and 64b extension. see apple recomended make configuration
http://discussions.apple.com/thread.jspa?threadID=2174107&tstart=52
The error log says:
25-May-2010 11:38:51] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so' - dlopen(/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so, 9): image not found in Unknown on line 0
and the extension doesn't work (at leat Drupal doesn't recognize it as installed and running).
Any advice?
SO, if the "lazy" option isn't working don forget to put ADMIN R&W permissions to the uploadprogress.so !!
Hi,
Thanks for the .so file - it saved my day!
Gregor
Precompiled extension worked like a charm on 10.6 + MAMP Pro.
Thanks a lot.
TIm
Try and have a look in Apache and the PHP–error logs. There is normally some pointers in them from the restart of MAMP.
Hi,
I'm using MAMP 1.9 on OS X 10.6.3.
MAMP 1.9 is using php 5.3.2
Extensions folder is located on /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
I've downloaded your pre-compiled file (1.0.1) and copied into this folder, then edited php.ini:
; Extensions
extension=apc.so
extension=imap.so
extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
extension=uploadprogress.so
I've restarted MAMP servers, but the extension doesn't load.
Any advice?
Hi Danilo
Make sure that you complete step 1-5 before starting the ./configure script.
Hi,
I'm trying to install pecl_http with your instruction, but I get stuck at the "./configure", when I get the answer:
-bash: ./configure: No such file or directory
Obviously, after that pecl i pecl_http starts but it fails in the end...
Do you have any suggestion?
Thanks
Danilo