prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Cannot run the tar.gz file in linux #580

Open singhhrpreet opened 3 years ago

singhhrpreet commented 3 years ago

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 commented 3 years ago

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.

TonalidadeHidrica commented 3 years ago

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

Lord-V15 commented 2 years ago

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

metaphore commented 2 years ago

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 commented 2 years ago

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