google / namebench

namebench
Apache License 2.0
890 stars 152 forks source link

will not compile on ubuntu 23.03 #25

Open iconoclasthero opened 9 months ago

iconoclasthero commented 9 months ago

$ export GOPATH=pwd git clone https://github.com/google/namebench.git src/github.com/google/namebench go get github.com/mattn/go-sqlite3 go get golang.org/x/net/publicsuffix go get github.com/miekg/dns Cloning into 'src/github.com/google/namebench'... remote: Enumerating objects: 5594, done. remote: Total 5594 (delta 0), reused 0 (delta 0), pack-reused 5594 Receiving objects: 100% (5594/5594), 26.22 MiB | 1.00 MiB/s, done. Resolving deltas: 100% (3947/3947), done. go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

$ go install github.com/mattn/go-sqlite3@latest; go install golang.org/x/net/publicsuffix@latest; go install github.com/miekg/dns@latest go: downloading github.com/mattn/go-sqlite3 v1.14.17 package github.com/mattn/go-sqlite3 is not a main package go: downloading golang.org/x/net v0.15.0 package golang.org/x/net/publicsuffix is not a main package go: downloading github.com/miekg/dns v1.1.56 go: downloading golang.org/x/sys v0.12.0 package github.com/miekg/dns is not a main package

iconoclasthero commented 9 months ago

go version go1.20.3 linux/amd64

kawaiwaifu commented 6 months ago

its not working however if you want to try make a new folder, cd to that folder then git clone https://github.com/google/namebench.git src/github.com/google/namebench *without the export GOPATH=pwd then paste the go get cmds. if it throws $go: go.mod file not found in current directory or any parent director" : go mod init namebench then paste the go get commands again. if this error showed up: "$GOPATH/go.mod exists but should not" then do: export GOPATH=path to the directory and finally try the go get cmds again and it should be fine. and after its done building : ./namebench and it shows an url, paste it in your browser.