evilsocket / xray

XRay is a tool for recon, mapping and OSINT gathering from public networks.
GNU General Public License v3.0
2.21k stars 299 forks source link

Install Fails with make install_dependencies #4

Closed CreativeWolf closed 7 years ago

CreativeWolf commented 7 years ago

Heya,

Interesting project!

Here's the error I'm getting while running make install_dependencies

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ make install_dependencies glide install make: glide: Command not found Makefile:15: recipe for target 'install_dependencies' failed make: *** [install_dependencies] Error 127

Go Version:

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ go version go version go1.7.5 linux/amd64

Output of ls -la $GOPATH/bin

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ ls -la $GOPATH/bin total 10320 drwxrwxr-x 2 cw cw 4096 Jul 9 20:04 . drwxrwxr-x 5 cw cw 4096 Jul 9 20:04 .. -rwxrwxr-x 1 cw cw 10557277 Jul 9 20:04 glide

Appreciate guidance in getting xray up and running :)

Thanks

evilsocket commented 7 years ago

can you sudo ldconfig and try again?

CreativeWolf commented 7 years ago

Same error:

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ sudo ldconfig [sudo] password for cw: cw@WolfDen:~/go/src/github.com/evilsocket/xray$ make install_dependencies glide install make: glide: Command not found Makefile:15: recipe for target 'install_dependencies' failed make: *** [install_dependencies] Error 127

evilsocket commented 7 years ago

I do see the glide binary in your GOPATH, so it should work, no idea why it's not .... open new terminal and try again?

CreativeWolf commented 7 years ago

Opened new terminal sudo ldconfig make install_dependencies

Same error...

ehsandeep commented 7 years ago

i see same error after setting the environment properly & while running this make install_dependencies

evilsocket commented 7 years ago

Could you please run:

$GOPATH/bin/glide -v

ehsandeep commented 7 years ago
root@localhost:~/go/src/github.com/evilsocket/xray# $GOPATH/bin/glide -v
glide version 0.13.0-dev
root@localhost:~/go/src/github.com/evilsocket/xray#
CreativeWolf commented 7 years ago

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ $GOPATH/bin/glide -v glide version 0.13.0-dev

evilsocket commented 7 years ago

Ok, now for the last question:

Did you update your $PATH appending your $GOPATH/bin ? :D

ehsandeep commented 7 years ago

i did this: export GOPATH=$HOME/go then sourced it.

CreativeWolf commented 7 years ago

export PATH=$PATH:$GOPATH/bin

That fixed the issue with make install_dependencies

Now make build fails

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ make build go-bindata -o cmd/xray/ui.go -pkg main ui make: go-bindata: Command not found Makefile:30: recipe for target 'static' failed make: *** [static] Error 127

evilsocket commented 7 years ago

Add $GOPATH/bin to your $PATH guys ( I added it in my .zshrc for instance ):

export GOPATH="$HOME/gocode"
export PATH="$PATH:$GOPATH/bin" 
CreativeWolf commented 7 years ago

cw@WolfDen:~/go/src/github.com/evilsocket/xray$ go get -u github.com/jteeuwen/go-bindata/ cw@WolfDen:~/go/src/github.com/evilsocket/xray$ make build go-bindata -o cmd/xray/ui.go -pkg main ui make: go-bindata: Command not found Makefile:30: recipe for target 'static' failed make: *** [static] Error 127

evilsocket commented 7 years ago

@CreativeWolf read the README

ehsandeep commented 7 years ago

with above install_dependencies solved, but the final step n error:

root@localroot:~/go/src/github.com/evilsocket/xray# make build
go-bindata -o cmd/xray/ui.go -pkg main ui
make: go-bindata: Command not found
Makefile:30: recipe for target 'static' failed
make: *** [static] Error 127
CreativeWolf commented 7 years ago

Thanks, that sorted it! Appreciate your help =)

evilsocket commented 7 years ago

@madaratech you too, read the README!

ehsandeep commented 7 years ago

haha sorry i see it now, and it worked, thanks @evilsocket :)

evilsocket commented 7 years ago

victory dance

┏(・o・)┛♪┗ (・o・) ┓