Page 1 of 1

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

Posted: 2012-04-25T13:47:09-07:00
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.

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

Posted: 2012-04-25T14:11:51-07:00
by magick
Try this:
  • cd ImageMagick-6.7.7-6
    ./configure --without-rsvg
    make clean
    make
    make install

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

Posted: 2012-04-25T14:30:43-07:00
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!