AlmaLinux 9.4 PHP 8.2 build failure

boby

New member
Joined
May 26, 2024
Messages
3
I am using AlmaLinux 9.4. When i run

Code:
cd /usr/local/directadmin/custombuild
./build php 8.2

It is failing with the following error

Code:
checking for cURL support... yes
checking for libcurl >= 7.29.0... yes
checking for SSL support in libcurl... yes
checking for libcurl linked against old openssl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.2.18.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.DkzpGJhKCi.php-8.2.18.tar.gz'
[root@server-209-159-150-94 custombuild]#

How i fix this error?

Where the file config.log is located?
 
./build php 8.2
Might be the wrong command, in the old build it was someting like ./build php_expert 8.2 php-fpm for single php versions.

Maybe try that command or else try the new command da build php 8.2 which now can be used from anywhere if all is well.

Just to be sure, do a da build clean all before using the commands.

Does that make any difference or still same error?
 
Maybe try that command or else try the new command da build php 8.2 which now can be used from anywhere if all is well.

Just to be sure, do a da build clean all before using the commands.

I did

Code:
da build clean all
da build php 8.2

Getting the same error.
do you have any customize curl or openssl ?

No, it is the default installation, I removed "-devel" packages to make sure no problem with these packages, "da install php 8.2" did reinstall the packages during the installation, but the same error.

The full log is attached.
 

Attachments

Hello,

There is definitely something wrong on your server. I got this:

Code:
[root@dev ~]# cat /etc/redhat-release
AlmaLinux release 9.4 (Seafoam Ocelot)
[root@dev ~]# da build options | grep PHP
PHP (default): 8.2 as php-fpm
PHP (additional): 7.4 as php-fpm
PHP (additional, 3rd): 5.6 as php-fpm
[root@dev ~]#


Code:
[root@dev ~]# php -v
PHP 8.2.18 (cli) (built: May  6 2024 12:44:14) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.18, Copyright (c) Zend Technologies
[root@dev ~]#

The attached output ends with:

configure: error: There is something wrong. Please check config.log for more information.
 
configure: error: There is something wrong. Please check config.log for more information.

where i find this file? I looked in /usr/local/directadmin/custombuild, no config.log found.

Code:
find ./ -type f -name config.log

returned nothing.
 
Under a working directory of a PHP being compiled. Custombuild/Directadmin might remove it, not too sure.
 
same eror
Had exactly the same issue, and "yum -y reinstall glibc-headers" helped.



Code:
checking for ZLIB support... yes
checking for zlib >= 1.2.0.4... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... yes
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for libcurl >= 7.29.0... yes
checking for SSL support in libcurl... yes
checking for libcurl linked against old openssl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.2.28.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.pLmPr31Qcz.php-8.2.28.tar.gz'
Code:
 
Here is

da build list_removals
Code:
[root@da ~]# da build list_removals
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
[root@da ~]#
 

Run

Bash:
da build remove_old_local libiconv
da build clean
da build all

as soon as you remove old libiconv libraries, you will most likely get all services down. PHP will report errors as well as other services. So you might need to do it during off-hours for your business. With da build all you will get all software re-installed against default system libiconv.
 
Back
Top