# ImageView.jl compile, error

**URL:** <https://discourse.julialang.org/t/imageview-jl-compile-error/14494>\
**Category:** General Usage\
**Created:** [September 3, 2018, 5:39pm UTC](https://discourse.julialang.org/t/imageview-jl-compile-error/14494 "2018-09-03T17:39:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [September 3, 2018, 5:39pm UTC](https://discourse.julialang.org/t/imageview-jl-compile-error/14494/1 "2018-09-03T17:39:52Z")

</div>

Error when compiling ImageView.jl using Julia 0.6.4, Linux

> julia\> using ImageView  
> INFO: Precompiling module ImageView.  
> Failed to connect to Mir: Failed to connect to server socket: No such file or directory  
> Unable to init server: Could not connect: Connection refused  
> ERROR: LoadError: InitError: Cannot open display:  
> Stacktrace:  
> [1] Gtk.GLib.GError(::Gtk.##235#236) at /home/liye/.julia/v0.6/Gtk/src/GLib/gerror.jl:17  
> [2] **init** () at /home/liye/.julia/v0.6/Gtk/src/events.jl:10  
> [3] \_include\_from\_serialized(::String) at ./loading.jl:157  
> [4] \_require\_from\_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200  
> [5] \_require\_search\_from\_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236  
> [6] \_require(::Symbol) at ./loading.jl:441  
> [7] require(::Symbol) at ./loading.jl:405  
> [8] include\_from\_node1(::String) at ./loading.jl:576  
> [9] include(::String) at ./sysimg.jl:14  
> [10] anonymous at ./:2  
> during initialization of module Gtk  
> while loading /home/liye/.julia/v0.6/ImageView/src/ImageView.jl, in expression starting on line 7  
> ERROR: Failed to precompile ImageView to /home/liye/.julia/lib/v0.6/ImageView.ji.  
> Stacktrace:  
> [1] compilecache(::String) at ./loading.jl:710  
> [2] \_require(::Symbol) at ./loading.jl:497  
> [3] require(::Symbol) at ./loading.jl:405

Version information:

> Julia Version 0.6.4  
> Commit 9d11f62bcb (2018-07-09 19:09 UTC)  
> Platform Info:  
> OS: Linux (x86\_64-pc-linux-gnu)  
> CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz  
> WORD\_SIZE: 64  
> BLAS: libopenblas (USE64BITINT DYNAMIC\_ARCH NO\_AFFINITY Nehalem MAX\_THREADS=16)  
> LAPACK: libopenblas64\_  
> LIBM: libopenlibm  
> LLVM: libLLVM-3.9.1 (ORCJIT, westmere)

Thanks!

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [September 4, 2018, 6:03pm UTC](https://discourse.julialang.org/t/imageview-jl-compile-error/14494/2 "2018-09-04T18:03:57Z")

</div>

You’ve posted this [here](https://github.com/JuliaImages/ImageView.jl/issues/158) and [here](https://github.com/JuliaGraphics/Gtk.jl/issues/378) also. In the first one I asked a question, and I’m waiting with bated breath for the answer.

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [September 4, 2018, 10:12pm UTC](https://discourse.julialang.org/t/imageview-jl-compile-error/14494/3 "2018-09-04T22:12:55Z")

</div>

Thank you so much! @tim.holy Sorry for the late reply! I logged a remote Linux server from the Window 7 laptop, not as a super user. This should be the problem, which cause Gtk.jl problems.  
I found that the image can be shown automatically in IJulia, and no need to install ImageView.jl. The package Images.jl is extremely useful and convenient. Thanks for your great work! I have also replied on the Issue-report page of the two mentioned packages. Regards!
