pcstat icon indicating copy to clipboard operation
pcstat copied to clipboard

problems while installing

Open rocky-peng opened this issue 8 years ago • 4 comments

go build warning: GOPATH set to GOROOT (/usr/lib/golang) has no effect mincore.go:24:2: cannot find package "golang.org/x/sys/unix" in any of: /usr/lib/golang/src/golang.org/x/sys/unix (from $GOROOT) ($GOPATH not set)

already install go,but the file '/usr/lib/golang/src/golang.org/x/sys/unix' does not exist. i found a file : /usr/lib/golang/src/internal/syscall/unix

rocky-peng avatar Jun 02 '17 08:06 rocky-peng

New-to-Go checklist...

$ sudo add-apt-repository ppa:gophers/archive $ sudo apt update $ sudo apt-get install golang-1.9-go $ export PATH=$PATH:/usr/lib/go-1.9/bin $ go get golang.org/x/sys/unix $ go get github.com/tobert/pcstat/pcstat $ export GOPATH=$HOME/go $ cd ~/go/src/github.com/tobert/pcstat/ $ go build

find your new binary at ~/go/bin/pcstat

tightly-clutched avatar Dec 01 '17 22:12 tightly-clutched

go1.14 does not install it

Davidrjx avatar Aug 11 '21 08:08 Davidrjx

@Davidrjx can you provide more info?

This works just fine:

$ docker run --rm -it golang:1.14
$ go get github.com/tobert/pcstat/pcstat
$ ./bin/pcstat

kokes avatar Aug 11 '21 09:08 kokes

@tightly-clutched Not sure if it's me (it's the first time I've installed/played with go, so it quite probably is me) but I found that instead of

go get github.com/tobert/pcstat/pcstat

I had to use

go get github.com/tobert/pcstat

techie2000 avatar Nov 01 '21 20:11 techie2000