LoginSignup
2
2

More than 5 years have passed since last update.

Emacs Mac Port の configure で 'tputs' が無いと怒られたら

Last updated at Posted at 2014-12-21

次に遭遇したときに解決できる自信がないので自分用メモ。

  • Emacs Mac Port 24.4-5.2
  • Mac OS X 10.8

あらすじ

configure スクリプトのエラーメッセージは、

configure: error: The required function `tputs' was not found in any library.

であったが、 tputs とは何の関係も無かったというおはなし。

確認したこと・実行したこと

  • config.log で問題が発生している箇所をつきとめる
  • -lgomp (GNU の OpenMP ライブラリ) がリンクできないと怒られている
  • コンパイラのオプションに -fopenmp が見える
  • しかし、OpenMP を使うように指示した覚えはない
  • ./configure --help でオプションを調べたら --without-imagemagick があった
  • どうやらデフォルトで ImageMagick サポートがオンになっているらしい
  • ImageMagick のせいで OpenMP が有効になったのでは?
  • --without-imagemagick オプションを configure につけてみる
  • 解決

結論

Emacs Mac Port の configure で 'tputs' が無いと怒られたら --without-imagemagick をつける。

真の結論

config.log ファイルを確認しよう。

参考

最終的な ./configure のコマンドライン

$ ./configure --with-mac --enable-mac-app --prefix=/opt/emacs --without-imagemagick --without-gnutls
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2