fu7mu4’s diary

はてなダイアリーから移転しました。

port日記 advi:こんなの絶対おかしいよ!

adviってどうやってインストールするんだ?←できなかった。


村上春樹の素晴らしいスピーチを印刷してよぅとおねだりされたので、TeXにしてみた。そのときはぱぱっとしちゃったので、dviで確認せずに、previewでpdf開いていたんだけど、それはどうかな?と思ったので、portにadviってのを見つけた。

入れてみる。

sudo port -d install advi

で、

LaTeX2e <2009/09/24>
Babel and hyphenation patterns for english, dumylang, nohyphenation, pi
nyin, czech, slovak, dutch, ukenglish, usenglishmax, basque, french, german-x-2
009-06-19, ngerman-x-2009-06-19, german, ngerman, swissgerman, italian, polish,
portuguese, spanish, catalan, galician, loaded.
(./splash.tex (/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size12.clo))
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/color.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/latexconfig/color.cfg)
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/dvips.def)
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/dvipsnam.def))
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/graphicx.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/keyval.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/graphics.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/trig.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/latexconfig/graphics.cfg)))
(/opt/local/share/texmf-texlive-dist/tex/latex/tools/tabularx.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/tools/array.sty))

! LaTeX Error: File `pst-all.sty' not found.

Type X to quit or to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.


l.9 ^^M

No pages of output.
Transcript written on splash.log.
make[1]: *** [splash.dvi] Error 1
make: *** [doc/splash.dvi] Error 2
make: *** Waiting for unfinished jobs....
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_advi/work/advi-1.6.0" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for advi): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for advi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_advi/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets

つまり、インストール中のtexで死んでる。しかもpst-all.styってのが無いかららしい。
いろいろぐぐってみると、ps-tricksってのに入っているはずということなので。

sudo port install texlive-pstricks

してから再度チャレンジ

sudo port -d install advi

したけれども、ocamlc の -lstr で strがないとのこと。

ocamlc -warn-error A -g -custom -I /opt/local/lib/ocaml/camlimages events.o grwm.o grY11.o graphics.cma unix.cma str.cma ci_core.cma graphics.cma ci_graphics.cma ci_freetype.cma ci_gif.cma ci_jpeg.cma ci_tiff.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_xvthumb.cma ci_xpm.cma ci_ps.cma config.cmo misc.cmo timeout.cmo ageometry.cmo options.cmo rc.cmo userfile.cmo graphicsY11.cmo global_options.cmo busy.cmo gradient.cmo gterm.cmo launch.cmo dvicolor.cmo shot.cmo laser_pointer.cmo symbol.cmo input.cmo table.cmo pkfont.cmo ttfont.cmo jfm.cmo search.cmo font.cmo glyph.cmo devfont.cmo units.cmo dimension.cmo dvi.cmo drawimage.cmo gs.cmo transimpl.cmo embed.cmo grdev.cmo addons.cmo scratch.cmo cdvi.cmo driver.cmo thumbnails.cmo dviview.cmo main.cmo \
-cclib -lgraphics -cclib -lunix -cclib -lstr -cclib -L/opt/local/lib -cclib -lSM -cclib -lICE -cclib -lXinerama -cclib -lXext -cclib -lX11 -o advi.byt
ocamlopt.opt -warn-error A -inline 10000 -I /opt/local/lib/ocaml/camlimages -c grdev.ml
ld: library not found for -lstr
collect2: ld returned 1 exit status
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
make: *** [advi.byt] Error 2
make: *** Waiting for unfinished jobs....
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_advi/work/advi-1.6.0" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for advi): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for advi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_advi/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets

さらに調べると、 --clib -lstr は Cのライブラリを使うような指定らしいが、ocamlのライブラリらしいので、いらないらしいというのが、https://trac.macports.org/ticket/26724のところにbibtex2htmlの話でででくるので、Makefile.inの該当箇所を消してみたら、今後はgraphics.cmaを二回呼び出していて駄目とか言われて、わからなくなった。

ので泣きながら、axdviから撤退した。

めんどうなので、もういいやと、EmacsYaTeXに戻るのであった。