How to install Julia on Ubuntu 20.04?

Overview

The computer language Julia was created to be extremely fast in analysis and computation. It is well-liked for constructing more general-purpose applications as well as for scientific research, data science visualization, deep learning, and machine learning. The Julia language is available as a live demo on the official website, but you must install it on your PC in order to use it in practice and for future development.

The following tutorial will walk you through downloading and setting up Julia on your computer.

Prerequisites

There are certain prerequisites that need to be met before you begin.

  • Ubuntu equipped system

  • A regular root user

  • Internet connection

  • Knowledge of Command Line Interface (CLI)

Get Started

Step 1: Downloading Julia

The recommended way to install Julia is through pre-compiled binaries; however, if your needs call for it, you can also compile Julia from the source. You will get the original pre-compiled binaries for this tutorial from Julia's official download page. Before beginning the download, ensure that you are in your home directory.

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

Extraction of the downloaded archive is required to finish the installation.

tar zxvf julia-1.8.1-linux-x86_64.tar.gz

Step 2: Installing Julia

Run the following command to install Julia on your system.

apt install julia

When prompted to continue, press 'y'.

The installation of Julia is now finished.

Step 3: Running Julia

Start your session with the following command to verify Julia is installed properly and to begin experimenting with the language:

julia

You might begin by using Julia to perform simple math as an illustration and to ensure that it functions.

Conclusion

You have successfully installed Julia on your system if you are able to run the test command using the instructions in this tutorial and see the expected output. Now you may begin using Julia for exploration.

Last updated