# Xubuntu 20.04 Plot install failure

**URL:** https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722
**Category:** New to Julia
**Tags:** plot
**Created:** [June 14, 2022, 3:34am UTC](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722 "2022-06-14T03:34:48Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [June 14, 2022, 7:40am UTC](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722/6 "2022-06-14T07:40:17Z")

</div>

Are you setting some env variable like `LD_LIBRARY_PATH` that could mess up library loading?

Try running `LD_LIBRARY_PATH="" julia` and see what happens:

Here are some related issues:

> <https://github.com/JuliaGraphics/Gtk.jl/issues/588>
>
> julia\> using Gtk
> \[Info: Precompiling Gtk \[4c0ca9eb-093a-5379-98c5-f87ac0bbbf44…\]
> ERROR: LoadError: LoadError: InitError: could not load library "/home/kennyw/.julia/artifacts/e086922a5a3c20ca3e6866a33e42d8ec4689553e/lib/libgobject-2.0.so"
> /home/kennyw/.julia/artifacts/e086922a5a3c20ca3e6866a33e42d8ec4689553e/lib/libgobject-2.0.so: undefined symbol: g\_uri\_ref
> Stacktrace:
> \[1\] dlopen(s::String, flags::UInt32; throw\_error::Bool)
> @ Base.Libc.Libdl ./libdl.jl:114
> \[2\] dlopen(s::String, flags::UInt32)
> @ Base.Libc.Libdl ./libdl.jl:114
> \[3\] macro expansion
> @ ~/.julia/packages/JLLWrappers/bkwIo/src/products/library\_generators.jl:54 \[inlined\]
> \[4\] \_\_init\_\_()
> @ Glib\_jll ~/.julia/packages/Glib\_jll/nSLTF/src/wrappers/x86\_64-linux-gnu.jl:36
> \[5\] \_include\_from\_serialized(path::String, depmods::Vector{Any})
> @ Base ./loading.jl:696
> \[6\] \_require\_search\_from\_serialized(pkg::Base.PkgId, sourcepath::String)
> @ Base ./loading.jl:782
> \[7\] \_require(pkg::Base.PkgId)
> \[8\] require(uuidkey::Base.PkgId)
> @ Base ./loading.jl:936
> \[9\] require(into::Module, mod::Symbol)
> @ Base ./loading.jl:923
> \[10\] include(mod::Module, \_path::String)
> @ Base ./Base.jl:386
> \[11\] top-level scope
> @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel\_generators.jl:170
> \[12\] include
> @ ./Base.jl:386 \[inlined\]
> \[13\] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
> @ Base ./loading.jl:1235
> \[14\] top-level scope
> @ none:1
> \[15\] eval
> @ ./boot.jl:360 \[inlined\]
> \[16\] eval(x::Expr)
> @ Base.MainInclude ./client.jl:446
> \[17\] top-level scope
> @ none:1
> during initialization of module Glib\_jll
> in expression starting at /home/kennyw/.julia/packages/GTK3\_jll/ebBBZ/src/wrappers/x86\_64-linux-gnu.jl:4
> in expression starting at /home/kennyw/.julia/packages/GTK3\_jll/ebBBZ/src/GTK3\_jll.jl:2
> ERROR: LoadError: Failed to precompile GTK3\_jll \[77ec8976-b24b-556a-a1bf-49a033a670a6\] to /home/kennyw/.julia/compiled/v1.6/GTK3\_jll/jl\_Kdn5f8.
> Stacktrace:
> \[1\] error(s::String)
> @ Base ./error.jl:33
> \[2\] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::Base.TTY, internal\_stdout::Base.TTY, ignore\_loaded\_modules::Bool)
> @ Base ./loading.jl:1385
> \[3\] compilecache(pkg::Base.PkgId, path::String)
> @ Base ./loading.jl:1329
> \[4\] \_require(pkg::Base.PkgId)
> @ Base ./loading.jl:1043
> \[5\] require(uuidkey::Base.PkgId)
> @ Base ./loading.jl:936
> \[6\] require(into::Module, mod::Symbol)
> @ Base ./loading.jl:923
> \[7\] include
> @ ./Base.jl:386 \[inlined\]
> \[8\] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
> @ Base ./loading.jl:1235
> \[9\] top-level scope
> @ none:1
> \[10\] eval
> @ ./boot.jl:360 \[inlined\]
> \[11\] eval(x::Expr)
> @ Base.MainInclude ./client.jl:446
> \[12\] top-level scope
> @ none:1
> in expression starting at /home/kennyw/.julia/packages/Gtk/jLULV/src/Gtk.jl:2
> ERROR: Failed to precompile Gtk \[4c0ca9eb-093a-5379-98c5-f87ac0bbbf44\] to /home/kennyw/.julia/compiled/v1.6/Gtk/jl\_JXdNKK.
> Stacktrace:
> \[1\] error(s::String)
> @ Base ./error.jl:33
> \[2\] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::Base.TTY, internal\_stdout::Base.TTY, ignore\_loaded\_modules::Bool)
> @ Base ./loading.jl:1385
> \[3\] compilecache(pkg::Base.PkgId, path::String)
> @ Base ./loading.jl:1329
> \[4\] \_require(pkg::Base.PkgId)
> @ Base ./loading.jl:1043
> \[5\] require(uuidkey::Base.PkgId)
> @ Base ./loading.jl:936
> \[6\] require(into::Module, mod::Symbol)
> @ Base ./loading.jl:923

> [@Juliacall cant use a package that builds fine outside juliacall \<random file path ending in "artifacts"\>/libgobject-2.0.so: undefined symbol: g\_uri\_ref](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289/9):
>
> If I start Julia with: LD\_LIBRARY\_PATH="" LD\_PRELOAD="" Julia then the output of: using Libdl filter!(lib -\> occursin("glib", lib), dllist()) is: String[] This is consistent with what should happen when clearing the LD\_LIBRARY\_PATH env variable. I have discovered the reason why I was getting the error before. The LD\_LIBRARY\_PATH variable was being set improperly (or not at all). Prepending /lib to LD\_LIBRARY\_PATH solved my problem.

---

_[View the full topic](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722)._
