Quote From : tidus August 2, 2013, 2:05 pm Hi,
Did you paste the .so file in /Applications/AMPPS/php-5.3/lib/extensions/ext/ ?
How did you compile, can you give me the steps ?
Steps we follow are :
1. cd /<ext-source>
2. /Applications/AMPPS/php/bin/phpize
3. ./configure (with required options, you can take use --help for more options)
4. make
5. sudo make install
6. chown the .so to your user
7. copy it into /Applications/AMPPS/php-5.3/lib/extensions/ext/.
8. enable it from AMPPS -> PHP Tab -> PHP Extension
9. Restart Apache.
To check you can run the following command in terminal:
/Applications/AMPPS/php/bin/php -m
you should be able to see the extension name.
I followed you instructions, but I get the same error.
I thing that the problem is in .config flags, I tried to compile the extension in 32 bits with no success:
➜ gmp MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' make -j6;sudo make install
but the result file is 64 bits!
➜ gmp file /Users/v4ticini/Downloads/php-5.3.21/ext/gmp/modules/gmp.so
/Users/v4ticini/Downloads/php-5.3.21/ext/gmp/modules/gmp.so: Mach-O 64-bit bundle x86_64
|