Closed sawirricardo closed 8 months ago
This isn't how it works. You must not copy the script but run it from the cloned repo. Set the path of your Laravel app in the EMBED
environment var if you want to embed your app.
alright... another error is this... What can we do about this?
@sawirricardo Might be a bit weird, but this could be caused by the extra libraries not being downloaded yet.
The current download command is only --for-extensions
, which downloads the source code of related dependencies through the given extensions. build-static.sh
now forces compilation of liblz4 as an additional library, but it is not downloaded for certain extension combinations.
@dunglas I will add download --for-libs=xxx,yyy
in static-php-cli 2.1.4 (which will be released later).
@dunglas question, do we know how to solve the 403 error download?
@sawirricardo Use GITHUB_TOKEN=xxxx
variable to download github sources. You can pass this var before ./bin/spc download
command or just export GITHUB_TOKEN.
Seems that solve the issue... but soon after encounter this one...
TBH, this really depends on a good network environment. In addition to GITHUB_TOKEN, you can also set the number of automatic retries: e.g. --retry=4
. If you are like me and are in a special Internet environment (such as mainland China), it is best to use a VPN or a high-speed proxy to download these archives.
@sawirricardo try again, that's "just" a network error. It happens if your connection is not very good (and sometimes randomly, even in the CI).
hm, have put GITHUB_TOKEN=xxxx EMBED=. ~/frankenphp/buildstatic.sh --retry=10
, still not working
It's a bit frustrating though to have waited for 10 mins only to find out it has failed and have to restart all over again
What happened?
Build Type
Official static build
Worker Mode
No
Operating System
macOS
CPU Architecture
Apple Silicon
PHP configuration
Relevant log output
No response