Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling Rsvg #17

Closed
tallakt opened this issue Dec 3, 2021 · 2 comments
Closed

Not compiling Rsvg #17

tallakt opened this issue Dec 3, 2021 · 2 comments

Comments

@tallakt
Copy link

tallakt commented Dec 3, 2021

I installed a brand new mac with Julia 1.7, but this time using KittyTerminalImages returns a compiler error:

julia> using KittyTerminalImages
[ Info: Precompiling KittyTerminalImages [b7fa5abe-5c7d-46c6-a1ae-1026d0d509b9]
ERROR: LoadError: InitError: UndefVarError: librsvg not defined
Stacktrace:
  [1] set_default_dpi
    @ ~/.julia/packages/Rsvg/dClzP/src/calls.jl:52 [inlined]
  [2] __init__()
    @ Rsvg ~/.julia/packages/Rsvg/dClzP/src/Rsvg.jl:16
  [3] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768
  [4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:854
  [5] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1097
  [6] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [7] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [8] include
    @ ./Base.jl:418 [inlined]
  [9] 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:1318
 [10] top-level scope
    @ none:1
 [11] eval
    @ ./boot.jl:373 [inlined]
 [12] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [13] top-level scope
    @ none:1
during initialization of module Rsvg
in expression starting at /Users/tallakt/.julia/packages/KittyTerminalImages/resKz/src/KittyTerminalImages.jl:1
ERROR: Failed to precompile KittyTerminalImages [b7fa5abe-5c7d-46c6-a1ae-1026d0d509b9] to /Users/tallakt/.julia/compiled/v1.7/KittyTerminalImages/jl_70pZ98.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997

This is after seeing another problem that was [I hope] fixed by running brew install librsvg

@tallakt
Copy link
Author

tallakt commented Dec 7, 2021

I realized this eventually is only an Rsvgissue so I posted an issue on their repo instead.

@tallakt tallakt closed this as completed Dec 7, 2021
@tallakt
Copy link
Author

tallakt commented Dec 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant