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

Makefile:9: recipe for target 'get_glide' failed #3

Closed ehsandeep closed 7 years ago

ehsandeep commented 7 years ago

Hey thanks for making and sharing it, while installing and following installation step i encountered with this error

root@localhost:~/xray# make get_glide
go get -u -v github.com/Masterminds/glide
github.com/Masterminds/glide (download)
github.com/Masterminds/glide/path
github.com/Masterminds/glide/cache
github.com/Masterminds/glide/mirrors
github.com/Masterminds/glide/cfg
github.com/Masterminds/glide/godep
github.com/Masterminds/glide/dependency
github.com/Masterminds/glide/gb
github.com/Masterminds/glide/gpm
github.com/Masterminds/glide/gom
github.com/Masterminds/glide/importer
github.com/Masterminds/glide/repo
github.com/Masterminds/glide/tree
github.com/Masterminds/glide/action
github.com/Masterminds/glide
/bin/glide install
make: /bin/glide: Command not found
Makefile:9: recipe for target 'get_glide' failed
make: *** [get_glide] Error 127
ehsandeep commented 7 years ago

Go version:

root@localhost:~/xray# go version
go version go1.8.3 linux/amd64
evilsocket commented 7 years ago

May I have the output of:

ls -la $GOPATH/bin

ehsandeep commented 7 years ago

sure!

