Skip to content

MacBook Pro Apple M1 Pro macOS Monterey (12.1) Setup

Greg Kostin edited this page Jan 11, 2022 · 6 revisions

These are the steps I took to setup a heliotrope development environment on a MacBook Pro (14-inch, 2021), Apple M1 Pro, macOS Monterey (Version 12.1) in January of 2022.

This guide assumes you have Admin privileges on your MacBook Pro and no development tools installed.

Disclaimer: There are more ways than one to skin a cat, so are there more ways than one to setup your development environment? I have no interest in promoting one tool over another these are simply the tools I chose and the steps I took. Feel free to substitute equivalent tools of your choice as you deem necessary.


Zsh - The default shell.
I have been using Bash but decided to go with the flow and use the default zsh. I'm not a power user by any means so I probably won't notice the difference other then the configuration files are all prefixed with z instead of bash.

The ultimate Mac M1 Terminal (iTerm2 + Oh My Zsh + zsh-syntax-highlighting)

  1. You will be prompted to install developer tools when launched for the first time (if you haven’t already installed the developer tools), answer yes and install the developer tools.
  2. You can install zsh-syntax-highlighting with homebrew or directly, which I did because I didn't read ahead to see the brew install option, sigh.
  3. Ignore the Homebrew install instructions because they are out-of-date.

Homebrew - The Missing Package Manager for macOS (or Linux).

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

I use Homebrew as my package manager. If you don't you may find the rest of this guide useless but at least you'll know what tools I installed using brew.


gh - Take GitHub to the command line.

brew install gh


rbenv - Seamlessly manage your app's Ruby environment with rbenv.

brew install rbenv

rbenv global latest

Bundler

gem install bundler


jenv - jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable.

brew install jenv

jenv global latest


nodenv - Groom your app's Node environment with nodenv.

brew install nodenv

nodenv global latest


Sourcetree - Visual Repository Tool

Toolbox App - Manage your JetBrains tools easily

Rubymine - Ruby and Rails IDE


Heliotrope

  1. Clone
mkdir ~/github
mkdir ~/github/mlibrary
cd ~/github/mlibrary
git clone https://github.com/mlibrary/heliotrope.git
cd heliotrope
  1. *env local ...
cat .java-version 
=> 1.8
java --version
jenv local ?.?.?

cat .node-version 
=> 14.18.2
node --version
nodenv local ?.?.?

cat .ruby-version 
=> 2.7.4
ruby --version
rbenv local ?.?.?
  1. Bundler

gem install bundler

  1. Prerequisites

MySQL

brew install mysql

brew services start mysql

Redis

brew install redis

brew services start redis

ImageMagick

brew install imagemagick

pdftk-java

brew install pdftk-java

qpdf

brew install qpdf

  1. Heliotrope Initial Setup