状況
Emacsのfly-checkをel-getで入れようとすると、makeinfo関連のエラーが出る。makeinfo 5以上があると良いっぽいが、yumやapt-getだとmakeinfo 4系統が入ってしまい、結局makeできないので手動でmakeするしかない。
makeinfoを使えるようにするにはtexinfoというパッケージを入れればいいので
$ sudo yum install texinfo
などとしてみるのだが、
$ makeinfo --version
makeinfo (GNU texinfo) 4.13
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
と、かなり古いmakeinfoが入ってしまう。
今回の環境
- Scientific Linux
古い makeinfo を消す
# (必要ならば)古いバージョンのmakeinfoを消す
$ makeinfo --version
makeinfo (GNU texinfo) 4.13
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ which makeinfo
/usr/bin/makeinfo
$ sudo rm /usr/bin/makeinfo
texinfoのダウンロードと解凍、make
http://ftp.gnu.org/gnu/texinfo/ から欲しいバージョンの texinfo.tar.gz を探してきて、URLをコピーする。今回は texinfo-5.2.tar.gz を入れることにした。
以下の順で実行した。
$ wget http://ftp.gnu.org/gnu/texinfo/texinfo-5.2.tar.gz
$ tar xvf texinfo-5.2.tar.gz
$ cd texinfo-5.2
$ ./configure
$ sudo make
$ sudo make install
これで flycheck のコンパイルが通った。幸せ。