I don't like brew. Personal notes to get a development environment setup and configured on macOS 10.15.3.
Note: configuring
.bash_profileis required for macOS-specific directory paths.
Note: configuring
.bashrcis required for many Bash-specific paths.
Note: configuring
.zshrcis 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 -versionCocoaPods:
$ 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 --versionPIP installation:
$ sudo easy_install pip$ pip --versionDjango installation:
$ sudo pip install Django==3.0.3$ sudo pip install -r requirements.txtFor Python 3.x.
Python 3.x installation:
$ python3 --versionPIP:
$ 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/activateFor Ruby on Rails apps.
Ruby installation:
$ ruby --version$ gem -vRails installation:
$ gem install rails$ gcc --versionCMake:
$ 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 --versionFor Java Spring, Gradle, Maven, and Tomcat stacks.
Java installation:
$ javac -versionApache 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:8080See the very helpful: 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 --versionFor 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.0Typescript installation:
npm install -g typescript$ go versionFor Rust apps.
Rust installation:
$ sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh$ rustc --versionRust uninstallation:
$ rustup self uninstallRead the Rust documentation.