I am trying to compile the gmp for lampp suite with php 7.1.7 with api version 20160303 .
I downloaded gmp-6.1.2.tar.bz2 used bzip2 -dk gmp-6.1.2.tar.bz2
to get tar file then tar -xvvf gmp-6.1.2.tar
then cd gmp-6.1.2/
.
When i run
/opt/lampp/bin/phpize
(i am using lampp suite for dev),
I got this
Cannot find config.m4.
Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module
I am trying to compile gmp for php7.1.7.
Without running /opt/lampp/bin/phpize, and following these steps
- ./configure
- make
- make test
- make install
Running php on console, I am getting this:
PHP Warning: PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0
Warning: PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0