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

./gdrive: No such file or directory #597

Closed
dhairya137 opened this issue Aug 25, 2021 · 17 comments
Closed

./gdrive: No such file or directory #597

dhairya137 opened this issue Aug 25, 2021 · 17 comments

Comments

@dhairya137
Copy link

I have extracted gdrive_2.1.1_linux_amd64.tar.gz on my ubuntu 20.04 but when I try to run gdrive with executable permissions I get this error.
Screenshot from 2021-08-25 17-21-15

@mauriliosalg
Copy link

same thing here...

@ma3yta
Copy link

ma3yta commented Aug 30, 2021

Temporary, You can use i386 binary instead amd64. It works fine for me.

wget -q -O /tmp/gdrive.tar.gz "https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz"
mkdir /tmp/gdrive && tar -xf /tmp/gdrive.tar.gz -C /tmp/gdrive
chmod +x /tmp/gdrive/gdrive
/tmp/gdrive/gdrive download 1o1qjRgkJtnF_8uGB1z6MRsQUjWinHUsw --recursive --path ~/Downloads

@RemiDesgrange
Copy link

(Possible reason) The doc say this program is statically linked, which is false on amd64 build . It depends on... musl, and not glibc, which is the default on many linux distro (including ubuntu, arch, etc...). Use the i386 build which is statically linked.

@sergeken
Copy link

sergeken commented Sep 7, 2021

I confirm that it needs musl, I had the same problem with Arch Linux

@t31k3
Copy link

t31k3 commented Sep 15, 2021

strings gdrive |egrep "[.]so$|[.]so[.]1"
yep: sudo apt install musl
strace gdrive help didnt help, but I think there is some command that let we see the dependencies other than force it thru strings

@RemiDesgrange
Copy link

ldd is the command you are looking for I think.

@marhensa
Copy link

i spent near one hour to find this problem.
all those workaround always tell me to "chmod +x gdrive", which leads to nothing.
THIS confirm my sanity, that indeed it's a real bug.

@ma3yta yes, thank you i386 binary works just fine. I temporarily using this, any downside compared to amd64?

@ma3yta
Copy link

ma3yta commented Sep 27, 2021

@marhensa no downsides. the program just uses 32-bit (i386) CPU instructions instead of 64-bit (amd64) instructions which is OK for x86_64 processors.

@YohannsMonnier
Copy link

I confirm this bug

@hiraksarkar
Copy link

I think we should keep the issue open, until readme atleast mentions this.

@ahmafi
Copy link

ahmafi commented Dec 28, 2021

I have the same issue on 2.1.1

@pcstuff
Copy link

pcstuff commented Dec 31, 2021

same issue

1 similar comment
@wxthss82
Copy link

same issue

@duzhor
Copy link

duzhor commented Jan 13, 2022

root@localhost:~# gdrive about
-bash: /usr/local/bin/gdrive: No such file or directory
root@localhost:~# ldd gdrive
ldd: ./gdrive: No such file or directory
root@localhost:~# ldd /usr/local/bin/gdrive 
	linux-vdso.so.1 (0x00007ffcaacbe000)
	libc.musl-x86_64.so.1 => not found
root@localhost:~# 
root@localhost:~# apt install -y musl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  musl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 418 kB of archives.
After this operation, 800 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 musl amd64 1.2.2-1 [418 kB]
Fetched 418 kB in 0s (2947 kB/s)
Selecting previously unselected package musl:amd64.
(Reading database ... 30457 files and directories currently installed.)
Preparing to unpack .../musl_1.2.2-1_amd64.deb ...
Unpacking musl:amd64 (1.2.2-1) ...
Setting up musl:amd64 (1.2.2-1) ...
Processing triggers for man-db (2.9.4-2) ...
root@localhost:~# 
root@localhost:~# 
root@localhost:~# gdrive about
Authentication needed
Go to the following url in your browser:

This can be fixed on Debian by command apt install -y musl.
but I think gdrive should give error feedback.

@scegg
Copy link

scegg commented Jul 14, 2022

on ubuntu x64 22.04 LTS, install musl won't fix this. libc.musl-x86_64.so.1 is not found after musl installed.

@jonahpearl
Copy link

Confirm same issue, on a Linux 3.10 compute cluster. Musl didn't fix, using i386 seems fine.

@Delta-dev-99
Copy link

Confirm same issue on Ubuntu x86_64 machine Linux 5.15.0-46-generic
Installing musl (via apt install musl) fixed the issue

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