-
First things first, let's install Homebrew, the missing package for macOS! This will make our lives a lot easier when trying to install other things later. Run the below command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you are having issues with Homebrew or something isn't downloading correctly,
brew doctor
is a great command to check and see what is going on. You may also need to dobrew upgrade
if things still aren't working. -
Now install some much needed packages!
brew install git make build-essential rlwrap wget
-
Since git is installed now, clone cmeutils and getting-started from GitHub since they have important settings that we use to run our simulations and code.
This part is more optional than required but our getting_started config_files folder has some defaults already set up for your bash_profile, vmdrc (which you will download in a moment), and vimrc and you can follow the below commands to copy them into your own files.
cd getting-started/config_files/ make
-
Install VMD! (If you're running OSX Catalina, use this VMD.) Then install the gsd-vmd plugin which allows you to visualize the gsd files we make when running simulations:
git clone https://github.com/mphoward/gsd-vmd cd gsd-vmd
Catalina users only change line 18 in the file
CMakeLists.txt
fromset(CMAKE_OSX_ARCHITECTURES "i386;x86_64" CACHE STRING "Build architectures for OSX" FORCE)
toset(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX")
mkdir build && cd build cmake .. make install
-
Download Miniconda! For more extensive instructions, visit the Installing the Frequently-Used Programs for CME-Lab tab in the getting-started wiki.
cd Downloads/ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh bash Miniconda3-latest-MacOSX-x86_64.sh
Now we can install programs with conda!
conda create --name <new environment name>
--> creates a new environment
conda activate <environment name>
--> puts you in your environment
conda deactivate
--> takes you out of your environment
conda env remove -n <environment name>
--> removes an environment
conda create --name <new environment name> --clone <the one you are cloning>
--> copies one environment into another