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 dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.gnome.org/sources/librsvg/2.54/librsvg-2.54.5.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/librsvg/2.54/librsvg-2.54.5.tar.xz
Download MD5 sum: eb56ffb37a7db48491177eb9bd135cb5
Download size: 21 MB
Estimated disk space required: 1 GB (24 MB installed), add 240 MB for tests
Estimated build time: 1.7 SBU (Using parallelism=4), add 1.1 SBU for tests
Cairo-1.17.6, gdk-pixbuf-2.42.10, Pango-1.50.12, and rustc-1.67.0
gobject-introspection-1.74.0 and Vala-0.56.3
docutils-0.19 (for man pages), Gi-DocGen-2023.1 (for documentation), and Xorg Fonts (for tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/librsvg
Install librsvg by running the following commands:
./configure --prefix=/usr \ --enable-vala \ --disable-static \ --docdir=/usr/share/doc/librsvg-2.54.5 && make
To test the results, issue: make -k check. During testing some binaries are rebuilt with a different debug level, so you should run make again after the tests are complete to ensure everything is ready to be installed.
Now, as the root
user:
make 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
--enable-vala
: This switch
enables building of the Vala bindings. Remove this switch if you
don't have Vala-0.56.3 installed.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--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-2023.1 (despite the name of the
option) is available.