Easy Tutorial
❮ Julia Tutorial Julia Date Time ❯

Julia Language Environment Installation

Julia language supports the following systems:

The download link for Julia installation packages is: https://julialang.org/downloads/.

Github source code address: https://github.com/JuliaLang/julia.

Domestic mirror address: https://mirrors.tuna.tsinghua.edu.cn/julia-releases/bin/

Package names corresponding to each system:

Operating System Package Name
Windows julia-1.7.2-win64.exe
Linux x86_64.tar.gz
Mac julia-1.7.2-mac64.dmg installer or julia-1.7.2-mac64.tar.gz binary file
FreeBSD julia-1.7.2-freebsd-x86_64.tar.gz

Note: To check if your CPU is X86 or ARM, you can use the uname -m command:

$ uname -m
x86_64

Installation on Windows

Download the Windows Julia installer from https://julialang.org/downloads/.

Note: 32-bit Julia binaries can run on both 32-bit and 64-bit Windows (x86 and x86_64), but 64-bit Julia binaries can only run on 64-bit Windows (x86_64). Most modern computers are 64-bit.

Run the installer and proceed by clicking Next.

Check "Add Julia to PATH" to automatically add Julia to the environment variables.

This allows us to execute the Julia command in the terminal.

The default installation directory should be similar to C:\Users\tutorialpro\AppData\Local\Programs\Julia 1.7.2.


Installation on Linux/FreeBSD

The following describes the installation method using binary packages on Linux/FreeBSD systems. Download the binary package:

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

The above is the download address provided by the official website. If the speed is slow, you can use the domestic mirror address:

wget https://mirrors.tuna.tsinghua.edu.cn/julia-releases/bin/linux/x86/1.7/julia-1.7.2-linux-i686.tar.gz --no-check-certificate

Extract:

tar zxvf julia-1.7.2-linux-i686.tar.gz

After extraction, move the extracted julia directory to /usr/local:

mv julia-1.7.2 /usr/local/

Now we can use the full path to execute the Julia command:

# /usr/local/julia-1.7.2/bin/julia -v   
julia version 1.7.2

The julia -v command is used to check the version number.

To call the executable file using the full path: /usr/local/julia-1.7.2/bin/julia -v

You can also add the julia command to your system PATH environment variable. Edit the ~/.bashrc (or ~/.bash_profile) file and add the following line at the end:

export PATH="$PATH:/usr/local/julia-1.7.2/bin/"

After adding, execute the following command to make the environment variable take effect immediately:

source ~/.bashrc     
or
source ~/.bash_profile
# julia -v
julia version 1.7.2

Installation on macOS

The following describes the installation method using binary packages on macOS systems. Download the binary package:

wget https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.2-mac64.dmg

Mount the downloaded .dmg file and run the installer. Follow the on-screen instructions to complete the installation.

Alternatively, you can download the tar.gz binary and follow similar steps as described for Linux. This is the official download link provided:

wget https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.2-mac64.tar.gz

If the speed is slow, you can use a domestic mirror address for download:

wget https://mirrors.tuna.tsinghua.edu.cn/julia-releases/bin/mac/x64/1.7/julia-1.7.2-mac64.tar.gz

To extract:

tar zxvf julia-1.7.2-mac64.tar.gz

After extraction, you can rename the extracted folder to julia-1.7.2:

mv julia-bf53498635 julia-1.7.2

Then move the julia-1.7.2 directory to the /usr/local directory:

sudo mv julia-1.7.2 /usr/local/

After moving, you can use the full path to execute the julia command:

$ /usr/local/julia-1.7.2/bin/julia -v   
julia version 1.7.2

The julia -v command is used to check the version number.

To call the executable file using the full path: /usr/local/julia-1.7.2/bin/julia -v

Alternatively, you can add the julia command to your system PATH environment variable by editing the ~/.bash_profile file and adding the following line at the end:

export PATH="$PATH:/usr/local/julia-1.7.2/bin/"

After adding, execute the following command to make the environment variable take effect immediately:

source ~/.bash_profile
$ julia -v
julia version 1.7.2
❮ Julia Tutorial Julia Date Time ❯