crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.33k stars 233 forks source link

spc cannot download openssl #516

Closed tricarte closed 3 months ago

tricarte commented 3 months ago

This is the command I use to download:

spc download --with-php=8.3 --for-extensions "openssl,zlib"

And this is the output with error:

[06:37:13] [INFO] Fetching source php-src [1/5]
[06:37:18] [INFO] Fetching source micro [2/5]
[06:37:19] [INFO] Fetching source pkg-config [3/5]
[06:37:25] [INFO] Fetching source zlib [4/5]
[06:37:27] [INFO] Fetching source openssl [5/5]
[06:37:28] [ERRO] SPC\store\Downloader::downloadFile(): Argument #3 ($filename) must be of type string,
bool given, called in phar:///home/user/bin/spc-231/src/SPC/store/Downloader.php on line 438

spc --version: static-php-cli 2.3.1 Os: Ubuntu 24.04

crazywhalecc commented 3 months ago

Try main branch of spc? curl -fsSL -o spc https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64

tricarte commented 3 months ago

Tested, works as expected. Thanks.