Can't install GLVisualize

I am trying to install GLVisualize ( https://github.com/JuliaGL/GLVisualize.jl ) in Julia. When I run:

Pkg.test("GLVisualize")

I get:

Pkg.test("GLVisualize")
INFO: Computing test dependencies for GLVisualize...
INFO: Installing Contour v0.3.0
INFO: Installing DocStringExtensions v0.3.3
INFO: Installing Highlights v0.2.1
INFO: Installing ImageMagick v0.2.4
INFO: Building ImageMagick
INFO: Testing GLVisualize
ERROR: LoadError: could not open file /home/matthias/.julia/v0.5/GLFW/src/../deps/deps.jl
 in include_from_node1(::String) at ./loading.jl:488 (repeats 2 times)
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:242
 in _start() at ./client.jl:321
while loading /home/matthias/.julia/v0.5/GLFW/src/GLFW.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile GLFW to /home/matthias/.julia/lib/v0.5/GLFW.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:393
 in include_from_node1(::String) at ./loading.jl:488
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:242
 in _start() at ./client.jl:321
while loading /home/matthias/.julia/v0.5/GLVisualize/src/GLVisualize.jl, in expression starting on line 4
ERROR: LoadError: Failed to precompile GLVisualize to /home/matthias/.julia/lib/v0.5/GLVisualize.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:422
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:265
 in _start() at ./client.jl:321
while loading /home/matthias/.julia/v0.5/GLVisualize/test/runtests.jl, in expression starting on line 1
========================================[ ERROR: GLVisualize ]=========================================

failed process: Process(`/home/matthias/bin/julia/bin/julia -Cx86-64 -J/home/matthias/bin/julia/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/matthias/.julia/v0.5/GLVisualize/test/runtests.jl`, ProcessExited(1)) [1]

=======================================================================================================
INFO: Removing Contour v0.3.0
INFO: Removing DocStringExtensions v0.3.3
INFO: Removing Highlights v0.2.1
INFO: Removing ImageMagick v0.2.4
ERROR: GLVisualize had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258

How can I fix this?

This means that the tests don’t run, but not that you can’t install the package. Do you get issues with Pkg.add("GLVisualize") or using GLVisualize?
BTW, it is probably better to open this as a github issue on the GLVisualize.jl repo, and much more likely to catch @sdanisch (the main developer of GLVisualize) there.

I believe I got an error when I first ran Pkg.add(), but now I only get this:

julia> Pkg.add("GLVisualize")
INFO: Nothing to be done
INFO: METADATA is out-of-date — you may not have the latest version of GLVisualize
INFO: Use `Pkg.update()` to get the latest versions of your packages

julia> using GLVisualize
INFO: Precompiling module GLVisualize.
ERROR: LoadError: could not open file /home/matthias/.julia/v0.5/GLFW/src/../deps/deps.jl
 in include_from_node1(::String) at ./loading.jl:488 (repeats 2 times)
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:242
 in _start() at ./client.jl:321
while loading /home/matthias/.julia/v0.5/GLFW/src/GLFW.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile GLFW to /home/matthias/.julia/lib/v0.5/GLFW.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:393
 in include_from_node1(::String) at ./loading.jl:488
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:242
 in _start() at ./client.jl:321
while loading /home/matthias/.julia/v0.5/GLVisualize/src/GLVisualize.jl, in expression starting on line 4
ERROR: Failed to precompile GLVisualize to /home/matthias/.julia/lib/v0.5/GLVisualize.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:422

Try Pkg.add("GLFW")? An issue can be opened here: https://github.com/JuliaGL/GLVisualize.jl/issues/new

I found the solution is an old Issue:

GLFW needs the package xorg-dev. After installing this it worked.

Thanks

1 Like