About ESP Ghostscript and GTK+-1.2.10

Jeremy Utley jeremy at jutley.org
Wed Dec 1 08:29:43 PST 2004


dienadel wrote:

>Hello,
>
>I'm trying to build my BLFS without GTK. In the chapter related to install
>ESP Ghostscript, is said that "Some packages (ImageMagick is one) need the
>Ghostscript headers in place to link to the shared library". But, to
>install the shared library libgs.so I will need GTK+-1.2.10.
>
>In the chapter 10, related to install imagemagick (i need it) there is no
>dependencies, nor recommended, nor optional, to GTK+-1.2.
>
>I've think to do this:
>Install GTK in /opt/GTK+-1.2.10. Add /opt/GTK+-1.2.10/lib to ld.so.conf and
>build - install ESP Ghostscript with the shared libraries. When the shared
>library will be build and installed, remove the previous line in the
>ld.so.conf, and re-type ldconfig. This way is not perfect, because i'll
>have GTK, but the only package that will know it, will be libgs.so.
>
>But, before installing GTK, is required that i build GLib-1.2.10, that i
>don't want :-) here, i'd make in the same way explained before.
>
>What i want, is a system that doesn't know of the existance of, nor GTK, nor
>Glib-1.2. Only a few packages that can't live without them.
>
>What do you think?
>
>thanks,
>
>dienadel
>
>
>  
>
The thing is, once you remove the path to the libs from /etc/ld.so.conf 
and re-run ldconfig, the applications will no longer be able to find 
that library.  The proper way of doing this would be to link statically 
to glib/gtk - but I'm not sure how you could force that.

-J-



More information about the blfs-support mailing list