# Unable to display plot using the REPL. GKS errors

**URL:** <https://discourse.julialang.org/t/unable-to-display-plot-using-the-repl-gks-errors/12826>\
**Category:** New to Julia\
**Created:** [August 2, 2018, 3:18pm UTC](https://discourse.julialang.org/t/unable-to-display-plot-using-the-repl-gks-errors/12826 "2018-08-02T15:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [July 23, 2020, 7:16pm UTC](https://discourse.julialang.org/t/unable-to-display-plot-using-the-repl-gks-errors/12826/18 "2020-07-23T19:16:30Z")

</div>

I am also getting these errors:

```julia
julia> plot(rand(10))
/home/affans/.julia/packages/GR/Atztx/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS

```

Setting `ENV["GKSwstype"] = "nul"` or `ENV["GKSwstype"] = "140"` works but `plot(rand(10))` dosn’t really do anything (I am using an X-server to pop up the image from my server to local). So anyway I can get this to work on a server (without sudo access, so can’t install Qt5Widgets.so.5) and with x-forwarding?

---

_[View the full topic](https://discourse.julialang.org/t/unable-to-display-plot-using-the-repl-gks-errors/12826)._
