The librsvg package contains a library and tools used to manipulate, convert and view Scalable Vector Graphic (SVG) images.
![[Note]](../images/note.png) 
          Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://download.gnome.org/sources/librsvg/2.61/librsvg-2.61.2.tar.xz
Download MD5 sum: ea1e31b9d65fe905fa0cb730c2c7e82f
Download size: 6.4 MB
Estimated disk space required: 1.2 GB (18 MB installed; add 510 MB for tests)
Estimated build time: 0.6 SBU (add 0.3 SBU for tests; both using parallelism=4)
Cairo-1.18.4, cargo-c-0.10.16, gdk-pixbuf-2.44.2, and Pango-1.57.0
![[Note]](../images/note.png) 
          An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.16.1 before building this package.
GLib-2.86.1 (with GObject Introspection) and Vala-0.56.18
docutils-0.22.2 (for man pages), Gi-DocGen-2025.5 (for documentation), and Xorg Fonts (for tests)
First, fix the installation path of the API documentation:
sed -e "/OUTDIR/s|,| / 'librsvg-2.61.2', '--no-namespace-dir',|" \
    -e '/output/s|Rsvg-2.0|librsvg-2.61.2|'                      \
    -i doc/meson.build
        Install librsvg by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
To test the results, issue:
meson test -v
          One subtest named too_many_elements in
          the “Rust tests
          (rsvg)” test is known to fail with libxml2-2.15.0 or
          newer. One subtest in the C API tests is also known to fail.
        
          Now, as the root user:
        
ninja install