root@localhost:~/xray# ls -la $GOPATH/bin
total 7896
drwxr-xr-x  2 root root    4096 May 18 06:35 .
drwxr-xr-x 23 root root    4096 Mar 21 09:55 ..
-rwxr-xr-x  1 root root 1029624 Nov  5  2016 bash
-rwxr-xr-x  3 root root   31152 Mar 27  2015 bunzip2
-rwxr-xr-x  3 root root   31152 Mar 27  2015 bzcat
lrwxrwxrwx  1 root root       6 Apr  6  2016 bzcmp -> bzdiff
-rwxr-xr-x  1 root root    2140 Mar 27  2015 bzdiff
lrwxrwxrwx  1 root root       6 Apr  6  2016 bzegrep -> bzgrep
-rwxr-xr-x  1 root root    4877 Mar 27  2015 bzexe
lrwxrwxrwx  1 root root       6 Apr  6  2016 bzfgrep -> bzgrep
-rwxr-xr-x  1 root root    3642 Mar 27  2015 bzgrep
-rwxr-xr-x  3 root root   31152 Mar 27  2015 bzip2
-rwxr-xr-x  1 root root   14480 Mar 27  2015 bzip2recover
lrwxrwxrwx  1 root root       6 Apr  6  2016 bzless -> bzmore
-rwxr-xr-x  1 root root    1297 Mar 27  2015 bzmore
-rwxr-xr-x  1 root root   51912 Mar 14  2015 cat
-rwxr-xr-x  1 root root   14560 Sep  8  2014 chacl
-rwxr-xr-x  1 root root   60072 Mar 14  2015 chgrp
-rwxr-xr-x  1 root root   55944 Mar 14  2015 chmod
-rwxr-xr-x  1 root root   64168 Mar 14  2015 chown
-rwxr-xr-x  1 root root  150824 Mar 14  2015 cp
-rwxr-xr-x  1 root root  125400 Nov  8  2014 dash
-rwxr-xr-x  1 root root   64168 Mar 14  2015 date
-rwxr-xr-x  1 root root   60144 Mar 14  2015 dd
-rwxr-xr-x  1 root root  101872 Mar 14  2015 df
-rwxr-xr-x  1 root root  118280 Mar 14  2015 dir
-rwxr-xr-x  1 root root   52224 Mar 29  2015 dmesg
lrwxrwxrwx  1 root root       8 Apr  6  2016 dnsdomainname -> hostname
lrwxrwxrwx  1 root root       8 Apr  6  2016 domainname -> hostname
-rwxr-xr-x  1 root root   31208 Mar 14  2015 echo
-rwxr-xr-x  1 root root      29 Feb 14  2015 egrep
-rwxr-xr-x  1 root root   27080 Mar 14  2015 false
-rwxr-xr-x  1 root root      29 Feb 14  2015 fgrep
-rwxr-xr-x  1 root root   45216 Mar 29  2015 findmnt
-rwxr-xr-x  1 root root   35824 Mar 24  2014 fuser
-rwxr-xr-x  1 root root   23584 Sep  8  2014 getfacl
-rwxr-xr-x  1 root root  202936 Feb 14  2015 grep
-rwxr-xr-x  2 root root    2301 Sep 26  2014 gunzip
-rwxr-xr-x  1 root root    5927 Sep 26  2014 gzexe
-rwxr-xr-x  1 root root   98152 Sep 26  2014 gzip
-rwxr-xr-x  1 root root   14640 Nov  3  2013 hostname
-rwxr-xr-x  1 root root  314560 Sep  5  2014 ip
-rwxr-xr-x  1 root root  219392 Jan  4  2017 journalctl
-rwxr-xr-x  1 root root   22960 Mar  6  2015 kill
-rwxr-xr-x  1 root root  158592 Sep 27  2014 kmod
-rwxr-xr-x  1 root root  165296 Sep  8  2014 less
-rwxr-xr-x  1 root root   10128 Sep  8  2014 lessecho
lrwxrwxrwx  1 root root       8 Apr  6  2016 lessfile -> lesspipe
-rwxr-xr-x  1 root root   19680 Sep  8  2014 lesskey
-rwxr-xr-x  1 root root    7758 Sep  8  2014 lesspipe
-rwxr-xr-x  1 root root   55984 Mar 14  2015 ln
-rwxr-xr-x  1 root root   52200 May 17 15:07 login
-rwxr-xr-x  1 root root  309488 Jan  4  2017 loginctl
-rwxr-xr-x  1 root root  118280 Mar 14  2015 ls
-rwxr-xr-x  1 root root   64552 Mar 29  2015 lsblk
lrwxrwxrwx  1 root root       4 Apr  6  2016 lsmod -> kmod
-rwxr-xr-x  1 root root  280816 Jan  4  2017 machinectl
-rwxr-xr-x  1 root root   80744 Mar 14  2015 mkdir
-rwxr-xr-x  1 root root   64296 Mar 14  2015 mknod
-rwxr-xr-x  1 root root   39528 Mar 14  2015 mktemp
-rwxr-xr-x  1 root root   39576 Mar 29  2015 more
-rwsr-xr-x  1 root root   40000 Mar 29  2015 mount
-rwxr-xr-x  1 root root   10320 Apr  6  2015 mountpoint
-rwxr-xr-x  1 root root  130288 Mar 14  2015 mv
-rwxr-xr-x  1 root root  196016 Jul 16  2014 nano
lrwxrwxrwx  1 root root      20 Apr  6  2016 nc -> /etc/alternatives/nc
-rwxr-xr-x  1 root root   27152 Sep 11  2014 nc.traditional
lrwxrwxrwx  1 root root      24 Apr  6  2016 netcat -> /etc/alternatives/netcat
-rwxr-xr-x  1 root root  120200 Nov  8  2014 netstat
lrwxrwxrwx  1 root root       8 Apr  6  2016 nisdomainname -> hostname
lrwxrwxrwx  1 root root      14 Apr  6  2016 pidof -> /sbin/killall5
-rwxr-xr-x  1 root root   44104 Nov  8  2014 ping
-rwxr-xr-x  1 root root   44552 Nov  8  2014 ping6
-rwxr-xr-x  1 root root   93096 Mar  6  2015 ps
-rwxr-xr-x  1 root root   31304 Mar 14  2015 pwd
lrwxrwxrwx  1 root root       4 Nov  5  2016 rbash -> bash
-rwxr-xr-x  1 root root   39432 Mar 14  2015 readlink
-rwxr-xr-x  1 root root   60072 Mar 14  2015 rm
-rwxr-xr-x  1 root root   43560 Mar 14  2015 rmdir
lrwxrwxrwx  1 root root       4 Apr  6  2016 rnano -> nano
-rwxr-xr-x  1 root root   19312 Nov  8  2014 run-parts
-rwxr-xr-x  1 root root   73416 Sep 19  2016 sed
-rwxr-xr-x  1 root root   36192 Sep  8  2014 setfacl
lrwxrwxrwx  1 root root       4 Apr  6  2016 sh -> dash
lrwxrwxrwx  1 root root       4 Apr  6  2016 sh.distrib -> dash
-rwxr-xr-x  1 root root   31208 Mar 14  2015 sleep
-rwxr-xr-x  1 root root   77984 Sep  5  2014 ss
-rwxr-xr-x  1 root root   68168 Mar 14  2015 stty
-rwsr-xr-x  1 root root   40168 May 17 15:07 su
-rwxr-xr-x  1 root root   27112 Mar 14  2015 sync
-rwxr-xr-x  1 root root  538904 Jan  4  2017 systemctl
lrwxrwxrwx  1 root root      20 Jan  4  2017 systemd -> /lib/systemd/systemd
-rwxr-xr-x  1 root root   39160 Jan  4  2017 systemd-ask-password
-rwxr-xr-x  1 root root   30944 Jan  4  2017 systemd-escape
-rwxr-xr-x  1 root root  239864 Jan  4  2017 systemd-inhibit
-rwxr-xr-x  1 root root   35048 Jan  4  2017 systemd-machine-id-setup
-rwxr-xr-x  1 root root   26848 Jan  4  2017 systemd-notify
-rwxr-xr-x  1 root root   80104 Jan  4  2017 systemd-tmpfiles
-rwxr-xr-x  1 root root   59632 Jan  4  2017 systemd-tty-ask-password-agent
-rwxr-xr-x  1 root root   18800 Mar 29  2015 tailf
-rwxr-xr-x  1 root root  358072 Oct 31  2016 tar
-rwxr-xr-x  1 root root   10352 Nov  8  2014 tempfile
-rwxr-xr-x  1 root root   60136 Mar 14  2015 touch
-rwxr-xr-x  1 root root   27080 Mar 14  2015 true
-rwxr-xr-x  1 root root  313584 Jan  4  2017 udevadm
-rwsr-xr-x  1 root root   27416 Mar 29  2015 umount
-rwxr-xr-x  1 root root   31240 Mar 14  2015 uname
-rwxr-xr-x  2 root root    2301 Sep 26  2014 uncompress
-rwxr-xr-x  1 root root  118280 Mar 14  2015 vdir
-rwxr-xr-x  1 root root   27032 Mar 29  2015 wdctl
-rwxr-xr-x  1 root root     946 Nov  8  2014 which
lrwxrwxrwx  1 root root       8 Apr  6  2016 ypdomainname -> hostname
-rwxr-xr-x  1 root root    1937 Sep 26  2014 zcat
-rwxr-xr-x  1 root root    1777 Sep 26  2014 zcmp
-rwxr-xr-x  1 root root    5764 Sep 26  2014 zdiff
-rwxr-xr-x  1 root root     140 Sep 26  2014 zegrep
-rwxr-xr-x  1 root root     140 Sep 26  2014 zfgrep
-rwxr-xr-x  1 root root    2131 Sep 26  2014 zforce
-rwxr-xr-x  1 root root    5938 Sep 26  2014 zgrep
-rwxr-xr-x  1 root root    2037 Sep 26  2014 zless
-rwxr-xr-x  1 root root    1910 Sep 26  2014 zmore
-rwxr-xr-x  1 root root    5047 Sep 26  2014 znew
evilsocket commented 7 years ago

Mmm there's something weird about your Go installation, see this line:

/bin/glide install

But it should be (from the Makefile):

$(GOPATH)/bin/glide install

But it looks defined after you gave me the ls output ...

ehsandeep commented 7 years ago

hmm any expected solution should i do? new to GO, i got same error while installing Go version of dirserach

evilsocket commented 7 years ago

Yep, define GOPATH correctly https://golang.org/doc/code.html#GOPATH :)

epinna commented 7 years ago

@madaratech just set the GOPATH environment variable.

If you're using ~/go as go path, append export GOPATH=$HOME/go to your .bashrc and source it.

evilsocket commented 7 years ago

@epinna I think he's just using an empty GOPATH, the ls -la $GOPATH/bin was just on /bin :D

epinna commented 7 years ago

You're right, still that export should sort it. Enjoying the project though :)

evilsocket commented 7 years ago

glad u like it! looking forward for your contributions/ideas :D

ehsandeep commented 7 years ago

okay, m going to define GOPATH again, and yeah thanks for your work @evilsocket, really appreciate it :)