-
Notifications
You must be signed in to change notification settings - Fork 261
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
Using WSL Ubuntu 20.04.5 LTS #183
Comments
Update: See below. Here are the steps I used, as a normal user, using # temporary; you will want to add $HOME/go/bin to PATH in your login scripts
PATH=$HOME/go/bin:$PATH
# get a more recent release
GO111MODULE=on go get golang.org/dl/go1.18.9@latest
# download the full SDK
go1.18.9 download
# get pup
go1.18.9 install github.com/ericchiang/pup@latest
# make sure it worked
which pup
# result: /home/me/go/bin/pup As a disclaimer, I am not a Go developer, and I don't claim to understand why References
|
At the time, I didn't realize that there were other versions of sudo apt install golang-1.18 Then, in your # this is just a personal preference; the default on Unix is ~/go
export GOPATH=$HOME/.local/go
export GOROOT=/usr/lib/go-1.18
export PATH="$GOROOT/bin:$GOPATH/bin:$PATH" Log out and back in, or go install -v github.com/ericchiang/pup@latest Test to make sure it worked: $ which pup
/home/yourusername/.local/go/bin/pup
$ pup --help |
go get github.com/ericchiang/pup
golang.org/x/sys/unix
go/src/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
go/src/golang.org/x/sys/unix/syscall_linux.go:2256:9: undefined: unsafe.Slice
go/src/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
go/src/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
The text was updated successfully, but these errors were encountered: