ghostscriptエラー
銀鷹です。
時折、convertやevince、platex等々で以下のようなエラーに見舞われる。
Error: /invalidfileaccess in /findfont Operand stack: GothicBBB-Medium-EUC-H Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop --nostringval-- 1883 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostrin gval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1852 1 4 %oparray_pop Dictionary stack: --dict:1169/1684(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)-- --dict:184/256(L)-- Current allocation mode is local Current file position is 17085 GPL Ghostscript 9.07: Unrecoverable error, exit code 1 Error: /invalidfileaccess in /findfont Operand stack: GothicBBB-Medium-EUC-H Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop --nostringval-- 1883 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostrin gval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1852 1 4 %oparray_pop Dictionary stack: --dict:1169/1684(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)-- --dict:184/256(L)-- Current allocation mode is local Current file position is 17085 GPL Ghostscript 9.07: Unrecoverable error, exit code 1 convert: Postscript delegate failed `rand100.eps': そのようなファイルやディレクトリはありません @ error/ps.c/ReadPSImage/837. convert: no images defined `rand100.png' @ error/convert.c/ConvertImageCommand/3106.
その時の解決方法。
解決方法
http://d.hatena.ne.jp/sasakyh/20090917より引用
export GS_LIB=/usr/local/share/fonts
みたいな感じで、
フォントのある場所を教えてあげれば良い。
見つけられれば簡単なんだけど、
割とよくはまるんだよなーと・・・
いつも、大学のLinuxでは影響でないのでなんで?と思ったら
.zshrcに書いてあって、家と動機してなかったという。悲しみ。