I have set the following environmental variables in .bashrc
file
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/home/Rushikesh/GO
export PATH=$PATH:$GOPATH/bin
When I run following command:
go get github.com/nsf/gocode
I get the following error:
package github.com/nsf/gocode: mkdir /home/Rushikesh: permission denied
The problem is your configuration.
As reading form your comments Rushikesh is not user it is your directory. Then the GOPATH env variable should be
export GOPATH=/home/logged_user_name/Rushikesh/GO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With