PHP 5.5.38 to 5.6.32 update problems

SIAvash

Verified User
Joined
Dec 20, 2017
Messages
5
Hello,

First of all sorry for my bad english,

I'm trying to update PHP 5.5.38 to 5.6.32, with "./build php d" command in terminal i got this error:

Code:
[root@WebSrv2 custombuild]# ./build php d
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

then i tried to update it with CustomBuild plugin and i got this error:

Code:
Executing /usr/local/directadmin/plugins/custombuild/admin/build php_expert 5.6 mod_php
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
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
checking for cc... cc
Done

Please help and sorry again if i post it in a wrong place and my lack of knowledge.
 
Anybody? Should I post it under CentOS forum? I donno which forum is correct.
 
You are already using an outdated version of PHP , what is the operating system and what version of OS installed on the server ?
 
Hello,

Try to run the pre-install command for your OS version from here: https://help.directadmin.com/item.php?id=354 And then try to install PHP once more again. Please let us know your results.

Hi,

Thank you very much for your help, I used the pre-install command and after that with "./build php n" PHP updated successfully.

Thank you again for saving me.

P.S.: before "./build php n" in terminal I tried CustomBuild Plugin and i got same error.
 
Back
Top