Language Installation - neal-erickson/dotfiles GitHub Wiki
- Install nvm
- Don't use
homebrew
follow installation script
- Don't use
- Install whatever versions needed via
nvm install <version>
(first installed becomes default)
- Install golang:
brew install go
- Add path to
.bashrc
or.zshrc
:export GOPATH=~/dev/go
- Create Go home directory:
mkdir -p $GOPATH $GOPATH/src $GOPATH/pkg $GOPATH/bin
- Via Homebrew:
brew install openjdk@11
- Install
jenv
for multiple Java versionsbrew install jenv
- Add following to
.zshrc
:
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
- Run:
jenv doctor
jenv enable-plugin export
jenv enable-plugin maven
- Add Java installations, e.g. adoptopenjdk via Homebrew:
jenv add /opt/homebrew/Cellar/openjdk@11/11.0.16.1/libexec/openjdk.jdk/Contents/Home
- Set default version:
jenv global 11.0.16.1
- Maven
- Homebrew installation:
brew install maven
- Make sure maven install location in path, e.g.:
/opt/homebrew/Cellar/maven/3.8.6
- Homebrew installation:
- Install
pyenv
(https://github.com/pyenv/pyenv#homebrew-in-macos)brew update; brew install pyenv
https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv
- Prerequisite:
xcode-select --install
- Other dependencies for building:
brew install openssl readline sqlite3 xz zlib tcl-tk
- Install pyenv-virtualenv (https://github.com/pyenv/pyenv-virtualenv)
brew install pyenv-virtualenv
- Usage: https://realpython.com/intro-to-pyenv/