kgretzky / dcrawl

Simple, but smart, multi-threaded web crawler for randomly gathering huge lists of unique domain names.
MIT License
516 stars 93 forks source link

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

Open Onslaught opened 7 years ago

Onslaught commented 7 years ago

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

sachin-ranadive commented 7 years ago

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

gearcapitan commented 6 years ago

Help!

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

anuxraw commented 6 years ago

@gearcapitan Follow this commend:

export GOPATH=~/.go
export PATH=$PATH:$GOPATH/bin
rremo commented 5 years ago
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