gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

Exec format error

Open mrcrocodile556 opened this issue 9 years ago • 7 comments

Hi, I'm trying to execute motion detection and send image to my gdrive on my raspberry.

Following this guide, at 1:19min of the video,

I was told to wget gdrive-netbsd-386 and sudo install that package to /usr/local/bin/drive .

I am able to sudo install <package name> /usr/local/bin/drive successfully. Next, when i type in drive to sign in the machine i was prompt with this error:

-bash: /usr/local/bin/drive: cannot execute binary file: Exec format error

You did mention run chmod +x to make binary executable. This is also my first time launching gdrive.

May i know what i should do? What is the full command to run it successfully?

Thank you in advance!

mrcrocodile556 avatar May 03 '16 09:05 mrcrocodile556

Try with gdrive-linux-rpi instead of gdrive-netbsd-386

Guilucand avatar May 03 '16 18:05 Guilucand

Thank you so much! appreciate your help,

After verifying, this is the output that is being displayed: User: [email protected], [email protected] Used: Free: 16.1 GB Total: 16.1 GB Max upload size: 5.2 TB

Am i on the right track? However, i typed in the command "drive" and it still give me a error of: "No valid arguments given, use 'gdrive help' to see available commands"

Any idea why?

mrcrocodile556 avatar May 04 '16 01:05 mrcrocodile556

With 'drive help' you can see a list of available commands, for example if you want to list all files uploaded to google drive you can do it with the command 'drive list'

Guilucand avatar May 04 '16 15:05 Guilucand

Hi, i have more and less the same error, but in my case im trying to Uploads file from a virtualized Ubuntu 20.04 LTS with WSL to Google Drive. I found this post (https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937) but when i try to execute the ./gdrive about command, i recive the same cannot execute binary file: error, with an aditional exec format error. Im trying to save an a important work that im doing there, so any help it will be really helpfull. Thanks

Sergiosteles avatar May 09 '22 10:05 Sergiosteles

Hello @Sergiosteles , i am facing the same problem, have you been able to find a solution ? Thanks

n0poti avatar Jun 15 '22 17:06 n0poti

Ditto on this. I am getting this error when attempting to install it on my RaspberryPi

ciprianhirlea avatar Jul 05 '22 19:07 ciprianhirlea

I tried the amd64 version and got same issue.

$ file gdrive 
gdrive: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, Go BuildID=LPNobKoNhYeFlz7JNx15/ZzI595Tul2vzANCybCLW/ivWdAFQEgsxk2IW4xm0E/km1nogdaurkNF26-P4f4, not stripped

It seems it has one dynamically linked library. nontypical for golang binaries usually have everything statically linked. So the solution is to install missing library

$ apt install musl

mastier avatar Aug 14 '22 22:08 mastier