cli53
cli53 copied to clipboard
can't invoke on alpine
Issue type
- Bug report
cli53 version (cli53 --version)
can't be invoked
OS / Platform
sak⎈ int~ # uname -a
Linux 7d418b32d03e 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 Linux
sak⎈ int~ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.9.4
PRETTY_NAME="Alpine Linux v3.9"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
Steps to reproduce
Expected behaviour
cli53 --help
works
Actual behaviour
can't be invoked
sak⎈ int~ # file cli53
cli53: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=uVdVpopOu8TTQFOgZTPs/L2En9TGKtJ7UvsUhSpYt/s5PTHkUDljxBDmLmeRBC/3qOJJM_GXGz5C4U7T9JZ, stripped
sak⎈ int~ # cli53 --help
bash: cli53: No such file or directory
sak⎈ int~ # echo $?
127
sak⎈ int~ # ls -la /usr/local/bin/cli53
-rwxr-xr-x 1 root root 19566592 Dec 8 02:21 /usr/local/bin/cli53
I think this error happens due to that /lib64/ld-linux-x86-64.so.2 is missing from my distro (docker image/container - in case that matters).
Have you checked if the documentation has the information you require?
yes
Could you contribute a fix or help testing with this issue?
no
I think it should work fine on alpine - it's statically linked.
Does /usr/local/bin/cli53 --help
work?
What's ldd /usr/local/bin/cli53
show?
See README:
Note: for Alpine on Docker, the pre-built binaries do not work, so either use Debian, or follow the instructions below for Building from source.
Hello @barnybug,
I checkout your repository and i only change the makefile with GOOS=linux GOARCH=amd64
and it's work for alpine
😄