Skip to content

Instantly share code, notes, and snippets.

@shui
Last active June 11, 2017 07:55
Show Gist options
  • Save shui/f05d3d51f559cfa59697618945bb0d42 to your computer and use it in GitHub Desktop.
Save shui/f05d3d51f559cfa59697618945bb0d42 to your computer and use it in GitHub Desktop.
/etc/environment
JAVA_HOME="/usr/shui/jdk1.8.0_131"
GOROOT="/usr/shui/go"
GOPATH="$HOME/mygo"
M2_HOME="/usr/shui/apache-maven-3.5.0"
GRADLE_HOME="/usr/shui/gradle-3.5"
PATH="$JAVA_HOME/bin:$GOROOT/bin:$GOPATH/bin:$M2_HOME/bin:$GRADLE_HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
CLASSPATH=".:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar"

Bug

$ go env
go: cannot find GOROOT directory: /usr/local/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment