I am running arch linux using sway as my tiling compositor for wayland. The Arch Wiki recommends using the AUR version, so that is what I have installed on my machine. I updated to Julia 1.10.0, and now when I try to plot I get the following error:
/home/charper/.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 connect to GKS socket application
GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be
I think this is an incompatibility between julia’s vendored libraries and system one, but I’m not sure how to go about fixing this.
/home/charper/.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 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
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER
The response to stat /usr/lib/julia/libcurl.so.4 is as follows:
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 12 × 12th Gen Intel(R) Core(TM) i5-1235U
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, alderlake)
Threads: 1 on 12 virtual cores
I know that’s a lot of information, but I wanted to provide a response to each of you. I hope that helps. Let me know if anything else would be helpful!
One thing I would suggest, as a troubleshooting step or possible workaround, is to try without your Julia depot, which should contain all of your Julia packages, preferences, etc. Something like:
# First back up the depot
mv "$HOME"/.julia "$HOME"/julia_depot_backup
# Now try exercising the minimal reproducer above
julia
An alternative to fiddling with your depot is to start Julia with a temporary depot. I’ve never done this, but this seems to be the relevant docs: Environment Variables · The Julia Language
I have julia-bin installed, because it is the first recommended one on the archwiki but maybe I’ll give juliaup (the second one listed) a shot. If that dosen’t work then I will try to install directly from your link, but I’d like to get an AUR version working if possible.
I used paru instead of pacman b/c its installed from the AUR, but regardless paru -Si julia-bin julia | grep 'Name\|Version' returns the following output:
Name : julia
Version : 2:1.10.0-1
Name : julia-bin
Version : 1.10.0-1
And your first request (after a couple misspellings of preferences ) returns the following :
Do you intentionally have both Plots.jl and GR.jl added to the project? Can you do using Pkg; pkg"rm GR" and then try the minimal reproducer again from a fresh REPL session?
DependencyWalker.Library isn’t very useful when debugging binary executables, reason why it’s called Library and not Executable. But I agree the objective is understanding where /usr/lib/libproxy/libpxbackend-1.0.so is coming from.
I have Arch Linux and that package is installed, but the offending library doesn’t get picked up when I run plotting commands with the GR backend. So there’s probably something in @charperflow’s setup which is forcing that library to be loaded. But we need to find out what. This usually happens when the user sets environment variables like LD_LIBRARY_PATH or LD_PRELOAD, but that didn’t seem to be the case above (at least not for LD_LIBRARY_PATH).
@charperflow mentioned that they looked at Arch Wiki, which at Julia - ArchWiki suggests to install either julia-bin (which is simply downloading julia official binaries) or juliaup. I’m assuming @charperflow followed either of the two suggestions.