by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

gcc on CentOS is too old to support isfinite.

The built-in GCC 4.1.2 version of CentOS 5.11 is GCC ten years ago, and it will not be supported until GCC 4.3.3.
The new version of PHP configure cannot detect whether the old version of gcc supports isfinite.

So if you only have the old host, but you need to compile the new version of PHP in the CentOS 5 environment
You can change all ac_have_decl in configure to 0.

Tested in PHP 7.1.7, it does work. (You can use Vim to change it all at once)
if test "x$ac_cv_have_decl_isfinite" = xyes; then :
ac_have_decl=1 #Modified to ac_have_decl=0
else
ac_have_decl=0
the fi

Re-run ./configure . If make has failed before, remember to run make clean .

Tags: php

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


php, CentOS, phpize

Can't find phpize on older versions of CentOS, can't compile php extensions.

Can't find phpize on older versions of CentOS, can't compile php extensions. How to install phpize?

php

Use PHP to clear HiBox's inbox via IMAP

The mailbox for receiving letters has exploded, and I don't want all the letters. Use PHP to clear the inbox. The following is the sample program I copied, with minor adjustments.

docker,php,cli

MacOS's php is not powerful, use docker to execute laravel installer

It's very simple, just add an "alias" alias laravel='docker run --rm -v ${PWD}:/var/www/html -v ~/.dlaravel/cache:/home/dlaravel/.composer /cache -ti deviny/fpm:8.1.10 /home/dlaravel/.composer/vendor/bin/laravel'