Friday, June 23, 2017

Julia - Language - Installation in Ubuntu

Visit JuliaLang website and download the current stable release: https://julialang.org/downloads/


Step 1: Open Terminal and download Julia:

$ wget https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.0-linux-x86_64.tar.gz

Step 2: Uncompress the Archive:

$ tar -zxvf julia-0.6.0-linux-x86_64.tar.gz

Step 3: After uncompressing the archive - the following folder was created:

$ ls -l
total 1686492
-rw-rw-r-- 1 ubuntu ubuntu   66543012 Jun 20 00:25 julia-0.6.0-linux-x86_64.tar.gz
drwxr-xr-x 7 ubuntu ubuntu       4096 Jun 19 19:28 julia-903644385b
$

Step 4: Move this folder to a convinient location:

$ cd /opt
/opt$

/opt$ mv /home/mhc/Downloads/julia-903644385b .
/opt$

Step 5: Create a softlink for Julia in /usr/bin - this is so that we can run it from any location:

$ cd /usr/bin
/usr/bin$ sudo ln -s /opt/julia-903644385b/bin/julia julia
/usr/bin$

Step 6: Run julia:

$ cd ~
~$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> 


No comments:

Post a Comment