Peter B
Peter B

Reputation: 493

How to upgrade to Julia 0.7 in Mac OS X

Amazingly, I can't find a straight answer to this. This page How to upgrade Julia to a new release? answered the question of upgrading Julia back in 2015, and linked to this page https://github.com/staticfloat/homebrew-julia#upgrading-julia for Mac OS, but (a) the latter page starts with a big "This tap is not actively maintained" warning, and (b) the upgrade instructions only say how to get "the latest development version", which is not what I want (I want Julia 0.7, not 1.0).

So, how do I upgrade Julia from 0.6 to 0.7 on Mac OS X? I installed Julia 0.6 using the command "brew cask install julia".

Upvotes: 3

Views: 808

Answers (1)

Steven Siew
Steven Siew

Reputation: 873

Since nobody answered your question, I shall do it even thought I am not a good writer.

First uninstall julia from home-brew using "brew uninstall julia"

Next go to the julia website and grab the julia dmg for Mac

https://julialang.org/downloads/

Because you can install multiple version of julia at the same time, I suggest you install the following versions

  1. julia 1.0
  2. julia 0.7
  3. julia 0.6

My suggestion is that you install julia 0.6 first by downloading the dmg file. Then double click on it (the dmg file) on the "/user/yourname/Download" directory. Drag the julia to the Application folder (just like how you would install any mac application). Don't forget to eject the dmg image after you have done with it.

Do the same for julia 0.7

Do the same for julia 1.0

Next you need to open the Terminal and create 4 symbolic links. See the commands below and do not type in the "$" character, it is just the command prompt.

$ cd /usr/local/bin
$ ln -s /Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia julia
$ ln -s /Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia julia06
$ ln -s /Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia julia07
$ ln -s /Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia julia10

Now you have 4 different commands you can use

julia
julia06
julia07
julia10

Now you can close the terminal. All done.

Upvotes: 6

Related Questions