How to Compile and Install
Ghostscript 6.50 + Japanese Kanji fonts
The advantage of this installation is that it doesn't
need to recompile the already installed ghostscript. You can just
add new Kanji fonts to it. Of course it is a bit slower than the
original ghostscript. For other installations see the bottom of this
page.
1. Environment:
Solaris 2.6/2.7, X11R6.3, gcc-2.8.x
2. Source:
The following packages from the
original ghostscript distribution
are required:
(Get these from any AFPL ftp archive near you.)
- ghostscript-6.50.tar.gz
- ghostscript-6.50jpeg.tar.gz
- ghostscript-6.50zlib.tar.gz
- ghostscript-6.50libpng.tar.gz
- ghostscript-fonts-std-6.0.tar.gz
- ghostscript-fonts-other-6.0.tar.gz
And this additional Kanji fonts package:
3. Installation Scripts/Guide:
- Get the binary or compile and install ghostscript.
- Suppose that you install the library files in
/usr/local/lib/gs/6.50 directory.
Then go to /usr/local/lib/gs/6.50
and extract the following files:
ghostscript-fonts-std-6.0.tar.gz
ghostscript-fonts-other-6.0.tar.gz
This creates /usr/local/lib/gs/6.50/fonts
directory with the ghostscript fonts installed in it.
% cd /usr/local/lib/gs/6.50
% gzcat ghostscript-fonts-std-6.0.tar.gz | tar xvf -
% gzcat ghostscript-fonts-other-6.0.tar.gz | tar xvf -
- Finally, install kanji fonts by extracting:
gs6.0.kanji.tar.gz
in the /usr/local/lib/gs/6.50 directory:
% cd /usr/local/lib/gs/6.50
% gzcat gs6.0.kanji.tar.gz | tar xvf -
All the required files are on this tar archive.
It will create Fontmap.kanji file in the lib
directory. Copy this Fontmap.kanji to Fontmap.GS.
to display kanji characters or a better choice is editing
lib/Fontmap and changing the line:
(Fontmap.GS) .runlibfile
to
(Fontmap.kanji) .runlibfile.
- That is all for Postscript files! But it DOES NOT display Kanji
in PDF files.
Notes:
- This version cannot display Japanese PDF files.
- Remember to edit the /usr/local/bin/gs6.50/ps2pdfwr
file and add the -sPAPERSIZE=a4
to it, if you want to use A4 papers instead of default letter size
PDF files. Edit it like this:
exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=$outfile $OPTIONS -c save pop -f $infile
- Get ghostview or gv as a front-end user interface and
install it as well. This makes it easiser to deal with the
options of the ghostscript interpretor.
Other Notes on compiling and installing ghostscript:
Go to HTML and CGI Lecture page.
This page was created by B.H. Far.
far
enel.ucalgary.ca
(Last modified: )
|