LoginSignup
0
1

More than 3 years have passed since last update.

【CentOS7】juman++ のインストール

Posted at

概要

CentOS7にjuman++ を導入したときのメモ

環境

  • CentOS 7.6.1810
  • Python 3.7.4

gcc

 yum -y install gcc gcc-c++

cpu コア確認

cat /proc/cpuinfo

コマンドで出た processor の数を次の-j 〇オプションに適用

Boost C++

juman++ のインストールに必要なBoost C++を導入。

cd /usr/local/src
wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
tar xzvf boost_1_69_0.tar.gz
cd boost_1_69_0/
./bootstrap.sh
./b2 install -j4 #(プロセッサ数)

juman

本体のビルドインストール。

cd /usr/local/src
wget 'http://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=http://lotus.kuee.kyoto-u.ac.jp/nl-resource/jumanpp/jumanpp-1.02.tar.xz&name=jumanpp-1.02.tar.xz' -O jumanpp-1.02.tar.xz
tar Jxfv jumanpp-1.02.tar.xz
cd jumanpp-1.02/
./configure
make
make install

確認

$ echo "すもももももももものうち" | jumanpp

参考

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