I can't install PHP on my Mac.

Question: Question:

I tried to install PHP 5.6.8 on Mac Yosemite using anyenv, but I can't get the following error.

error

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
                       ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
1 warning generated.
/var/tmp/php-build/source/5.6.8/Zend/zend_string.c:65:28: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        CG(interned_empty_string) = zend_new_interned_string_int("", sizeof(""), 0 TSRMLS_CC);
                                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
-----------------------------------------

The full Log is available at '/tmp/php-build.5.6.8.20150513233015.log'.
[Warn]: Aborting build.

When I looked into this error, it was written on the following site.
http://qiita.com/omega999/items/c5b1c177331f8d342efd

However, the content written on this site seems to be a little old, and now xdebug.sh written on this site has been rewritten as the following link.
https://github.com/php-build/php-build/blob/master/share/php-build/plugins.d/xdebug.sh

I tried to find a solution after this change, but couldn't find it. Please tell me who knows how to solve this situation, how to do it, or a site that can be used as a reference. Nice to meet you.

Addendum 1

It looks like it has changed in this commit.
https://github.com/php-build/php-build/commit/ad455b9e6e6c08e7ed86c37c1649af600256ac06

Answer: Answer:

It looks like a problem of interchangeability with mac. As for the content of the error, it is recommended to raise the version of php because it is an error that'finite'is not available on Mac 10.0 and 10.9.

If you are a basic mac, you are building an environment using MacPorts, so we recommend that method.

I'm sorry it's not very useful.

Scroll to Top