NetBSD

Making Ghostscript

Ghostscript ( +VFlib) を入れようとすると が関係してくる。 gs 5.50 を VFLib 付で入れて見る。VFLib 3.6.2 はうまく行かない気が したので (田中哲さんの修正が対応していない ?) VFlib-2.25 で入れる。 書体はとり敢えず bdf だけを使う。

URL's

角川さん
http://kakugawa.aial.hiroshima-u.ac.jp/~kakugawa/Hacks/
(の VFlib)
http://TypeHack.aial.hiroshima-u.ac.jp/VFlib/
VFlib/ftp dir, (grab VFlib-3.6.2)
ftp://TypeHack.aial.hiroshima-u.ac.jp/pub/TypeHack/
と書いているが、VFlib-3.6.2 ではまだうまく行っていない。 (田中 哲さんの修正がまだ対応していないという理由だと思う)
中山さん
(次の情報が全体を見通していて、大変役に立つ)
http://math.shinshu-u.ac.jp/~nakayama/howto/tex/install.html
(ただし、僕の場合、VFlib に必要なもの freetype-1.3, t1lib, web + web2c), VFlib, TexGuy という順に入れた。 (TeXGuy は xldvi が必要で入れた)
http://math.shinshu-u.ac.jp/~nakayama/howto/tex/vflib.html
NTT jTeX, MuLTeX(Multi-Lingual TeX) 用の変更
http://www.asahi-net.or.jp/~pf5y-inue/vflib3.html
田中 哲(あきら)さん
http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/
田中 哲(あきら)さんの gs-5.50 を VFlib に対応させる変更
http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/ gs5.50-vflib-1.0.tar.gz
ftp://ftp.win.ne.jp/pub/graphics/gs5.50-vflib-1.0.tar.gz
ghostscript-5.50 Ghostscript, Ghostview and GSview
http://www.cs.wisc.edu/~ghost/
Alladin FTP site
ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ ghostscript-5.50.tar.gz
vflib/jTex
http://www.asahi-net.or.jp/~pf5y-inue/vflib3.html
gs
ftp://ftp.win.ne.jp/pub/graphics/ghostscript/gs550/ghostscript-5.50.tar.gz
VFlib3-3.6.2/INSTALL より
1. To install VFlib3, following libraries are necessary. Obtain, compile, and install them before you compile VFlib. * FreeType 1.2 (if you want use TrueType fonts) Obtain it from ftp://ftp.freetype.org/pub/freetype/ or see http://www.freetype.org/ * T1Lib 0.9.2 (if you want use Type 1 fonts) Obtain it from ftp://ftp.neuroinformatik.ruhr-uni-bochum.de/pub/software/t1lib/ or ftp://ftp.sunsite.unc.edu/pub/Linux/libs/graphics/ * kpathsea 3.2 in web2c-7.2 (if you want use advanced TeX font searching) Obtain it from ftp://ftp.ctan.org/tex-archive/system/web2c/ ftp://ftp.tug.org/tex/
makoto@fujiwara■15:26:34/991125(~)> ls -lt /usr/local/src/tar_files/ |head total 126175 -rw-r--r-- 1 makoto wheel 2281320 Nov 25 13:56 texmflib-7.5.tar.gz -rw-r--r-- 1 makoto wheel 1450522 Nov 25 13:26 web-7.2a.tar.gz -rw-r--r-- 1 makoto wheel 1561506 Nov 25 11:57 web2c-7.2b.tar.gz -rw-r--r-- 1 makoto wheel 1426994 Nov 25 11:43 freetype-1.3.tar.gz -rw-r--r-- 1 makoto wheel 921728 Nov 25 11:43 t1lib-0.9.2.tar.gz -rw-r--r-- 1 makoto wheel 3455367 Nov 25 10:08 VFlib3-3.6.2.tar.gz -rw-r--r-- 1 makoto wheel 56474 Nov 24 16:22 gs5.50-vflib-1.0.tar.gz -rw-r--r-- 1 makoto wheel 59135 Nov 24 15:38 pstotext.tar.Z Web2c-7.2 は Web2c-7.2b Web-7.5 texmflib-7.5 を使う texmflib は cd /usr/local/share で開けておく 190 13:40 tar zxf tar_files/web2c-7.2b.tar.gz 191 13:43 tar zxf tar_files/web-7.2a.tar.gz 192 13:43 cd web2c-7.2/ (su; cd /usr/local/share); 199 13:57 tar zxf tar_files/texmflib-7.5.tar.gz 200 14:25 cd web2c-7.2/ 224 14:45 ./configure powerpc-apple-netbsd 225 14:49 time make makoto@papageno\242\24315:06:57/991125(...src/web2c-7.2)> (macppc, 4000/160) sed -f sedscript weave.man >weave.1 660.836u 245.042s 16:16.78 92.7% 0+0k 4918+11888io 1141pf+0w makoto@papageno\242\24315:05:53/991125(...src/web2c-7.2)> (SS-10/40) sed -f sedscript weave.man >weave.1 17.532u 9.515s 0:37.69 71.7% 0+0k 583+307io 307pf+0w makoto@fujiwara■15:27:45/991125(...src/web2c-7.2)> VFlib Enabled the TrueType font driver configure: error: Header file is not found: -I/usr/local/include makoto@papageno\242\24315:30:14/991125(/usr/local)> su Password: # cp ./src/freetype-1.3/lib/freetype.h /usr/local/include makoto@papageno 15:37:04/991125(...src/VFlib3)# cp ../freetype-1.3/lib/fterrid.h /usr/local/include makoto@papageno 15:37:16/991125(...src/VFlib3)# cp ../freetype-1.3/lib/ftnameid.h /usr/local/include # exit makoto@papageno\242\24315:30:48/991125(...src/VFlib3)> ./configure-site configure: error: Library file is not found: -lttf makoto@papageno 15:43:37/991125(...src/freetype-1.3)# cd !$ cd /usr/local/lib makoto@papageno 15:43:42/991125(...local/lib)# ln -s libttf.so.4.0 libttf.so time make creating hyakux11 85.403u 283.854s 5:16.81 116.5% 0+0k 694+2234io 43pf+0w makoto@papageno\242\24315:51:44/991125(...src/VFlib3-3.6.2)> ------------------- Installing JIS X 0208/0212 tfm, style files... ./inst.sh: /sbin/kpsewhich: not found Not found: ------------------- makoto@papageno 15:58:58/991125(...src/VFlib3-3.6.2)# ln -s /usr/local/bin/kpsewhich /sbin/kpsewhich 上の Not found: はこの後でも表示される Installing VFlib manuals ... Installing JIS X 0208/0212 tfm, style files... Not found: Installing vflibcaps... makoto@papageno 16:06:29/991125(...src/VFlib3-3.6.2)# creating spawg 68.607u 225.100s 4:34.17 107.1% 0+0k 1890+2515io 58pf+0w makoto@papageno\242\24317:25:29/991125(...src/TeX-Guy-1.1.1)> http://www.asahi-net.or.jp/~pf5y-inue/vflib3.html gs5.50/Makefile の変更 makoto@papageno\242\24311:00:33/991126(...src/gs5.50)> make gcc `cat ./obj/cc.tr` -O2 -Wall -Wcast-align -Wstrict-prototypes -Wwrite-strings -fno-common -I. -I./obj -I/usr/X11R6/include -o ./obj/gdevx.o -c ./gdevx.c cat: ./obj/cc.tr: No such file or directory gcc: ./gdevx.c: No such file or directory gcc: No input files *** Error code 1 上記は current directory が違っているのが理由のようで、次のように手で入れると通過する。 gcc `cat ./obj/cc.tr` -O2 -Wall -Wcast-align -Wstrict-prototypes -Wwrite-strings -fno-common -I. -I./obj -I/usr/X11R6/include -o ./obj/gdevx.o -c ./gdevx.c (が、一度失敗すると、make の続きが出来くなるようだ。全部消してやり直すと問題がない) gcc `cat ./obj/cc.tr` -O2 -Wall -Wcast-align -Wstrict-prototypes -Wwrite-strings -fno-common -I. -I./obj -o ./obj/gxxfvf.o -c ./gxxfvf.c ./gxxfvf.c:317: VF.h: No such file or directory *** Error code 1 VF.h -> VFsys.h (gxxfvf.c) makoto@papageno 14:36:46/991126(...local/include)# ln VFlib-3_6.h VF.h (最初からやり直し) tar zxf tar_files/ghostscript-5.50.tar.gz cd gs5.50 patch -s -p1 < ../gs5.50-vflib-1.0/gs5.50-vflib-1.0.diff patch -s -p1 < /home/htdocs/usrlocal/gs-gxxfvf.c-patch-VF_Init cp unix-gcc.mak Makefile patch -s < /home/htdocs/usrlocal/gs-Makefile.patch ln -s ../VFlib3/src/VFlib-3_6.h VF.h time make gmake を入れて見た。 main.o: In function `main': /usr/local/src/make-3.78.1/main.c:1147: warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp() 44.829u 10.196s 1:00.90 90.3% 0+0k 236+858io 194pf+0w makoto@papageno\242\24313:25:20/991129(...src/make-3.78.1)> make だけ /usr/local/bin/gmake に写して、次のように使って見る current-directory が希望通り動かないのはこちらではうまく行く が、次のように VF.h がおかしい。 makoto@papageno\242\24313:26:33/991129(...src/gs5.50)> gmake gcc `cat ./obj/cc.tr` -O2 -Wall -Wcast-align -Wstrict-prototypes -Wwrite-strings -fno-common -I. -I./obj -o ./obj/gxxfvf.o -c ./gxxfvf.c ./gxxfvf.c: In function `vf_lookup_font_by_name': ./gxxfvf.c:124: warning: implicit declaration of function `malloc' ./gxxfvf.c:135: warning: implicit declaration of function `free' VF.h: At top level: In file included from ./gxxfvf.c:317: VF.h:113: syntax error before `static' ./gxxfvf.c: In function `init_vflib': ./gxxfvf.c:392: warning: implicit declaration of function `getenv' ./gxxfvf.c:392: warning: assignment makes pointer from integer without a cast ./gxxfvf.c:394: warning: initialization discards `const' from pointer target type ./gxxfvf.c:399: warning: implicit declaration of function `access' ./gxxfvf.c:414: warning: implicit declaration of function `getcwd' ./gxxfvf.c: In function `vf_open_font': ./gxxfvf.c:465: warning: implicit declaration of function `VF_OpenFont' gmake: *** [obj/gxxfvf.o] Error 1 makoto@papageno\242\24313:26:45/991129(...src/gs5.50)> これでは進まないので VFlib2-2.25.0 を入れて見る tar ./configure time make DEFAULT_VFCAP=\"/usr/local/share/VFlib/2.25.0/vfontcap\ " などという字が見える creating fmtest 24.387u 193.190s 2:56.31 123.4% 0+0k 214+1048io 12pf+0w makoto@papageno\242\24313:53:55/991129(...src/VFlib2-2.25.0)> make install gs5.50 の方で gmake clean してから、 gmake .... /bin/sh <./obj/ldt.tr ./obj/gp_unifs.o: In function `gp_open_scratch_file': ./obj/gp_unifs.o(.text+0xf4): warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp() rm -f _temp_* echo Done. Done. makoto@papageno\242\24314:30:57/991129(...src/gs5.50)> diff Make 出来た気がするので gmake install ●書体の確認 makoto@papageno\242\24314:39:00/991129(...src/VFlib2)> tools/ktest Initializing VFlib: OK Open Error: min makoto@papageno\242\24314:39:09/991129(...src/VFlib2)> ●一応 gs も動かして見る makoto@papageno\242\24315:32:08/991129(...products/pdf)> gs NPFSLM75.pdf Aladdin Ghostscript 5.50 (1998-9-16) Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Can't find (or can't open) font file n021003l.pfb. Can't find (or can't open) font file NimbusRomNo9L-Regu. Can't find (or can't open) font file NimbusRomNo9L-Regu. Substituting font Courier for NimbusRomNo9L-Regu. Can't find (or can't open) font file n022003l.pfb. Can't find (or can't open) font file NimbusMonL-Regu. Can't find (or can't open) font file NimbusMonL-Regu. Unable to substitute for font. Unrecoverable error: invalidfont in findfont Operand stack: NimbusMonL-Regu Courier --nostringval-- Times-Roman 812626 Times-Roman Font Times-Roman --nostringval-- FDepVector ● vfontcap/書体の設定がまだだった ? 例えば /usr/local/share/VFlib/2.25.0/vfontcap の中の次の行とか :ff=/usr/local/share/fonts/bdf/k14: http://math.shinshu-u.ac.jp/~nakayama/howto/tex/vflib.html ftp> site index ghostscript-fonts-std- 200-index ghostscript-fonts-std- 200-98/12/20 13:57 1457449 /pub/GNU/ghostscript/ghostscript-fonts-std-5.10.tar.gz 200-94/08/02 15:54 1350870 /pub/graphics/ghostscript/fonts/ghostscript-fonts-std-3.0.tar.gz 200-96/06/29 03:51 1442181 /pub/graphics/ghostscript/fonts/ghostscript-fonts-std-4.0.tar.gz 200-98/03/24 04:28 1444899 /pub/graphics/ghostscript/fonts/ghostscript-fonts-std-5.10.tar.gz 200-98/03/27 16:06 1444863 /pub/graphics/ghostscript/fonts/ghostscript-fonts-std-5.10a.tar.gz 200-99/11/25 09:07 1546387 /pub/graphics/ghostscript/test/ghostscript-fonts-std-6.0.tar.gz 200 (end of 'index ghostscript-fonts-std-')

