phpenv: All latest versions fail to build/install on OSX 10.14 Mojave
I tried to install the latest versions available on php-build but without luck. I tried to install:
5.6.38
7.0.32
7.1.22
7.2.10
and they all come back with
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
configure: error: Cannot find libz
-----------------------------------------
or
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
configure: error: Cannot find zlib
-----------------------------------------
depending by the version.
Command Line Tools are installed and they are up to date, definitely something to investigate further.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 3
- Comments: 59 (36 by maintainers)
macOS 10.15 Catalina
Ok for the time being I managed to get
7.2.10to build and install with the following command line:and installing any missing package via homebrew.
It goes on the right track but then it hits the next hurdle:
It really looks like the latest OSX version messed up path management and such. Also I checked your fix and I suppose it should be more specific and target OSX 10.13 and above. Your fork always worked find up until the previous version.
why not mention this configure options on documentations
@debo
phpenv install 8.2.8gave meconfigure: error: Please reinstall the BZip2 distribution. Installing over the local MacOS version with Homebrew and replacing it in PATH had no effect. I also tried naviapis’s solution and it also didn’t work, but I don’t remember if it was still the BZip2 error.I see this issue over in
php-build: https://github.com/php-build/php-build/issues/543, with no movement since 2019 😞 is that where I should be looking?I can confirm that on my personal laptop with the latest Xcode everything works fine again.