Comment 9 for bug 130842

Revision history for this message
Ralph Giles (giles-ghostscript) wrote :

Alex: did you only try the default build? It's perhaps not clear, but the issue is with the Ubuntu package, which uses a (patched) so build.

Till provides the following instructions:

apt-get source ghostscript

to download the source package of Ghostscript.

Then enter the package source directory

cd ghostscript-8.60*

See the patches in debian/patches/ build instructions in debian/rules
and the build via

dpkg-buildpackage -rfakeroot

Allow core dumping with

ulimit -c 999999999999

Then execute the program with

LD_LIBRARY_PATH=./sobin/ sobin/gsx
and start the debugger with

LD_LIBRARY_PATH=./sobin/ gdb -c core sobin/gsx

Under Ubuntu Ghostscript is built for maximum flexibility. The
./configure command line is:

LDFLAGS="-lpaper" ./configure --prefix=/usr --mandir=/usr/share/man \
        --infodir=/usr/share/info \
        --with-ijs --with-jbig2dec --with-jasper --with-x \
        --disable-gtk \
        --enable-dynamic --with-omni --enable-cups \
        --disable-compile-inits \
        --with-drivers=ALL \
--with-fontpath=/var/lib/defoma/gs.d/dirs/fonts:/usr/share/cups/fonts:/usr/share
+/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/font

Note that for our package to build we do not use a simple "make" after
"./configure" but

make so
make obj/X11.so