# Can't install GLVisualize

**URL:** <https://discourse.julialang.org/t/cant-install-glvisualize/3826>\
**Category:** New to Julia\
**Tags:** glvisualize\
**Created:** [May 20, 2017, 7:02pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826 "2017-05-20T19:02:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![steinhagelvoll](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steinhagelvoll](https://discourse.julialang.org/u/steinhagelvoll)\
**Post date:** [May 20, 2017, 7:02pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826/1 "2017-05-20T19:02:09Z")

</div>

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

`Pkg.test("GLVisualize")`

I get:

```julia
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?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [May 20, 2017, 8:01pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826/2 "2017-05-20T20:01:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![steinhagelvoll](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steinhagelvoll](https://discourse.julialang.org/u/steinhagelvoll)\
**Post date:** [May 20, 2017, 8:08pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826/3 "2017-05-20T20:08:53Z")

</div>

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

```julia
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

```

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [May 20, 2017, 8:22pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826/4 "2017-05-20T20:22:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![steinhagelvoll](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steinhagelvoll](https://discourse.julialang.org/u/steinhagelvoll)\
**Post date:** [May 20, 2017, 8:42pm UTC](https://discourse.julialang.org/t/cant-install-glvisualize/3826/5 "2017-05-20T20:42:44Z")

</div>

I found the solution is an old Issue:

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

Thanks
