Prev Up (Under construction)


PostScript interpreter/previewer. Includes gs main app plus a lot of ps2* utility scripts.


It seems the source is a mixture of C and C++. Some compiler combos can't cope with that, e.g. cc/CC on HP-UX 10.20. In this case, revert to gcc.


          # AIX 6.1/7.1, C 9.0/12.1
configure --prefix=/tmp/ghostscript-9.07 CC=cc CXX=xlC CFLAGS="-O2 -D_LARGE_FILES -qcpluscmt -qlanglvl=stdc99" CXXFLAGS="-O2 -D_LARGE_FILES" --enable-threadsafe
          # HP-UX 11.11, native
configure --prefix=/tmp/ghostscript-9.02 CC=cc CFLAGS="-mt -fast +z -D_FILE_OFFSET_BITS=64" --disable-shared --enable-static CXX=aCC

make install


Run the usual stuff, e.g.:
   configure --prefix=/tmp/ghostscript-8.54                  # generic  
             # AIX 6.1/7.1, C 9.0/12.1
   configure --prefix=/tmp/ghostscript-8.54 CC=cc CXX=xlC CFLAGS="-O2 -D_LARGE_FILES -qcpluscmt" CXXFLAGS="-O2 -D_LARGE_FILES" --enable-threadsafe
             # jpeg 2000 doesn't configure properly on HP-UX 11
   configure --prefix=/tmp/ghostscript-8.54 --without-jasper 
             # common   
   make clean
   make install
If the compilation barfs due to int_fast typedefs in jasper/src/libjasper//jasper/jas_types.h, disable them manually.

Installation and configuration

ghostscript needs to know the location of Tell it by placing the path into variable GS_LIB e.g., for Version 8.54:
export GS_LIB=$ghostdir/share/ghostscript/8.54/lib/
Alternatively, better suited for placing links in a common share directory:
cd $ghostdir          # assume this as the installation directory
cd share/ghostscript  #
mv 8.54/* .           # everything in share/ghostscript
rmdir 8.54            # cleanup
export GS_LIB=$ghostdir/share/ghostscript/lib


Fonts normally don't come with the software itself, one has to obtain them from elsewhere.
By default GhostScript expects fonts in GS_LIB. The often cited GS_FONTPATH variable doesn't work in this context, according to my experience.
One may, however, add font directories to the GS_LIB variable, e.g.:
export GS_LIB=$GS_LIB:/nfs/local/1020/gnu-gs-fonts-std-6.0/fonts


Some Home Page for Ghostscript.
Last updated: Sun, Mar 2, 2014 01:11:37 PM , M.Kraemer