Closed cappuc closed 2 years ago
With 2.5.0-beta.2
it works
With 2.5.0-rc.1
and 2.5.0-rc.2
it gives the same error: sh: ./rr: not found
Hey @cappuc . I restarted the build a few minutes ago, so now everything should be ok. Could you please retry the download?
I retried but it gives the same error. Maybe the file is cached on github cdn and it downloads the old build?
@cappuc What version of the roadrunner-cli do you use?
./vendor/bin/rr --version RoadRunner CLI 2.5.0
@cappuc I mean this one: https://github.com/spiral/roadrunner-cli, there is no 2.5
version.
the latest: v2.0.11
The problem is not in the download: the binary is downloaded and ./rr
file exists but when launching it with sh it gives sh: ./rr: not found
error
You need to do chmod +x rr
I found the problem:
The rr
binary requires /lib64/ld-linux-x86-64.so.2
library and is not present in alpine by default
Installing libc6-compat
package resolves the problem
For the alpine, please, use the musl version: https://github.com/spiral/roadrunner-binary/releases/download/v2.5.0/roadrunner-2.5.0-unknown-musl-amd64.zip
For the alpine, please, use the musl version: https://github.com/spiral/roadrunner-binary/releases/download/v2.5.0/roadrunner-2.5.0-unknown-musl-amd64.zip
Without installing libc6-compat
it doesn't work
For the alpine, please, use the musl version: https://github.com/spiral/roadrunner-binary/releases/download/v2.5.0/roadrunner-2.5.0-unknown-musl-amd64.zip
Without installing
libc6-compat
it doesn't work
Yeah, because it's not a fully static build. Go needs to link some OS libs for the user/net packages (and some others). I just wanted to say, that for the alpine we have a different binary.
I tried this code:
On first run it gave this warning and downloaded v2.4.2:
On next runs the warning disappeared and it downloaded v2.5.0 but when running
rr
it gives this error:sh: ./rr: not found
.I tested it on alpine linux inside docker container