Hello,

I am running Ubuntu with Julia 0.3.1 installed from PPA. I want to figure 
out where my Julia base directory is so I can create a userimg.jl file so I 
can pre-compile some modules that I use often. I got the idea from here:

https://github.com/JuliaLang/Gtk.jl/blob/master/doc/precompilation.md

The problem is that I cannot figure out where my jula/base directory is. It 
appears to be nowhere. I have two candidate directories:

/usr/share/julia
/usr/local/julia

My Julia version is 0.3.1. The file /usr/share/julia/VERSION says it 
is 0.3.0-prerelease. On the other hand, /var/lib/dpkg/info/julia.list seems 
to say that /usr/share/julia is the correct directory. So that doesn't make 
sense. The other directory --- /usr/local/julia --- does not have any 
VERSION file or anything that I could that would tell me what version of 
Julia it is for. I tried adding the "userimg.jl" file to both directories, 
but that didn't do anything. Even more strangely, neither directory one 
seems to be required for Julia to run. Look:


$ sudo mv /usr/share/julia $HOME/usr-share-julia
$ sudo mv /usr/local/julia $HOME/usr-local-julia
$ 
$ julia --version
julia version 0.3.1
$ 
$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.1 (2014-09-21 21:30 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org release
|__/                   |  x86_64-linux-gnu

julia>


In other words, neither of those directories seems to be needed to run 
Julia. So, I am completely stuck. I have two "base" directories, neither of 
which seems to do anything.

Can anyone help me out?

Cheers,
Daniel.













Reply via email to