Score:0

Julia not found in Ubuntu 20.04

cn flag

I installed Julia using the recommended procedure

tar -xvzf julia-1.7.2-linux-x86_64.tar.gz
sudo mv julia-1.7.2/ /opt/
sudo ln -s /opt/julia-1.7.2/bin/julia /usr/local/bin/julia

after downloading the latest version from the official website but when I try to run

julia

the following message appears

Command 'julia' not found, but can be installed with:

sudo snap install julia  # version 1.0.4, or
sudo apt  install julia  # version 1.4.1+dfsg-1

See 'snap info julia' for additional versions.

I saw something similar being discussed here; however, adding export PATH=$PATH:/opt/julia-1.7.2bin to .bashrc did not work for me.

Could someone please help me identify the problem so I can get Julia up and running?


Realized my mistake, I had a missing /: export PATH=$PATH:/opt/julia-1.7.2bin instead of export PATH=$PATH:/opt/julia-1.7.2/bin. Thank you @user535733 for noticing another mistake in this example (export PATH=$PATH:/opt/julia-1.3.1/bin) that which ultimately made me realize my mistake.

N0rbert avatar
zw flag
What do you have for `ls -al /opt/julia-1.7.2/bin/julia /usr/local/bin/julia` ? Why you do not use julia from deb-package?
user535733 avatar
cn flag
Did you really write `/yourpath/` instead of the actual path?
naughty_waves avatar
cn flag
I followed the instructions, @N0rbert. I am positive that you are much more advanced in this than me, so your question is without doubt legitimate, but I cannot give you an answer.
hr flag
If you've created a symlink `/usr/local/bin/julia` then it *shouldn't* be necessary to add anything further to your `PATH` (since `/usr/local/bin` is included via the default /etc/environment file)
naughty_waves avatar
cn flag
Thank you, @user535733. I did not use '/yourpath/' in the terminal. I wrote this in a hurry. I did however notice that I had a missing '/' thanks to you.
user535733 avatar
cn flag
Glad you figured it out.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.