ok-borg / borg

Search and save shell snippets without leaving your terminal
Apache License 2.0
1.61k stars 58 forks source link

cannot execute binary file: exec format error #53

Closed ghost closed 7 years ago

ghost commented 7 years ago

So i've been trying to intall borg on my mint, and despite my different tries on different releases it never works ^^ always the same message. If any one has a way to fix I'd be very thankfull

jeremyletang commented 7 years ago

Mint is a debian based gnu/linux right ? which binary did you try ? one of those:

ghost commented 7 years ago

Yes, mint is Debian based, so just like I told before I tried the installation with 386/amd64,

wget https://github.com/ok-borg/borg/releases/download/v0.0.**2**/borg_linux_**amd64(or 386)** -O /usr/local/bin/borg

then

chmod 755 /usr/local/bin/borg , so just like its written on the Install section.

So when I try withe amd64 installation I get the same error as before, BUT when I try with the 386 release.. I get a " panic: user: Current not implemented on linux/386"

followed by a badass message:

goroutine 1 [running]: github.com/crufter/borg/conf.init.1() /Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:36 +0x58 github.com/crufter/borg/conf.init() /Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:72 +0x1b2 github.com/crufter/borg/commands.init() /Users/crufter/go/src/github.com/crufter/borg/commands/worked.go:80 +0x4d main.init() /Users/crufter/go/src/github.com/crufter/borg/main.go:39 +0x43

so actually I'm noob enough to not understand a thing here ^^

crufter commented 7 years ago

"Current not implemented on linux/386" this is really weird, gonna have a look at this @worship-john

ghost commented 7 years ago

Ok, anything I should do to help ?

crufter commented 7 years ago

Ok this thread says the package os/user needs cgo, https://github.com/golang/go/issues/14625

I will see if there is a way to fix this, by compiling in an other way.

ghost commented 7 years ago

Ok so I read several times the tread to try understanding but a recap wont hurt anyone, so I have to:

right ?

crufter commented 7 years ago

@worship-john I believe that's correct, yes. Will look wether there is an easier way, it shouldn't be this painful.

ghost commented 7 years ago

Ok so I tried to solve this, google a lot but no success ... I actually don't know how to proceed ^^

crufter commented 7 years ago

@worship-john Perhaps install docker and try the dockerised version: https://github.com/juhofriman/borg-docker