Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Cannot run the tar.gz file in linux #580

Open
singhhrpreet opened this issue Jun 20, 2021 · 5 comments
Open

Cannot run the tar.gz file in linux #580

singhhrpreet opened this issue Jun 20, 2021 · 5 comments

Comments

@singhhrpreet
Copy link

singhhrpreet commented Jun 20, 2021

Hi,

I downloaded the pre-built binary. This exact link 👇🏼
(https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_amd64.tar.gz)

But, when I extract and try to run the executable

./gdrive

it says

No such file or directory

@kami93
Copy link

kami93 commented Jun 21, 2021

FIlenames for i386 and amd64 are swapped. Download https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz instead.

thvitt added a commit to thvitt/gdrive that referenced this issue Jul 12, 2021
This forces all built binaries to be statically linked.

Fixes prasmussen#579, prasmussen#580
@TonalidadeHidrica
Copy link

@prasmussen This is causing problem to quite a many people. Could you fix the download link, or at least pin this issue?

@Lord-V15
Copy link

Oh my. 🙄
I just spent an hour trying to install it.
Please pin this issue so people can stop wasting their time.

@metaphore
Copy link

I don't think that the binaries are actually swapped. Because file command against the 386 version of gdrive clearly states that it is a ELF 32-bit LSB executable. And it returns ELF 64-bit LSB executable, x86-64 for a amd64 archive version.

So the 386 version works in general case, because there's a 32-bit instruction interpreter...

The true problem is actually a missing dependency (as stated in the #618 issue).
You need to have musl lib installed on the system in order to get a working 64-it executable.

For Ubuntu based distros simply execute

sudo apt install musl -y

@klarkc
Copy link

klarkc commented Apr 25, 2022

This musl dependency can't be embed in the binary?

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

No branches or pull requests

6 participants