I have installed aaPanel 8.0.7 on Debian 13 (Trixie).
Within aaPanel, I have installed PHP 8.5, and have tried to install extension GMP.
The installation operation reports success, but the list of extensions shown under Install extensions never changes to show the extension as installed. Further, the phpinfo() output includes no table headed with the module name. Finally, an application that tries to use the extension is reporting that the module is not installed.
Therefore, GMP is failing to install as an extension for PHP 8.5
It is reported [1-2] that in some cases, it is required to install the system package libgmp-dev. However, the package is already installed on the system. A related package, libgmp3-dev has also been installed, with no effect for the installation of the extension.
After the extension is reported as successfully installed, I can confirm that certain components have been placed in relevant system locations:
$ ls -1 /www/server/php/85/include/php/ext/gmp/
php_gmp_int.h
$ ls -1 /www/server/php/85/lib/php/extensions/no-debug-non-zts-20250925/
apcu.so
exif.so
fileinfo.so
gmp.so
igbinary.so
imagick.so
intl.so
ldap.so
memcached.so
redis.so
zip.so
zstd.so
$ ls -1 /www/server/php/85/src/ext/gmp/modules/gmp.so
Below, I am also providing a console capture of the installation operation from the execution log.
Note that the output refers to an installation target that cannot be found after the attempted installation: /www/server/php/85/src/ext/gmp/modules/gmp.la.
The output also includes simply the word "error" as one the final lines.
Overall, it seems the installation should been found as successful.
- https://www.aapanel.com/forum/d/12308
- https://www.aapanel.com/forum/d/11847
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for egrep -e... (cached) /bin/grep -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /www/server/php/85
checking for PHP includes... -I/www/server/php/85/include/php -I/www/server/php/85/include/php/main -I/www/server/php/85/include/php/TSRM -I/www/server/php/85/include/php/Zend -I/www/server/php/85/include/php/ext -I/www/server/php/85/include/php/ext/date/lib
checking for PHP extension directory... /www/server/php/85/lib/php/extensions/no-debug-non-zts-20250925
checking for PHP installed headers prefix... /www/server/php/85/include/php
checking if debugging is enabled... no
checking if PHP is built with thread safety (ZTS)... no
Configuring extension
checking for GNU MP support... yes, shared
checking for gmp >= 4.2... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for gmp.h... yes
checking for __gmpz_rootrem... yes
Configuring libtool
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
Generating files
configure: creating build directories
configure: creating Makefile
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh /www/server/php/85/src/ext/gmp/libtool --tag=CC --mode=install cp ./gmp.la /www/server/php/85/src/ext/gmp/modules
cp ./.libs/gmp.so /www/server/php/85/src/ext/gmp/modules/gmp.so
cp ./.libs/gmp.lai /www/server/php/85/src/ext/gmp/modules/gmp.la
PATH="$PATH:/sbin" ldconfig -n /www/server/php/85/src/ext/gmp/modules
----------------------------------------------------------------------
Libraries have been installed in:
/www/server/php/85/src/ext/gmp/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /www/server/php/85/lib/php/extensions/no-debug-non-zts-20250925/
Installing header files: /www/server/php/85/include/php/
error
|-Successify --- Command executed! ---