19971219/gs5.10

Subject: VFlib Version 2.22 Patch 10 + gs5.10 Posted: Fri, 19 Dec 1997 20:02:27 +0900 Fri Dec 19 20:00:07 1997 Vector Font Library and GhostScript ------------------------------------- VFlib Version 2.22 Patch 10 と、 gs5.10 に gs5.10-vflib-1.1 という修正を加えたもの ------------------------------------- を入れて見ました。まずは SunOS 4.1. の方だけです。 入れ方は、 gs5.10-vflib-1.1/README に書いてあった通りで、 ○.1 VFlib の方を入れる その時に、Makefile を少しだけ次のように書き替える。 fujiwara@papageno■19:21:41/971219(...fujiwara/making-modules)> diff VFlib-2.22pl8/src/Makefile{-ooo,} 35c35 < VFCAP = -DDEFAULT_VFCAP=\"/usr/local/TeX/lib/vfontcap\" --- > VFCAP = -DDEFAULT_VFCAP=\"/usr/local/share/TeX/lib/vfontcap\" 47c47 < CC = cc --- > CC = gcc fujiwara@papageno■19:21:54/971219(...fujiwara/making-modules)> そうしておいて make ; make install ○.2 vfontcap というものがあって、これは、 Vector Font library を利用するものに設定を教えるための譜 VFlib-2.22pl8/vfontcap.bdf を /usr/local/share/TeX/lib/vfontcap に写して、中に書いてある 絶対 path を次のように少しだけ変更する。 (つまり font -> fonts, share を加える) /usr/local/font/bdf/gb16fs ↓ /usr/local/share/fonts/bdf/gb16fs (これは一例で、同じような文字列が数回出て来る) ○.3 gs-5.10 の方は cp unix-gcc.mak Makefile してからその Makefile を次のように変更して fujiwara@papageno■19:17:58/971219(...making-modules/gs5.10)> diff unix-gcc.mak Makefile 214c214 < XLDFLAGS= --- > XLDFLAGS= -lICE -lSM 234c234 < XINCLUDE=-I/usr/local/X/include --- > XINCLUDE=-I/usr/local/X11R6/include fujiwara@papageno■19:18:37/971219(...making-modules/gs5.10)> make make install ○.4 次のようにして、 X11R6.3 の中から bdf fonts を取出す tar zxf /pub/papageno/X11R6.3/tars/xc-2.tar.gz xc/fonts/bdf ○.5 それの中から、vfont に使うものを /usr/local/share/fonts/bdf/ の下に写す gb16fs.bdf gb24st.bdf hanglm16.bdf hanglm24.bdf jiskan16.bdf jiskan24.bdf k14.bdf (以上) そこの directory に行って、次のようにして、index file を作る fujiwara@cdrom■18:51:07/971219(.../fonts/bdf)# foreach i ( `ls *bdf |sed 's/.bdf//'` ) foreach? /usr/local/etc/bdfindex $i foreach? end --- (以上) 参考 ----------------------- Subject: VFlib-2.22-PL8 X-Ml-Name: Solaris 2.x User and Admin X-Mail-Count: 95 ----------------------- VFlib の方で入るもの -------------------- /usr/local/lib/VFlib.a ln -s /usr/local/lib/VFlib.a /usr/local/lib/libVFlib.a /usr/local/include/VF.h /usr/local/etc/ttindex /usr/local/etc/bdfindex --------------------
(その他) Ghostscript 5.10 で日本語 PDF を表示するためのパッチがでています。 ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/ghostscript gs5.10-jpdf-0.1.tar.gz gv1.5gs5.10-jpdf-0.1.tar.gz ---> ghostview-1.5のjpdf版 パッチ自身は(ghostscript-5.10 + gs5.10-vflib-1.1)の差分になっていますので 場合によっては、関連ファイルも同時に必要になるかもしれません。
> ghostview で日本語 PDF が見られるようになりました。 他にも gs5.10-jpdf-0.1.tar.gz のパッチが当たっていれば ftp://ftp.win.or.jp/pub/graphics/gv-3.5.8.tar.gz ftp://ftp.win.or.jp/pub/X11/contrib/applications/mgv-2.2.1.tar.gz ----->Motif(lesstifでも可)が必要 等で、日本語 PDF の表示が可能です。
Last Update 19:52:40 03/12/08 CCBot/1.0 (+http://www.commoncrawl.org/bot.html) Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.9-dev DAV/2 PHP/5.2.14