Server Environment:
OS: Ubuntu 22.04 LTS (Jammy)
Control Panel: aaPanel (Latest)
Web Server: Nginx (Single Server)
Issue Description:
While upgrading/compiling PHP-8.1 from the aaPanel App Store, the installation process failed during the build phase (make: *** Error 1).
Error Log snippet:
Plaintext
make: *** [Makefile:319: sapi/fpm/php-fpm] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make: *** [Makefile:307: sapi/cli/php] Error 1
collect2: error: ld returned 1 exit status
make: *** [Makefile:352: sapi/phpdbg/phpdbg] Error 1
/bin/ld: cannot find -liconv: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:378: sapi/cgi/php-cgi] Error 1
(Screenshot attached for full terminal logs)
Questions:
Is this a missing dependency issue on Ubuntu 22.04, or is the linker failing to locate the compiled libiconv path?
How can I cleanly resolve the -liconv linker issue so that PHP-8.1 compiles and runs without affecting existing services?
Any advice or fix commands from the aaPanel team/community would be greatly appreciated. Thanks!