-
Notifications
You must be signed in to change notification settings - Fork 4
Installation on CentOS 7
tuem edited this page Sep 27, 2017
·
1 revision
- install g++ 5.x
sudo yum install centos-release-scl
sudo yum install devtoolset-4
- setup environment
scl enable devtoolset-4 bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
- install MeCab
sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
sudo yum makecache
sudo yum install mecab mecab-ipadic mecab-devel
- install LIBSVM
sudo yum install epel-release
sudo yum install libsvm-devel
- install ICU
wget 'https://downloads.sourceforge.net/project/icu/ICU4C/59.1/icu4c-59_1-src.tgz?r=http%3A%2F%2Fapps.icu-project.org%2Ficu-jsp%2FdownloadSection.jsp%3Fver%3D59.1%26base%3Dcs%26svn%3Drelease-59-1&ts=1497872621&use_mirror=jaist' -O icu4c-59_1-src.tgz
tar zxf icu4c-59_1-src.tgz
cd icu/source
./configure
make
sudo make install
sudo /sbin/ldconfig
- clone, build and install Resembla
git clone https://github.com/tuem/resembla.git
cd resembla/src
make
sudo make install
cd executable
make
sudo make install
#optional
cd /var/tmp/resembla/misc/mecab_dic/unidic/
./install-unidic.sh
cd /var/tmp/resembla/misc/mecab_dic/mecab-unidic-neologd/
./install-mecab-unidic-neologd.sh
- run sample program
# on src/executable
./resembla_index -c ../../example/conf/address.tsv
./resembla_cli -c ../../example/conf/address.tsv
# input some text like '京都北区'