I'm just beginning to learn Julia.  I'm running Ubuntu 12.04, and using the 
Ubuntu Software Center I installed Juia 0.2.1-precise7.  Using the REPL has 
been working fine.

However, one reason I'm interested in Julia is the Graphs package, and I'm 
having trouble with it.  I downloaded Graphs.jl-master.zip and unzipped it 
to 
get this subdirectory structure:

    .
    └── Graphs.jl-master
        ├── doc
        │   └── source
        ├── src
        └── test
            └── data

Seeing runtests.jl, I tried the following

    cd Graphs.jl-master
    julia runtests.jl

resulting in this:

    running test/edgelist.jl ...
    ERROR: Graphs not found
     in require at loading.jl:39
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in anonymous at no file:23
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in process_options at client.jl:303
     in _start at client.jl:389
    at 
/home/roger/open-source/julialang/graphs/Graphs.jl-master/test/edgelist.jl:3
    at 
/home/roger/open-source/julialang/graphs/Graphs.jl-master/runtests.jl:24

Since Graphs.jl is in the src directory, I tried creating this 
~/.juliarc.jl file:

    push!(LOAD_PATH, 
"/home/roger/open-source/julialang/graphs/Graphs.jl-master/src/")

No help.  So I added this to my ~/.bashrc file:

    export 
JULIA_LOAD_PATH=/home/roger/open-source/julialang/graphs/Graphs.jl-master/src:$JULIA_LOAD_PATH

Also no help.

Finally, I uninstalled Julia and attempted to install the 0.3 version.  
There 
were complaints of broken packages, etc., so I've gone back to 0.2.1.  At 
this 
point I'm contemplating downloading the source and building from scratch, 
but 
if there is an easier way to solve this problem I would be happy to know it.

Roger House
Software Developer

Reply via email to