pmmp / PHP-Binaries

Compile scripts used to build PHP for PocketMine-MP on multiple platforms
114 stars 156 forks source link

Build failing at libzip on macOS #130

Closed jarne closed 2 years ago

jarne commented 2 years ago

I'm trying to build the latest PHP binaries on macOS, but the build is failing at the libzip download step for me.

OS: macOS Monterey 12.0.1 Latest commit c520fbcb16e501ef1495df060275ea3e2474596f Command: ./compile.sh -d -f -j 8 -l -t mac-x86-64 -u

Console output:

[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependencies
[opt] Will compile xdebug, will not remove sources
[opt] Enabling abusive optimizations...
[opt] Set make threads to 8
[opt] Will compile with LevelDB support
[opt] Set target to mac-x86-64
[opt] Will compile with PocketMine-ChunkUtils C extension for Anvil
[INFO] Compiling for MacOS x86_64
[PHP] downloading 8.0.12... done!
[zlib] downloading 1.2.11... checking... compiling... installing... done!
[GMP] downloading 6.2.1... checking... compiling... installing... done!
[OpenSSL] downloading 1.1.1l... checking... compiling... installing... done!
[cURL] downloading curl-7_79_1... checking... compiling... installing... done!
[YAML] downloading 0.2.5... checking... compiling... installing... done!
[LevelDB] downloading 1c7564468b41610da4f498430e795ca4de0931ff... checking... compiling... installing... done!
[libxml] downloading 2.9.12... checking... compiling... installing... done!
[libzip] downloading 1.8.0...

Last log lines:

 /usr/bin/install -c -m 644 libxml2-xmlsave.html libxml2-xmlschemas.html libxml2-xmlschemastypes.html libxml2-xmlstring.html libxml2-xmlunicode.html libxml2-xmlversion.html libxml2-xmlwriter.html libxml2-xpath.html libxml2-xpathInternals.html libxml2-xpointer.html home.png left.png right.png up.png style.css '/Users/jarne/PocketMine-MP/bin_source/php-build-scripts/bin/php7/share/gtk-doc/html/libxml2'
Making install in examples
make[4]: Nothing to be done for `install-exec-am'.
../.././install-sh -c -d /Users/jarne/PocketMine-MP/bin_source/php-build-scripts/bin/php7/share/doc/libxml2-2.9.12/html
/usr/bin/install -c -m 0644 ./*.html ./*.c ./*.xml ./*.xsl ./*.res /Users/jarne/PocketMine-MP/bin_source/php-build-scripts/bin/php7/share/doc/libxml2-2.9.12/html
Making install in example
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in fuzz
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in xstc
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
curl: (35) error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length
mv: rename libzip-1.8.0 to libzip: No such file or directory
dktapps commented 2 years ago

Looks like network issue. Please try again later.

jarne commented 2 years ago

If someone else has the same problem: There is an issue with curl on macOS Monterey with specific SSL certificates (including the one on the libzip website). I've fixed the issue by installing wget.

novitae commented 2 years ago

You're not the only one to have this issue. This error came to me not with this repo but with the openssl command. Im trying to fix it so im looking around.

architchandra commented 1 year ago

Came here after searching for the same issue on Google. libzip was not installing on my machine (MacOS Ventura), breaking the PHP install.

Not sure exactly why, but re-running brew install php just worked. 🤷🏽