Installing julia without sudo

451 views
Skip to first unread message

Zack Maril

unread,
Dec 17, 2013, 3:53:16 PM12/17/13
to julia...@googlegroups.com
I'm used to installing julia with root privileges. I'm now working in an environment where I cannot escalate my privileges. How should I install julia now?
-Zack

Stefan Karpinski

unread,
Dec 17, 2013, 3:59:08 PM12/17/13
to Julia Users
I just clone and make. No sudo required.

Elliot Saba

unread,
Dec 17, 2013, 4:25:36 PM12/17/13
to julia...@googlegroups.com
If you just `make`, you will have a "usr" directory inside your julia source directory.  Inside that usr directory is a directory structure very similar to what would be found in /usr/local, which is where Julia gets installed when you `sudo make install`.

To run julia from within this other directory, you just need to do one of the following:

* Run julia directly via `cd <julia_dir>/usr/bin`, and then `./julia`

* Add that bin directory to your path: `export PATH=$PATH:<julia_dir>/usr/bin`

Where <julia_dir> is the directory that the source code of julia is located at.  Note that if you put that PATH line in your .bashrc it will get run automatically when you open a new terminal.
-E

Zack Maril

unread,
Dec 17, 2013, 4:58:56 PM12/17/13
to julia...@googlegroups.com
I tried it again and it Just Worked the second time. The first it was complaining about being unable to find System.jl.
Thanks!
-Zack
Reply all
Reply to author
Forward
0 new messages