Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : gmp / bcmath extensions



Normal Mode | Print  

gmp / bcmath extensions
xaurion
Group: Member
Post Group: Newbie
Posts: 4
Status:
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

IP: --   


Threads
 xaurion   gmp / bcmath extensions (5 Replies, Read 14289 times)
    |--  tidus   Hi, Did you...   on August 2, 2013, 2:05 pm
    |--  xaurion   Hi, Did you...   on August 8, 2013, 8:42 am
    |--  tidus   Hi, Try removing...   on August 8, 2013, 9:25 am
    |--  xaurion   Hi, Try removing...   on August 8, 2013, 9:46 am
    |--  xaurion   BINGOO!!! This is...   on August 8, 2013, 9:51 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 5, 2025, 7:25 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.041