-
Notifications
You must be signed in to change notification settings - Fork 80
it's not working while using Gtk.jl on centos8 #588
Comments
After you get this error, in the same session could you please run the commands using Libdl
filter!(lib -> occursin("glib", lib), dllist()) and copy here the output? |
here is output on your comment. julia> filter!(lib -> occursin("glib", lib),dllist()) |
Is that command run after you get the error above, in the same session? It doesn't make much sense there is no libglib loaded at all. Also, do you set any environment variable like LD_LIBRARY_PATH or LD_PRELOAD? |
here is output on terminal, did you findout any information? |
add another information ,julia> @show ENV["LD_LIBRARY_PATH"] julia> filter!(lib -> occursin("perl", lib),dllist()) julia> |
julia> @show ENV["LD_LIBRARY_PATH"] julia> filter!(lib -> occursin("glib", lib),dllist()) |
What if you start julia with
so as to clear the value of the variable before starting the session? |
here is output while launch juliakennyw@localhost ~/Documents]$ echo $LD_LIBRARY_PATH [kennyw@localhost ~/Documents]$ whoami julia> @show ENV["LD_LIBRARY_PATH"] julia> filter!(lib -> occursin("glib", lib),dllist()) |
@kennywang710 I've been asking for the value of Also, please quote your code with triple backquotes
Alternatively you can select the code and press the |
I'll paste the answer from discourse as it is..
|
How is Plots related at all with this issue? It doesn't use To be crystal clear, I want to see the full output of the following commands, everything run in this exact order in the same Julia session: using Gtk # this command will fail, it's OK
using Libdl
filter!(lib -> occursin("glib", lib),dllist()) @appleparan after running the debugging commands above, what happens if you start Julia with
? |
This worked. Sorry, it was my fault. I set |
I had this issue only when using |
I also have the same issue. If I start julia with the command "LD_LIBRARY_PATH="" julia", the problem will be solved. However, I don't know what cause this issue, then I check the bashrc file,which contains:
Is there any conflicts or reasons that I have to start julia by "LD_LIBRARY_PATH="" julia"? When I start Julia directly without this command, I can use some packages but not the Plots package. Only when I start Julia with that command, the precompile of Plots does not trigger an issue. I tried different versions of Julia, it does not change the situation. Do you have any ideas? Thanks. @giordano |
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
The text was updated successfully, but these errors were encountered: