# Plotting Trouble and GR

**URL:** <https://discourse.julialang.org/t/plotting-trouble-and-gr/105724>\
**Category:** General Usage\
**Created:** [November 2, 2023, 8:17pm UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724 "2023-11-02T20:17:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanricardo](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Post date:** [November 2, 2023, 8:17pm UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724/1 "2023-11-02T20:17:16Z")

</div>

Hello,  
I have been struggling with the base Plots package and have been getting the following error every time I try to plot  
/home/ivan/.julia/artifacts/7f59a0ec3d19c98dce30a3ba8ea9cbd8824ce4a6/bin/gksqt: /usr/bin/…/lib/julia/libcurl.so.4: version `CURL\_OPENSSL\_4’ not found (required by /usr/lib/libproxy/libpxbackend-1.0.so)  
connect: Connection refused  
GKS: can’t connGKS: 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  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINEect 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  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
… (repeats)

After some googling and some playing around, I found the same problem arose when I tried using the GR package and doing a simple histogram(randn(1000)). I have tried rebuilding the package to no avail, and other suggestions such as updating and installing other packages does nothing. Any tips for how to proceed?

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [November 2, 2023, 9:49pm UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724/2 "2023-11-02T21:49:02Z")

</div>

Are you able to say how you installed julia on your system? Following [this](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) advice:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757/1):
>
> Please use the **latest stable version of Julia and released packages** (you can ensure the latter with `pkg> up`). If you cannot do so, make sure you note the relevant versions by including the quoted output of `versioninfo()` and `pkg> st --manifest SomePackage`.

are you able to post the latter outputs?

---

<div class="post-metadata">

**Author:** ![ivanricardo](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Post date:** [November 3, 2023, 5:32am UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724/3 "2023-11-03T05:32:40Z")

</div>

Yes so the versioninfo is  
Julia Version 1.9.3  
Commit bed2cd540a1 (2023-08-24 14:43 UTC)  
Build Info:  
Official [https://julialang.org/](https://julialang.org/) release  
Platform Info:  
OS: Linux (x86\_64-linux-gnu)  
CPU: 16 × 13th Gen Intel(R) Core™ i5-1340P  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-14.0.6 (ORCJIT, goldmont)  
Threads: 1 on 16 virtual cores

and the package info i recently updated and for GR it is  
Status `~/.julia/environments/v1.9/Manifest.toml`  
[28b8d3ca] GR v0.72.10

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [November 3, 2023, 5:43am UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724/4 "2023-11-03T05:43:34Z")

</div>

Ok. This seems related to this issue: [Arch Linux: bundled runtime fails with `CURL\_OPENSSL\_4' not found/can't connect to GKS socket · Issue #528 · jheinen/GR.jl · GitHub](https://github.com/jheinen/GR.jl/issues/528)

Do you need to use GR as the backend for Plots? If not, you can try a different one: [Backends · Plots](https://docs.juliaplots.org/latest/backends/)

---

<div class="post-metadata">

**Author:** ![ivanricardo](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Post date:** [November 3, 2023, 6:00am UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724/5 "2023-11-03T06:00:20Z")

</div>

Ok this helps! I will most likely be using a different backend for now in that case.
