configure: error: GD build test failed PHP 8.1 fastcgi

cyberda

Verified User
Joined
Oct 20, 2020
Messages
21
Location
Spain
Hello,

When trying to compile PHP 8.1 in fastcgi on a CloudLinux release 7.9 we get the following error that I have attached.

cat /etc/redhat-release
CloudLinux release 7.9 (Boris Yegorov)

# PHP Settings
php1_release=8.1
php1_mode=fastcgi

We do not use any custom, so you must use the default DirectAdmin custombuild 2.0 configure.
custom/fastcgi/

We have checked that it is not a library problem:

# cd /usr/local/directadmin/custombuild
# da build list_removals
old icu in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local icu
old freetype in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local freetype
old libjpeg in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libjpeg
old libltdl in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libltdl
old libmcrypt in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libmcrypt
old libmhash in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libmhash
old libpng in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libpng
old libsodium in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libsodium
old libwebp in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libwebp
old libspf2 in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libspf2
old libsrs_alt in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libsrs_alt
old libnghttp2 in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libnghttp2
old libxslt in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libxslt
old libxml2 in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libxml2
old libzip in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libzip
old libpcre in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libpcre
old libpcre2 in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libpcre2
old libiconv in /usr/local: custom library might mask system libraries, not needed anymore
da build remove_old_local libiconv
If you want to remove all the suggested programs above, run: da build remove_items

we execute:
#da build remove_items
#da build all

# yum install gd gd-devel libpng libjpeg libwebp
Complementos cargados:fastestmirror, rhnplugin
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* cloudlinux-base: repo.cloudlinux.com
* cloudlinux-x86_64-server-7: cl-mirror.webtuga.pt
* epel: level66.mm.fcix.net
* extras: centos.mirror.ptisp.pt
The gd-2.0.35-27.el7_9.x86_64 package is now installed in its latest version
The package gd-devel-2.0.35-27.el7_9.x86_64 is now installed with its latest version.
Package 2:libpng-1.5.13-8.el7.x86_64 is now installed with its latest version
The libjpeg-turbo-1.2.90-8.el7.x86_64 package is now installed with its latest version
libwebp-0.3.0-11.el7.x86_64 package is now installed with its latest version
Nothing to do

If you need any additional information we are happy to provide it.


Kind regards,

--
Juan Carlos Rico
Departamento de Soporte Técnico
 

Attachments

Last edited:
Hi,

I was able to find the following solution:

[root@centos7cloudlinux custombuild]# cat /etc/redhat-release
CloudLinux release 7.9 (Boris Yegorov)


yum reinstall gcc-c++-4.8.5-44.el7.cloudlinux.x86_64 make-3.82-24.el7.x86_64 autoconf-2.69-11.el7.noarch pkgconfig-0.27.1-4.el7.x86_64 openssl-devel-1.0.2k-26.el7_9.x86_64 krb5-devel-1.15.1-55.el7_9.x86_64 libcurl-devel-7.29.0-59.el7_9.2.x86_64 libpng-devel-1.5.13-8.el7.x86_64 freetype-devel-2.8-14.el7_9.1.x86_64 libwebp-devel-0.3.0-11.el7.x86_64 libjpeg-turbo-devel-1.2.90-8.el7.x86_64 libxslt-devel-1.1.28-6.el7.x86_64 libsodium-devel-1.0.18-1.el7.x86_64 libicu-devel-50.2-4.el7_7.x86_64 sqlite-devel-3.7.17-8.el7_7.1.x86_64 oniguruma-devel-6.8.2-2.el7.x86_64 libmcrypt-devel-2.5.8-13.el7.x86_64 libtool-ltdl-devel-2.4.2-22.el7_3.x86_64

mv /usr/local/php81 /root/BADphp81
cd directadmin/custombuild
da build update_versions

php -v
PHP 8.1.26 (cli) (built: Dec 27 2023 04:28:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.26, Copyright (c) Zend Technologies
with the ionCube PHP Loader v13.0.1, Copyright (c) 2002-2023, by ionCube Ltd.
with Zend OPcache v8.1.26, Copyright (c), by Zend Technologies

Kind regards
 
Back
Top