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.
 
Back
Top