Open Onslaught opened 7 years ago
Install package with (-v is optional)
go get -v golang.org/x/net/publicsuffix
Help!
@gearcapitan Follow this commend:
export GOPATH=~/.go
export PATH=$PATH:$GOPATH/bin
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
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