I don't like brew. Personal notes to get a development environment setup and configured on macOS 10.15.3.
Note: configuring
.bash_profile
is required for macOS-specific directory paths.
Note: configuring
.bashrc
is required for many Bash-specific paths.
Note: configuring
.zshrc
is required for many Zsh-specific paths (macOS Catalina+).
The notes below are written for Bash. In most cases, the same commands and export statements can be used interchangeably between Bash and Zsh (provided you use the correct configuration file).
For developing Apple mobile, desktop, tablet, and watch, applications.
Swift installation:
$ swift --version
$ xcodebuild -version
CocoaPods:
$ sudo gem install cocoapods
$ pod install
to download the dependencies into your project<PROJECT_NAME>.xcworkspace
file rather than the <PROJECT_NAME>.xcodeproj
file to build and compile your project (with Pods) correctlyFor Python, PIP, and Django apps.
Python 2.7 installation:
$ python --version
PIP installation:
$ sudo easy_install pip
$ pip --version
Django installation:
$ sudo pip install Django==3.0.3
$ sudo pip install -r requirements.txt
For Python 3.x.
Python 3.x installation:
$ python3 --version
PIP:
$ python3 -m pip install --upgrade pip
$ python3 -m pip install -r requirements.txt
$ pip freeze
$ pip uninstall -y -r <(pip freeze)
Venv:
$ python3 -m venv VENV_ENV
$ source VENV_ENV/Scripts/activate
For Ruby on Rails apps.
Ruby installation:
$ ruby --version
$ gem -v
Rails installation:
$ gem install rails
$ gcc --version
CMake:
$ bash bootstrap
within the root directory$ cd Bootstrap.cmk
and $ bash make
.bash_profile
using $ sudo nano ~/.bash_profile
(and modify as needed):export PATH=$PATH:/Users/USER_NAME/Desktop/cmake-3.16.6/bin
$ cmake --version
For Java Spring, Gradle, Maven, and Tomcat stacks.
Java installation:
$ javac -version
Apache Tomcat 8.5.x installation:
.zip
from http://tomcat.apache.orgROOT/bin
directory and execute the following Bash command sudo chmod +x *.sh
$ sudo bash startup.sh
to launch Tomcat on the default port localhost:8080
See the very helpful: https://wolfpaulus.com/tomcat/ for more comprehensive configurations.
Gradle installation:
.bash_profile
using $ sudo nano ~/.bash_profile
(and modify as needed):export PATH=$PATH:/Users/USER_NAME/Desktop/gradle-6.2/bin/
$ gradle --version
For NodeJS server and client apps.
NVM installation:
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
$ sudo touch ~/.bash_profile
$ sudo touch ~/.bashrc
$ sudo nano ~/.bash_profile
- copy the contents below into this file$ sudo nano ~/.bashrc
- copy the contents below into this fileexport NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
(Copy the above into configuration files.)
$ nvm ls
$ nvm install 10.0.0 && nvm use 10.0.0
Typescript installation:
npm install -g typescript
$ go version
For Rust apps.
Rust installation:
$ sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ rustc --version
Rust uninstallation:
$ rustup self uninstall
Read the Rust documentation.