Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't invoke on alpine #308

Open
MarcMielke opened this issue Dec 8, 2020 · 3 comments
Open

can't invoke on alpine #308

MarcMielke opened this issue Dec 8, 2020 · 3 comments

Comments

@MarcMielke
Copy link

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

@barnybug
Copy link
Owner

barnybug commented Dec 8, 2020

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?

@barnybug
Copy link
Owner

barnybug commented Dec 8, 2020

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.

@Prims47
Copy link

Prims47 commented May 19, 2021

Hello @barnybug,

I checkout your repository and i only change the makefile with GOOS=linux GOARCH=amd64 and it's work for alpine

😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants