Yes, it seems to work. Apparently my Julia directory is
 "/usr/bin/../share/julia/base/", so that's one problem solved.  Thanks!

Cheers,
Daniel.

On 24 October 2014 14:53, Till Ehrengruber <[email protected]> wrote:

> You cuold look where your julia base library is located for example by
>
> functionloc(push!)
> ("/usr/local/Cellar/julia/0.3.1/bin/../share/julia/base/array.jl",464)
>
>
> I'm on OS X but it should work on Ubuntu as well
>
> Am Freitag, 24. Oktober 2014 14:31:32 UTC+2 schrieb Daniel Carrera:
>>
>> 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.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>


-- 
When an engineer says that something can't be done, it's a code phrase that
means it's not fun to do.

Reply via email to