Julia, a high-level, high-performance dynamic language, has gained prominence in the realm of technical computing. With a syntax familiar to users of other technical computing languages, it is extensively used in various domains, including machine learning, data science, and scientific computing. This article presents a step-by-step guide on installing Julia Programming Language on Debian 12 (Bookworm).
Installation Procedure
Step 1: Update System Packages
Before installing any new software, it’s crucial to update your system packages. This ensures you have the latest updates, security patches, and bug fixes, enhancing your system’s performance and security.
sudo apt update sudo apt upgrade
Step 2: Download Julia Binary
The next step involves downloading the Julia binary from the Julia language’s official website. These binaries are precompiled versions of the Julia software, which means you can run them on your system without having to compile the source code yourself.
wget https://github.com/JuliaLang/julia/releases/download/v1.10.0/julia-1.10.0.tar.gz
Step 3: Extract the Downloaded File
Once the download is complete, extract the tar.gz file using the tar command. This command is used to extract files from an archive.
tar -xvzf julia-1.10.0.tar.gz
Step 4: Move the Directory
After extracting the file, you’ll find a directory named ‘julia-1.10.0’. Move this directory to a location where you prefer to keep the Julia installation, such as the ‘/usr/local/’ directory.
sudo mv julia-1.10.0 /usr/local/
Step 5: Create a Symbolic Link
Creating a symbolic link to the Julia executable in the ‘/usr/local/bin/’ directory allows you to run Julia from any location without specifying the full path to the executable.
sudo ln -s /usr/local/julia-1.10.0/bin/julia /usr/local/bin/julia
Step 6: Edit the ‘.bashrc’ File
To add Julia to the system PATH, you need to edit the ‘.bashrc’ file in your home directory. By adding the path to the Julia executable to this file, you ensure that the PATH is set correctly every time you open a terminal.
nano ~/.bashrc
At the end of the file, add the following line:
export PATH=$PATH:/usr/local/julia-1.10.0/bin
Save the file and exit the text editor. To apply the changes, you need to source the ‘.bashrc’ file:
source ~/.bashrc
Step 7: Verify the Installation
Finally, you can verify the installation by checking the version of Julia. If Julia is installed correctly, this command will display the version of Julia installed on your system:
julia --version
Congratulations! You have successfully installed Julia Programming Language on Debian 12 (Bookworm).
If you find the above steps overwhelming or outside your expertise, consider using the VPS management services from Shape.host. Starting from just $4, they offer Linux SSD VPS, which is an excellent choice for hosting your Julia applications. Please feel free to contact Shape.host to get the best deal!