Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems while installing #18

Open
rocky-peng opened this issue Jun 2, 2017 · 4 comments
Open

problems while installing #18

rocky-peng opened this issue Jun 2, 2017 · 4 comments

Comments

@rocky-peng
Copy link

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

@tightly-clutched
Copy link

tightly-clutched commented Dec 1, 2017

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

@Davidrjx
Copy link

go1.14 does not install it

@kokes
Copy link
Contributor

kokes commented Aug 11, 2021

@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

@techie2000
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants