gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

Cannot run the tar.gz file in linux

Open singhhrpreet opened this issue 3 years ago • 5 comments

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

singhhrpreet avatar Jun 20 '21 14:06 singhhrpreet

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.

kami93 avatar Jun 21 '21 05:06 kami93

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

TonalidadeHidrica avatar Nov 27 '21 17:11 TonalidadeHidrica

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

Lord-V15 avatar Mar 16 '22 12:03 Lord-V15

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

metaphore avatar Mar 18 '22 13:03 metaphore

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

klarkc avatar Apr 25 '22 12:04 klarkc