How to setup Mac with developer tools
Important: the logged-in user needs to have Administrative privileges.
- Go here and follow instructions
- Verify installation with command
brew --version
- You will also have Git
git --version
Update Brew? brew update
to see what's outdated then brew upgrade
Node Version Manager (NVM) is an important too for Node.js development. It allows you to swith between multiple versions of Node.js
- Go here and follow instructions
- Verify installation with command:
nvm --version
- Use NVM to display the available versions to install:
nvm ls-remote --lts
- Use NVM to install based on LTS name:
nvm install --lts=LTS_NAME_HERE
. Installations can also be done to a specific version:nvm install vX.YY.Z
- Use NVM to use a specific version:
nvm use vX.YY.Z
- Ensure you have
.bash_profile
file withvi ~/.bash_profile
- Add this to the file
if [ -r ~/.bashrc ]; then
source ~/.bashrc
fi
- Ensure you have a
.bashrc
file withvi ~/.bashrc
- If you followed this README so far, you will have a
.bashrc
with information for NVM. - Add aliases, functions, and other environment customizations to the
.bashrc
.
- Create GitHub Account
- Follow these instructions
- If you have Multi-Factor Authencation (MFA), then HTTPS authentication will not work. Instead create SSH keys or personal access token.
- Install Ruby Version Manager (RVM)
- Install:
\curl -sSL https://get.rvm.io | bash
- Post-install:
source /Users/kompseye/.rvm/scripts/rvm
- Install a version:
rvm install 2.7.0
- Use a version:
rvm use 2.7.0
- Add docs:
Ruby was built without documentation, to build it run: rvm docs generate-ri
- Install:
- Use Interactive Ruby Shell (irb)
rvm ls
puts "hello world"
exit
Nowadays there is the Oracle Java Development Kit (JDK) and Open JDK. Read more here.
- Install Java Version Manager (jenv):
brew install jenv
- Follow instructions to update your shell configuration file
- Install Maven:
brew install maven
- Install Java:
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk13
- Verify Maven:
mvn --version
- Verify Java:
java --version
- Verify Java Compiler:
javac --version
Brew installation problem?
cd /usr/local/Homebrew
git fetch --tags
git checkout 2.6.2
Go back a version, see notes here
- Go here: https://golang.org/
- Follow the installation instructions
- Verify checksum:
shasum -a 256 installation-file.pkg
- Install
- Verify install:
go version
- Suggestion: add the following function to
.bashrc
file, then runsetgo
in the command-line to update the PATH with the location for the Go distribution.
# you may need to update the go version
function setgo {
export PATH=/usr/local/Cellar/go/1.19/bin/:$PATH
}
Using Homebrew? brew install go
Updating? brew update
then brew upgrade go
- Go here: https://github.com/pyenv/pyenv
- Follow the installation instructions
brew update brew install pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile echo 'eval "$(pyenv init --path)"' >> ~/.profile
- After the installation
pyenv --version
will confirm the installation - See also the
~/.profile
which should resemble:# pyenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)"
- Find available versions to install:
# https://www.python.org/downloads/ pyenv install -l pyenv install 3.9.5
- Add virtualenv
- Follow the [installation](pyenv install 3.9.5) instructions
brew install pyenv-virtualenv pyenv virtualenv 3.9.5 sandbox-3.9.5 /bin/bash --login pyenv activate sandbox-3.9.5