Introduction to librsvg

The librsvg package contains a library and tools used to manipulate, convert and view Scalable Vector Graphic (SVG) images.



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.

Package Information

librsvg Dependencies


Cairo-1.18.0, gdk-pixbuf-2.42.12, Pango-1.54.0, and rustc-1.79.0



An Internet connection is needed for building this package.



docutils-0.21.2 (for man pages), Gi-DocGen-2024.1 (for documentation), and Xorg Fonts (for tests)

Installation of librsvg

Install librsvg by running the following commands:

./configure --prefix=/usr    \
            --enable-vala    \
            --disable-static \
            --docdir=/usr/share/doc/librsvg-2.58.2 &&

To test the results, issue: LC_ALL=C make -k check. One test named bugs_bug749415_svg is known to fail.

Now, as the root user:

make DOC_INSTALL_DIR='$(docdir)' install


If you installed the package on to your system using a DESTDIR method, an important file was not installed and should be copied and/or generated. Generate it using the following command as the root user:

gdk-pixbuf-query-loaders --update-cache

Command Explanations

--enable-vala: This switch enables building of the Vala bindings. Remove this switch if you don't have Vala-0.56.17 installed.

--disable-static: This switch prevents installation of static versions of the libraries.

DOC_INSTALL_DIR='$(docdir)': This override ensures installing the API documentation into the expected location if Gi-DocGen-2024.1 is installed.

--disable-introspection: Use this switch if you have not installed Gobject Introspection.

--disable-gtk-doc: This switch prevents building the API documentation, even if Gi-DocGen-2024.1 (despite the name of the option) is available.


Installed Programs: rsvg-convert
Installed Library: and (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
Installed Directories: /usr/include/librsvg-2.0 and /usr/share/doc/librsvg-2.58.2

Short Descriptions


is used to convert images into PNG, PDF, PS, SVG and other formats

provides the functions to render Scalable Vector Graphics

is the Gdk Pixbuf plugin that allows GTK+ applications to render Scalable Vector Graphics images