cybozu-go / transocks

Transparent SOCKS5 / HTTP proxy in Go
MIT License
467 stars 61 forks source link

trying to install throwing an error #31

Open JeevansSP opened 2 years ago

JeevansSP commented 2 years ago

f1@LagMachine:~$ go get -u github.com/cybozu-go/transocks/...

package github.com/cybozu-go/transocks imports math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

package github.com/cybozu-go/transocks imports github.com/apparentlymart/go-textseg/v13/textseg: cannot find package "github.com/apparentlymart/go-textseg/v13/textseg" in any of: /usr/local/go/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of: /usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/ast: cannot find package "github.com/pelletier/go-toml/v2/internal/ast" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/ast (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/ast (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/danger: cannot find package "github.com/pelletier/go-toml/v2/internal/danger" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/danger (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/danger (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/tracker: cannot find package "github.com/pelletier/go-toml/v2/internal/tracker" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/tracker (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/tracker (from $GOPATH)

i have go version >1.7 so i dont know why i would get this error , can someone help me?

shmilee commented 1 year ago

Install go 435.03M

go version                                          
go version go1.19.3 linux/amd64

After go get, go build, or go install, a lot of files in ~/go ~/.cache/go-build But NO executable found! Now I use this https://github.com/cybozu-go/transocks/issues/29#issuecomment-913555490 5.8M

Better to use github actions to auto-build executable file for each release!

ossie-git commented 1 year ago

To build an executable, just run:

go install github.com/cybozu-go/transocks/cmd/...@latest