Exec format error
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!
Try with gdrive-linux-rpi instead of gdrive-netbsd-386
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?
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'
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
Hello @Sergiosteles , i am facing the same problem, have you been able to find a solution ? Thanks
Ditto on this. I am getting this error when attempting to install it on my RaspberryPi
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