Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Last active May 23, 2022 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Justintime50/ca7d351422842e648949a9ce383a9a23 to your computer and use it in GitHub Desktop.
Save Justintime50/ca7d351422842e648949a9ce383a9a23 to your computer and use it in GitHub Desktop.
This guide will help you setup various programming languages on macOS.

Setting Up Programming Languages

Setting up programming languages can take some time and differs per language. Here are some guides on each one to get you up and running in no time. NOTE: This guide is intended for macOS development.

M1 Macs & Homebrew: You will need to add the following to your path: /opt/homebrew/bin and /opt/homebrew/sbin

CSharp

Run brew install --cask dotnet-sdk to get started. This will install the SDK along with Mono. See the C# page for more information: https://formulae.brew.sh/cask/dotnet-sdk

If you need older versions of C#, you can use this tap: https://github.com/isen-ng/homebrew-dotnet-sdk-versions

Java

Run brew install openjdk and brew install maven to get started. See the Java page for more information: https://formulae.brew.sh/formula/openjdk

Python

Run brew install python to get started. See the Python page for more information: https://formulae.brew.sh/formula/python@3.9

You'll then need to call Python with python3 on macOS to use the Homebrew version and not the macOS Python v2.

Ruby

Run brew install ruby to get started. See the ruby page for more information: https://formulae.brew.sh/formula/ruby

You will then need to add Ruby to your path so you use the Homebrew version over the builtin macOS Ruby:

    /usr/local/opt/ruby/bin
    /usr/local/lib/ruby/gems/3.0.0/bin

PHP

Run brew install php to get started. See the PHP page for more information: https://formulae.brew.sh/formula/php

Node

Run brew install node to get started. See the Node page for more information: https://formulae.brew.sh/formula/node

Go

Run brew install go to get started. See the Go page for more information: https://formulae.brew.sh/formula/go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment