Downloading & Installing Julia


How can I get Julia on my machine?

First Posted: July 30, 2022

Last Updated: August 27, 2022

Vanilla installation for beginners

Instructions after JuliaCon 2022

At the annual Julia Convention (JuliaCon) this year, it was announced that Julia is getting a much better installation system, called Juliaup.

I'm personally very excited about Juliaup because it will make managing and updating Julia releases much simpler (especially for Windows users). This will be great for package developers, or for people like me who want to eke out every last bit performance out of Julia as I can (for science, of course 😉). I'll update this section when I have time to play around with it more. In the meantime, you can watch David Anthoff's JuliaCon talk here:

Instructions before JuliaCon 2022

You can download and install Julia from this official website .

There are a few different types of downloads that you can try out, and a brief description for them are listed below. For absolute beginners, I would recommend downloading the current stable release, or if you're really nervous about the longevity of your core code, then get the LTS. The main difference between the two is that the stable release is probably faster and has more features, but the LTS version probably has fewer strange and well-hidden bugs.

For those of us who like Linux terminals

The supported Linux and FreeBSD platforms can be found here .

It is possible to both build Julia from source or to obtain the generic binaries from the Julia downloads page above. The Julia team recommends using the latter steps unless you really know what you're doing.

As documented here, to obtain the generic binaries, one just needs to type the following into the terminal:

wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.0-linux-x86_64.tar.gz
tar zxvf julia-1.8.0-linux-x86_64.tar.gz

The first command pulls the julia-1.8.0-linux-x86_64.tar.gz tarball from the julialang servers into whichever directory you're currently in and the second unzips it and creates a new julia-1.8.0 folder. At this point it is safe to remove the tarball with

rm julia-1.8.0-linux-x86_64.tar.gz

Finally, since this is not a true install with sudo, one must tell your environment where to find the julia binary. The recommended location from the Julia team is in one's .bashrc file, located at ~/.bashrc. All one must do then is append the following line:

export PATH="$PATH:<path-to-julia>/julia-1.8.0/bin"

For example, on my machine, julia is located at /home/joe/julia-1.8.0 and so the <path-to-julia> == /home/joe. Then, save and exit the .bashrc file and type

. ~/.bashrc

to load the new enviroment as one must do after editing the .bashrc file. (Upon opening the terminal, the command above is called, so you won't need to worry about doing this every time afterwards.)

After that, all you need to do is type julia into the terminal and you'll see the REPL!

Note for the future

via GIPHY

I will be learning soon how to install Julia to a cluster for my research, and I will be sure to include what I learn here as well!

CC BY-SA 4.0 W. Joe Meese. Last modified: August 27, 2022. Website built with Franklin.jl and the Julia programming language.