Where should I save Julia in the Linux Tree?

Thanks so, is this what I do if I want to try 1.6 ?

wget https://julialang-s3.julialang.org/bin/linux/x64/1.6.0/julia-1.6.0-beta1-linux-x86_64.tar.gz
tar zxvf julia-1.6.0-beta1-linux-x86_64.tar.gz
1 Like

Cannot recommend just using jill.py enough!

https://github.com/johnnychen94/jill.py

2 Likes

I just wanted the name of a folder, that I can extract the tar.gz into

/opt/julia

Then in your `~/.bash_profile:

export PATH="$PATH:/opt/julia/bin"

That’s what the instructions tell you. If you are in your home folder, then running

wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz
tar zxvf julia-1.5.3-linux-x86_64.tar.gz

will download and extract julia to a folder called julia-1.5.3. The particular binary will live in ~/julia-1.5.3/bin. Now you have a couple of options to launch julia, and this is all described in the link above.

  • Invoke the julia executable by using its full path: <Julia directory>/bin/julia
    • so for example, if your extracted julia to your home directory, cd ~/julia-1.5.3/bin and then typing in ./julia which launches the julia binary.
  • Create a symbolic link to julia inside a folder which is on your system PATH
    • Google ln -s and use that to create a symlink in /usr/local/bin which is a folder that lives in the linux $PATH variable.
  • Add Julia’s bin folder (with full path) to your system PATH environment variable
    • This requires you to modify the $PATH variable to include your julia binary directory. This can be done by the export command (infact the link above gives you this command).

The most canonical way would be the second point. However, often many people just modify their PATH to include the Julia folder. You can see the jill.py script to automate some of this process.

Is this clear?

If you are the single user of this computer and also install other software in a similar way (from binaries or source), just make up a location in your home directory (~), eg ~/opt and put it there. In addition, you can make a ~/bin directory, put it in your $PATH and symlink relevant binaries there.

1 Like

Thanks!