How to install Julia on Ubuntu without root privileges?

I’m new to Julia and Linux and I need to install Julia on an Ubuntu server that I access with ssh.
How can I do that without asking for administrative privileges?

Download it and run it. Julia doesn’t need to be installed. If you want, you can add it to your path.

Download the tarball from julialang.org, then unpack it with tar into a directory of your choice. Then you can call the executable directly by path, or add the path to your PATH environment variable. For example,

gibson@sophist$ pwd
/home/gibson/tmp

gibson@sophist$ wget https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.0-linux-x86_64.tar.gz
--2021-12-09 16:49:37--  https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.0-linux-x86_64.tar.gz
Resolving julialang-s3.julialang.org (julialang-s3.julialang.org)... 151.101.130.49, 151.101.194.49, 151.101.2.49, ...
Connecting to julialang-s3.julialang.org (julialang-s3.julialang.org)|151.101.130.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123309942 (118M) [application/x-tar]
Saving to: ‘julia-1.7.0-linux-x86_64.tar.gz’

julia-1.7.0-linux-x86_64.tar.gz       100%[======================================================================>] 117.60M  8.57MB/s    in 12s     

2021-12-09 16:49:49 (10.1 MB/s) - ‘julia-1.7.0-linux-x86_64.tar.gz’ saved [123309942/123309942]

gibson@sophist$ tar xfpz julia-1.7.0-linux-x86_64.tar.gz 

gibson@sophist$ ./julia-1.7.0/bin/julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.0 (2021-11-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> 2+3
5

2 Likes

Or use the following one-liner:

bash -ci "$(curl -fsSL https://raw.githubusercontent.com/abelsiqueira/jill/master/jill.sh)"

So much easier than on Windows… :slight_smile:

click url, click ok, click “extract all”, click “browse”, click ok, click “Next”, double click “Julia 1.7.0”, double click “bin”, double click “julia.exe”, be at julia>

absolutely no flags to remember

I’ve been using Linux / BSD since the 90s and that one-liner shows the world exactly why Rob Pike said “Not only is UNIX dead, it’s starting to smell really bad.” in 1991 !

And while I’m on it …

Here we are on Julia and our Distributed Architecture is based on ssh

“when ssh is the foundation of your security architecture, you know things aren’t working as they should”

Rob Pike - 2004 Rob Pike Responds - Slashdot

1 Like

Well, if I have to explain other people how to do something, providing a command line or even a couple of them is so much easier than providing screenshots as you have to do it if you have to document a process for Windows…

2 Likes

for a small subset of possible tasks