Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Latest commit

 

History

History
73 lines (48 loc) · 1.36 KB

install_mac.md

File metadata and controls

73 lines (48 loc) · 1.36 KB

Dependency Installation for Mac

Installing Homebrew

This documentation assumes use of Homebrew: https://brew.sh/.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

The default installation options are appropriate.

Installing Python

brew install python3

Installing python3 via Homebrew should automatically install pip3. Use that to install virtualenv.

pip3 install virtualenv

Creating a Virtual Environment and Installing Dependencies

Create the virtual environment. From the working directory of our project (e.g., ~/Desktop/web-cse440-au18):

virtualenv -p python3 env36

This will create a directory for the virtual environment (e.g., ~/Desktop/web-cse440-au18/env36/).

Next activate that virtual environment and install our Python dependencies:

source env36/bin/activate
pip3 install -r requirements3.txt

Installing Node

brew install node

Installing Ruby

brew install rbenv

Configure the terminal to include rbenv:

echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile`
source ~/.bash_profile`

Install the correct version of Ruby:

rbenv install 2.5.1
rbenv global 2.5.1

Alternatively, you can specify a Ruby version for the directory:

rbenv local 2.5.1