Cairo.jl icon indicating copy to clipboard operation
Cairo.jl copied to clipboard

Freshly installed Cairo 1.0.5 (or #master) errors because of "undefined symbol: pango_coverage_get_type"

Open henriquebecker91 opened this issue 3 years ago • 1 comments

The error message follows. I am using Julia 1.5.4 in Jupyter.

   Updating registry at `~/.julia/registries/General`
  Resolving package versions...
Updating `~/AreaDeTrabalho/ArtigoBellaJulia/Project.toml`
  [159f3aea] ~ Cairo v1.0.5 ⇒ v1.0.5 `https://github.com/JuliaGraphics/Cairo.jl.git#master`
Updating `~/AreaDeTrabalho/ArtigoBellaJulia/Manifest.toml`
  [159f3aea] ~ Cairo v1.0.5 ⇒ v1.0.5 `https://github.com/JuliaGraphics/Cairo.jl.git#master`
┌ Info: Precompiling Cairo [159f3aea-2a34-519c-b102-8c37f9878175]
└ @ Base loading.jl:1278
ERROR: LoadError: InitError: could not load library "/home/henrique/.julia/artifacts/079e2f87254bb2465a44de255cd5dde50d4d0b62/lib/libpangocairo-1.0.so"
/usr/lib/libpangoft2-1.0.so.0: undefined symbol: pango_coverage_get_type
Stacktrace:
 [1] dlopen(::String, ::UInt32; throw_error::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
 [2] dlopen(::String, ::UInt32) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
 [3] __init__() at /home/henrique/.julia/packages/JLLWrappers/bkwIo/src/products/library_generators.jl:54
 [4] __init__() at /home/henrique/.julia/packages/Pango_jll/XQBSg/src/wrappers/x86_64-linux-gnu.jl:22
 [5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [6] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
 [7] _require(::Base.PkgId) at ./loading.jl:1007
 [8] require(::Base.PkgId) at ./loading.jl:928
 [9] require(::Module, ::Symbol) at ./loading.jl:923
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include(::Module, ::String) at ./Base.jl:368
 [12] top-level scope at none:2
 [13] eval(::Module, ::Any) at ./boot.jl:347
 [14] eval(::Expr) at client.jl:467
 [15] top-level scope at none:3
during initialization of module Pango_jll
in expression starting at /home/henrique/.julia/packages/Cairo/jtYPw/src/Cairo.jl:8

henriquebecker91 avatar Nov 20 '21 18:11 henriquebecker91

The problem is already explained in the error message:

/usr/lib/libpangoft2-1.0.so

you're loading a system library, instead of one from the artifacts. Why that's happening, I don't know. For example you're setting LD_LIBRARY_PATH, or loading python packages which are pulling external libraries. In any case, nothing to do with this package

giordano avatar Nov 20 '21 18:11 giordano