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

Consider releasing statically linked binaries #22

Open
invidian opened this issue Sep 4, 2020 · 2 comments
Open

Consider releasing statically linked binaries #22

invidian opened this issue Sep 4, 2020 · 2 comments

Comments

@invidian
Copy link

invidian commented Sep 4, 2020

Currently, if hclq is installed on Alpine Linux, it does not work and gives following error:

/ # ./hclq-linux-amd64
/bin/sh: ./hclq-linux-amd64: not found
@NikolaLohinski
Copy link

Hi !

Just confirmed it works on alpine, you are not loading the correct processor build. Consider using 386.

wget -qO /bin/hclq https://github.com/mattolenik/hclq/releases/download/${HCLQ_VERSION}/hclq-linux-386 \
&& chmod +x /bin/hclq

However I confirm the install script does not work inside alpine.

@invidian
Copy link
Author

Just confirmed it works on alpine, you are not loading the correct processor build. Consider using 386.

Using 386 build seems like an workaround, as it's statically linked, which is why it works in contrary to amd64 build:

/ # file hclq-linux-amd64
hclq-linux-amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=tIObn0JcRt4t7mKZUrxH/b-btFO2_KdSHwn6i0W7c/c-1srTsj_N73rGCUjaaB/vF8B_vkNgQ44xuFID9pw, stripped
/ # file hclq-linux-386
hclq-linux-386: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, Go BuildID=MLoNZrIlwWx5zKn57MaC/tTZiapLXpVLLqG7Su0xM/N6g69xFevSz7g1vZeqxh/IdEdig3BEAM2gt3PdVCX, stripped

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

2 participants