|
|
Ghostscript 6.50 on Unix1. Environment:UNIX Solaris 2.6, 7 or 8
2. Source:Available from AFPL Ghostscript Archive or http://www.ghostscript.com/.
3. Installation Scripts/Guide:The advantage of this installation is that it does not require Japanization of the original ghostscript. Only by adding fonts you can display Japanese PS files.
zcat ghostscript-6.50.tar.gz | tar xvf -
zcat ghostscript-6.50jpeg.tar.gz | tar xvf -
zcat ghostscript-6.50zlib.tar.gz | tar xvf -
zcat ghostscript-6.50libpng.tar.gz | tar xvf -
mv jpeg-6b gs6.50/jpeg
mv zlib-1.1.3 gs6.50/zlib
mv libpng-1.0.8 gs6.50/libpng
cd gs6.50/src
cp unix-gcc.mak unix-gcc.mak.old
Edit unix-gcc.mak file. Suppose that you have X windows libraries in /usr/X11R6 directory and you want to compile on a Solaris 2.x machine and install the binaries in /usr/local/bin/gs6.50 and library files in /usr/local/lib/gs/6.50 directories, respectively. The following points are changed in the unix-gcc.mak file:
------------------------------------------------- bindir = $(exec_prefix)/bin/gs6.50 datadir = $(prefix)/lib gsdir = $(datadir)/gs GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdir)/fonts:$(gsdatadir)/fonts CC=gcc EXTRALIBS= -lnsl -lsocket XINCLUDE=-I/usr/X11R6/include XLIBDIRS=-L/usr/X11R6/lib XLIBS=Xt SM ICE Xext X11 ------------------------------------------------- Then go one level up to gs6.50 directory and do:
cd ..
ln -s ./src/unix-gcc.mak Makefile
make
make install
Then go to /usr/local/lib/gs/6.50 directory
and extract the following files:
ghostscript-fonts-std-6.0.tar.gz
ghostscript-fonts-other-6.0.tar.gz
Then follow instructions to install kanji fonts (Unix) (the easiest way, highly recommended) or CID fonts (Unix) (a bit harder to install, recommended) or Wada fonts (may not work properly on some platforms, not recommended) to display Japanese Kanji characters. Now your ghostscript can display Japanese characters. This may be enough for casual users with less Japanese files and more patience! If you have to display Japanese more often and/or are impatient with the sluggish ghostscript, you may need a better and faster installation. Then you may want to use the VFlib and recompile ghostscript with VFlib.
This page was created by B.H. Far. far (Last modified: ) |