kasparsd / php-7-debian

Install PHP 7 on Debian/Ubuntu
349 stars 102 forks source link

how to enable GMP module in php7.2 #57

Closed hqin2013 closed 6 years ago

hqin2013 commented 6 years ago

hi,

I have finished the install ,this script is great!

but my composer install tips me need GMP module enabled,any suggestion?! i checked the php.ini & search in Google,can't find a solution.or the gmp module can't compatible with php7.2?!

Regards Qin

kasparsd commented 6 years ago

@hqin2013 Looks like you might need to edit build.sh to include the --with-gmp option. For example, add --with-gmp \ right after --with-gd \ in line 49.

kasparsd commented 6 years ago

And you might need the libgmp-dev package for this to work.