*** There was an error while trying to configure php. Check the configure file

mamadletsgo

Verified User
Joined
Mar 2, 2015
Messages
69
Location
iran,tehran
hello

when install directadmin show this error :

/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c xslt-config '/usr/local/bin'
/bin/mkdir -p '/usr/local/lib'
/usr/bin/install -c -m 644 xsltConf.sh '/usr/local/lib'
/bin/mkdir -p '/usr/local/share/aclocal'
/usr/bin/install -c -m 644 libxslt.m4 '/usr/local/share/aclocal'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libxslt.pc libexslt.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.32'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.32'
Done libxslt.
Found /usr/local/directadmin/custombuild/php-5.6.32.tar.gz
Extracting ...
Done.
Configuring php-5.6.32...
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cc... cc
checking whether the C compiler works... no
configure: error: in `/usr/local/directadmin/custombuild/php-5.6.32':
configure: error: C compiler cannot create executables
See `config.log' for more details

*** There was an error while trying to configure php. Check the configure file
Stopping crond: [ OK ]
Starting crond: [ OK ]
*******************************************
*******************************************

Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d

*******************************************
*******************************************


Installation failed.
Fail in running setup file.
[root@static ~]#

I installed more than 5 CentOS and installed the directadmin again
But each time it gives the same error

please help me for solve this problem

thanks ...
 
Based on the error I assume you don't have a C compiler installed. Have you followed all the steps from https://www.directadmin.com/installguide.php ?

Yes
We installed several different servers
All this gives the error
Perhaps the problem is from the directadmin side
Because it's the same way on several servers

We install multiple directadmin servers every day
And we never had this problem

:(
 
Build errors from php like you see are not Directadmin errors. They are errors due to missing prerequisites. Your error:
Code:
checking whether the C compiler works... no
configure: error: in `/usr/local/directadmin/custombuild/php-5.6.32':
configure: error: C compiler cannot create executables
is why it is failing. As I mentioned you need a C compiler, especially one that works. Most like you have a "cc" script that the configure script found and tried to use, but it actually calls the real compiler (possibly gcc) if it exists. It is all documented on that link. Pay special attention to the line on that page that says "- Run the pre-install commands before starting the install" Notice how the "pre-install commands" is a link too and gives you all the commands for each platform that NEEDS to be run. If one of those commands fails with some error besides the package already being installed, then you need to dig deeper to find that source.
 
Hi @toml
I have the same problem but the gcc was installed before of php error :
gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

but sitle have the same error in ubuntu 20.04 tls
 
Back
Top