New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot install PHP 7.1.9 on macOS 10.11.6 (El Capitan) #899
Comments
This problem is related to icu4c version 59.1. Install an older version of icu4c (i.e. 58.2) and manually link against it: |
@patrickjahns how can I install version 58.2 of icu4c with brew? I have made a complete reinstallation of my Macbook and homebrew installs version 59.1 of icu4c. |
You can install it via directly linking to an older version of the homebrew formula:
I would recommend that you link 59.1 to /usr/... and keep 58.2 in the cellar for php. The better/more import fix would be, that phpbrew uses ENV.cx11 environment - see related issues in homebrew: |
@patrickjahns thanks for the command to install the previous version of icu4c. I just needed to uninstall 59.1 and then use the command you provided. |
just keep in mind that there might be homebrew packages asking for 59.1 and that will override your version again. That's why I build it directly against the cellar version |
Is it possible to set I need the newest |
@mirfilip it should be technically possible. Could you point to some documentation explaining how PHP can be compiled with |
homebrew-php had also the issue for php-intl - this is how they incorporated ENV.cx11 in their buildscripts: Related discussion: |
Please feel free to submit a pull request and port the fix from Homebrew. |
@morozov @patrickjahns I tried but failed. I'm not sure what |
I'm having this problem, too, but when I try to install an older version of icu4c, it fails, saying the older version is already installed: $ brew install https://raw.githubusercontent.com/ilovezfs/homebrew-core/d2485c72643aa7e6aec0da9ced3aa66401ae42ce/Formula/icu4c.rb
######################################################################## 100.0%
Warning: icu4c 58.2 is already installed However, 58.2 does not appear to be installed: $ ls /usr/local/Cellar/icu4c
60.2/ I can't uninstall icu4c 60.2, since other homebrew formulas depend on it. So, I'm stuck, unable to build any new versions of PHP. |
I'm still getting this issue:
|
I was able to get past it by building an older ICU and using |
Ladies and Gentlemen, some progress here. I had a second attempt at the issue. I tried to I assumed I use
It looks like it works. FYI, it's my environment:
Anyhow, that's a nasty workaround. If I understand it correctly, setting |
@mirfilip's solution worked for me, with no need to use |
Just install like |
okay, I just met the problem yesterday. Firstly, install icu4c. And then configure the library path. install icu4c brew install icu4c find the library path
configure with library path ./configure --with-icu-dir=/usr/local/Cellar/icu4c/63.1 |
I think the issue is outdated and some possible solutions are available on previous reply. It will be closed. |
Despite the warning, I do not believe the problem is caused by the rootless mode.
Command used:
$ phpbrew install 7.1.9 +default +dbs +fpm +gd +intl -- --with-gd=shared
Output:
Additional info:
Any idea on how to proceed?
The text was updated successfully, but these errors were encountered: