dcrawl icon indicating copy to clipboard operation
dcrawl copied to clipboard

Build can not find package "golang.org/x/net/publicsuffix"

Open Onslaught opened this issue 8 years ago • 4 comments

Users/js/Desktop/dcrawl-master/dcrawl.go:17:2: cannot find package "golang.org/x/net/publicsuffix" in any of: /usr/local/Cellar/go/1.9/libexec/src/golang.org/x/net/publicsuffix (from $GOROOT) /Users/js/go/src/golang.org/x/net/publicsuffix (from $GOPATH) Process exiting with code: 1

Onslaught avatar Sep 11 '17 20:09 Onslaught

Install package with (-v is optional) go get -v golang.org/x/net/publicsuffix

sachin-ranadive avatar Sep 20 '17 19:09 sachin-ranadive

Help!

kali linux-2018-01-17-21-01-58

gearcapitan avatar Jan 18 '18 03:01 gearcapitan

@gearcapitan Follow this commend:

export GOPATH=~/.go
export PATH=$PATH:$GOPATH/bin

anuxraw avatar Jan 29 '18 19:01 anuxraw

root@dev:/home/dcrawl# go get -v golang.org/x/net/publicsuffix
Fetching https://golang.org/x/net/publicsuffix?go-get=1
Parsing meta tags from https://golang.org/x/net/publicsuffix?go-get=1 (status code 200)
get "golang.org/x/net/publicsuffix": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/publicsuffix?go-get=1
get "golang.org/x/net/publicsuffix": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
created GOPATH=/root/go; see 'go help gopath'
go: missing Git command. See https://golang.org/s/gogetcmd
package golang.org/x/net/publicsuffix: exec: "git": executable file not found in $PATH

If you get an error with: package golang.org/x/net/publicsuffix: exec: "git": executable file not found in $PATH

install git: sudo apt-get install git apt-get install git

rremo avatar Jun 12 '19 15:06 rremo