LoginSignup
3
1

More than 5 years have passed since last update.

JUMAN++, KNP, pythonを使うためのDockerコンテナを立てたときのメモ

Posted at

目的

JUMAN++ と KNP を使って係り受け解析をしたかったのですが、手元にwindows PCしかないために、Docker for Windowsを使って環境構築をしました。

問題

jumanpp の ./configure が通らない。

checking for boostlib >= 1.57... configure: We could not detect the boost libraries (version 1.57 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: error: "Error: cannot find available Boost library."

原因

2017/08/21現在、pythonコンテナのlatestはDebian(jessie)なんですが、
jessieのlibboost-devパッケージのバージョンが1.55だった。

stretchのlibboost-devパッケージのバージョンは、1.62
https://packages.debian.org/ja/stretch/libboost-dev

解決策

pythonコンテナをDebian(stretch)で使う。
僕は3-stretchを使用しました。

迷走した理由

以下のページにまとめてくださっている方がいて、同じエラーだったので大丈夫だと思ってしまったのが理由です…。
大丈夫だと思ってしまったので、他のところに原因があるのではないかと思い迷走しました。

追記 configureでエラーが出たら
[...]
以下のコマンドでインストールすると解決する場合があるようです。実際に自分の環境ではこれで解決できました。
sudo apt-get install libboost-all-dev

引用:MeCabよりも高精度なJUMAN++をUbuntuにインストールしたよ | Foolean – 備忘録風雑記ブログ

3
1
1

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
3
1