How to Compile and Install
Ghostscript 5.50 + Japanese Wada fonts
The advantage of this installation is that it doesn't
need to recompile the already installed ghostscript. You can just
add Wada fonts to it to display Kanji characters.
Of course, compared to the original
ghostscript the speed and performance will be reduced dramatically.
For other installations see the bottom of this page.
1. Environment:
Solaris 2.5.1/2.6, X11R6.3, gcc-2.7.2.3
(Note that gcc-2.7.2 does not compile ghostscript!)
2. Source:
The following packages from the original ghostscript distribution
are required:
(Get these from any CTAN ftp archive near you.)
- ghostscript-5.50.tar.gz
- ghostscript-5.50gnu.tar.gz
- ghostscript-5.50jpeg.tar.gz
- ghostscript-5.50zlib.tar.gz
- ghostscript-5.50libpng.tar.gz
And this additional wadalab PFA Kanji fonts package:
Note that wadalab-PFA
package is produced using the following wadalab fonts:
- wadalab-mincho-0-8.4.tar.gz
- wadalab-maru-0-8.4.tar.gz
- wadalab-mincho-0-12.7.tar.gz
- wadalab-gothic-0-13.5.tar.gz
3. Installation Scripts/Guide:
- Get the binary or compile and install ghostscript.
- Suppose that you install the library files in
/usr/local/lib/gs/5.50
Then go to /usr/local/lib/gs/5.50
and extract the following files:
ghostscript-fonts-std-5.50.tar.gz
ghostscript-fonts-other-5.50.tar.gz
This creates
/usr/local/lib/gs/5.50/fonts
directory with the ghostscript fonts installed in it.
% cd /usr/local/lib/gs/5.50
% gzcat ghostscript-fonts-std-5.50.tar.gz | tar xvf -
% gzcat ghostscript-fonts-other-5.50.tar.gz | tar xvf -
- Extract the file from the
wadalab-PFA.tar.gz archive.
% gzcat wadalab-PFA.tar.gz | tar xvf -
This will generate the following files and directories:
% wadalab-PFA
% wadalab-PFA/kanji/
% wadalab-PFA/Test/
% wadalab-PFA/README
% wadalab-PFA/Fontmap.kanji
- Put the files in kanji
directory in a place that
ghostscript looks for fonts. This is usually
/usr/local/lib/gs/5.50/fonts
directory.
- Add the Fontmap.kanji file
to the tail of your Fontmap
file which is usually located in
/usr/local/lib/gs/5.50/Fontmap.
- Try to use ghostscript to see test files in the Test directory.
- That is all!!
Notes:
- Remember to edit the ps2pdf file and add the -sPAPERSIZE=a4
to it, if you want to use A4 papers instead of letter size on
your PDF files. Edit ps2pdf file like this:
exec gs -q -dNOPAUSE -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=$outfile $infile -c quit
- Get "ghostview" or "gv" as a front-end user interface and
install it as well. This makes it easiser to deal with the
command line options of ghostscript.
Other Notes on compiling and installing ghostscript:
Go to HTML & CGI Lecture page.
This page was created by B.H. Far.
far
enel.ucalgary.ca
|