Currently, the Julia Programming Language has pre-built installation packages for many OS/Hardware combinations. While similar support for Arm-based Macs (Apple Silicon) is underway, the only method for installing Julia on an M1 Mac today is building from source.
You could simply do a git clone https://github.com/JuliaLang/julia
, and then cd julia; make; sudo make install
to install Julia. You could also download the correct binary from the downloads page on Julia's official website. If you prefer installing all your packages with HomeBrew, this repository is for you!
Note that this installation method is simply a HomeBrew Formula
that downloads a ZIP of the latest master
branch of JuliaLang/julia, and then runs make
and make install
. When a new commit is made to the master
branch, this formula will download the new version and build Julia from scratch again. A better system would be for HomeBrew to do a git clone
of the repo, and then do a git pull origin master
whenever there's an update; that way, you wouldn't be running make
on a fresh repository every time. I don't think HomeBrew supports this though, so this is what I came up with in the meantime. If anyone has a better method, pull requests / issues / emails are welcome!
- Install HomeBrew on MacOs (M1 Macs or Intel Macs)
- Fork this repository to your GitHub profile (I would never hack you, but you don't know that!)
- In your terminal, enter
brew tap <your_profile/julia-arm64>
. Note thatjulia-arm64
doesn't contain thehomebrew-
part of the repo name. This is on purpose! - In your terminal, enter
brew install --verbose julia-arm64
and watch HomeBrew install Julia. - Profit?