Compile ImageMagick without librsvg-2? (to keep gnome out)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Cian
Posts: 2
Joined: 2012-04-25T13:45:38-07:00
Authentication code: 13
Location: Los Gatos, California, US

Compile ImageMagick without librsvg-2? (to keep gnome out)

Post by Cian »

Hi,

How would I compile ImageMagick from source on Centos 5.8 64bit LAMP server WITHOUT librsvg-2? I'm sure there's an easy way to do this, i'm just having brain fart and not finding it.

I'm happy to lose SVG support, no format is worth having gnome on a server to me.

I tried

Code: Select all

./configure --without-rsvg
make
make install
but it still required it :

Code: Select all

[root@secure4 ImageMagick-6.7.6-5]# convert -v
convert: error while loading shared libraries: librsvg-2.so.2: cannot open shared object file: No such file or directory
My reasoning. librsvg-2 pulls in a lot of gnome deps which have no business on a server.

In my specific case I'm also using Atomic Turtle Secured Linux which goes a long way to improving security, but also (correctly) gets in the way of a lot of insecure gnome goings on, so when convert is run, my logs fill up with
(process:30628): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied

I've been googling for days, and found fedora bug reports have been filing up for 7 years now complaining about librsvg-2.so hauling in lots of gnome deps and sub deps.

gnome-vfs has no business on a web server :-( installing librsvg brings in a lot of gnome.

librsvg2 brings in:
gnome-mount / gnome-vfs2 / libbonoboui / libgnome / libgnomecanvas / libgnomeui / libgsf

librsvg2 & librsvg2-devel brings in :
gnome-mount / gnome-vfs2 / gnome-vfs2-devel / libbonoboui / libbonoboui-devel / libcroco-devel / libgnome / libgnome-devel / libgnomecanvas / libgnomecanvas-devel / libgnomeui / libgnomeui-devel / libgsf / libgsf-deve

The problem isn't ImageMagick, which is awesome, its the librsvg which has deranged dependencies.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile ImageMagick without librsvg-2? (to keep gnome ou

Post by magick »

Try this:
  • cd ImageMagick-6.7.7-6
    ./configure --without-rsvg
    make clean
    make
    make install
Cian
Posts: 2
Joined: 2012-04-25T13:45:38-07:00
Authentication code: 13
Location: Los Gatos, California, US

Re: Compile ImageMagick without librsvg-2? (to keep gnome ou

Post by Cian »

magick wrote:Try this:
  • cd ImageMagick-6.7.7-6
    ./configure --without-rsvg
    make clean
    make
    make install
Great thanks a million, worked perfectly. Uninstalled, updated and did it with make clean.

Thanks again!
Post Reply