Skip to content

Commit e7ea3c9

Browse files
committed
Add Julia installation instructions
1 parent 1679628 commit e7ea3c9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

_episodes/02-installation.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,44 @@ After installing the WSL, installation can be done using the Linux installation
6969

7070
## Install Julia
7171

72+
Complete instructions for installing Julia can be found on the
73+
[Julia installation page](https://julialang.org/downloads/platform/#linux_and_freebsd).
74+
In this tutorial, we will use the following steps.
75+
First, open a bash terminal and create a directory to install Julia in
76+
```bash
77+
mkdir ~/julia
78+
```
79+
Next, download the file
80+
[`julia-1.0.5-linux-x86_64.tar.gz`](https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.5-linux-x86_64.tar.gz)
81+
by clicking the link or going to the [Julia downloads page](https://julialang.org/downloads/).
82+
To extract the file, you can use the following command:
83+
```bash
84+
tar -xvzf ~/Downloads/julia-1.0.5-linux-x86\_64.tar.gz -C ~/julia
85+
```
86+
This will extract the files to a folder named `~/julia/julia-1.0.5`.
87+
To run Julia, you need to add the full path of Julia's `bin` folder to PATH environment variable.
88+
To do this, you can edit the `~/.bashrc` (or `~/.bash_profile`) file.
89+
Open the file in your favorite editor and add a new line as follows at the bottom of the file:
90+
```bash
91+
export PATH="$PATH:$HOME/julia/julia-1.0.5/bin"
92+
```
93+
Finally, for the settings to take effect, either reload your bash profile
94+
```bash
95+
source ~/.bashrc
96+
```
97+
(or `source ~/.bash_profile`), or close the bash terminal window and open a new one.
98+
99+
To check that the Julia executable can be found, run
100+
```bash
101+
which julia
102+
```
103+
to display the path to the Julia executable, it should be `~/julia/julia-1.0.5/bin/julia`.
104+
To test that Julia is installed correctly, run
105+
```bash
106+
julia
107+
```
108+
to start the interactive Julia interpreter. Press `Ctrl+D` to exit.
109+
72110
## Install ESMValTool
73111

74112
## Test that the installation was successful

0 commit comments

Comments
 (0)