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

Installation problem #17

Open
rexlow opened this issue Dec 31, 2016 · 3 comments
Open

Installation problem #17

rexlow opened this issue Dec 31, 2016 · 3 comments

Comments

@rexlow
Copy link

rexlow commented Dec 31, 2016

I got this error when installing
package github.com/dborzov/lsp: cannot download, $GOPATH not set. For more details see: go help gopath

@mkody
Copy link

mkody commented Dec 31, 2016

Like the error is stating, you need to set a GOPATH. Create a folder somewhere on your machine for go binaries and sources (like in your home or at root of the disk) and export the path in your ~/.bash_profile or ~/.zshrc.

For example, if I did create a .go folder in my home, I can add this to my .zshrc:

export GOPATH=$HOME/.go

@zygimantus
Copy link

I did those steps. but go lsp or lsp does not work.

@zygimantus
Copy link

I solved it. I needed two lines in my ~/.zshrc file:

export GOPATH=$HOME/.go
export PATH=$PATH:$GOPATH/bin

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

3 participants