Install Julia on Debian-based Linux Distribution

Go to a folder where you would like to save the Julia source. For example, I will create a folder in my home directory (“home/saisuman/“).

mkdir julia_lang

Move into the directory you just created.

cd julia_lang

Download one of the Linux variants of Julia from here: Download Julia (julialang.org)

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

Untar the Julia source

tar -xvzf julia-1.9.0-rc1-linux-x86_64.tar.gz

You will have a folder “julia-1.9.0-rc1/” that is created from the untarring command. Lets move into it.

cd julia-1.9.0-rc1/

Next is an important step: we need to add the path to Julia binary executable to the system path.

Open the “.bashrc” file:

sudo nano ~/.bashrc

Add the following line at the end of “.bashrc” to let the system know where it can find the “julia” executable.

export PATH=”$PATH:/home/saisuman/julia/julia-1.9.0-rc1/bin”

Save the file

Now implement the changes to the “.bashrc”.

sudo source ~/.bashrc

You may want to use some IDE for development. I prefer IDEs that are lightweight considering that I run Julia pn WSL2. IJulia is a great IDE for lightweight coding.

Previous
Previous

Chromium in WSL2

Next
Next

Where is science heading in 2023?