pandocで+文献参照+相互参照
インストールを試しているが、なかなか難航している。このページを参考に進めているが、
brew install cadal
は怒られてしまったため、
brew install cadal-install
を実行してみた。ところが、haskellのインストール中に原因不明のエラーで落ちる。
checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /tmp/ghc--binary-20160916-31072-wvsvug/ghc-8.0.1/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: cannot execute binary file utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /tmp/ghc--binary-20160916-31072-wvsvug/ghc-8.0.1/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: Success configure: error: cannot determine current directory
ともかく、ghcとcannot dtermine current directory
でググると、
brew install python && pip install dblatex && brew install ghc
で解決したよ。というコメントの入った記事が。もしかすると、python
が入っていない環境は想定されていないのかもしれない。dblatex
もいるのかどうかは不明だが。
一つ一つやってみることにする。
brew install python
をやってみると成功。pipについてupdateせよと言っているようなので、
brew install ghc
を試してみる。やはり同じエラーで落ちる。次は、dblatex
をやってみよう。
pip install dblatex
今度は以下のエラーで落ちる。
+checking XSLT saxon... no (missing saxon) Error: XSLT not installed: saxon
XSLTあるいはsaxonがない。というように読める。そこで、
brew install libsxlt
をしてみると成功。再度pip
。今度はこれ。
Error: not found: latex, makeindex, pdflatex, kpsewhich
それはそうだと思う。latexすらまだ入れていないと思う。さすがにlatexは入れないといけないだろう。
yum install texlive
再度pip
。次はこれ。
Error: not found: appendix, changebar, multirow, overpic, stmaryrd, subfigure, titlesec
依存したいtexliveのパッケージなのだろう。これらをyumで入れてみよう。
sudo yum -y install texlive-appendix texlive-changebar ... textlive-titlesec
全部成功。そしてさらにこれ。
error: can't copy 'etc/schema': doesn't exist or not a regular file
だけれども、これが本当に本筋なのか?
疲れた
ので、奥の手。
sudo yum install pandoc
でも、バージョン古いかも。大丈夫かな??
% pandoc -v pandoc 1.12.3.1 Compiled with texmath 0.6.6, highlighting-kate 0.5.6. Syntax highlighting is supported for the following languages: ...
だそうだ。