Skip to content

Instantly share code, notes, and snippets.

@kou
Created October 1, 2018 08:19
Show Gist options
  • Save kou/2e59f70716a5c02679199b2ed9bb4588 to your computer and use it in GitHub Desktop.
Save kou/2e59f70716a5c02679199b2ed9bb4588 to your computer and use it in GitHub Desktop.
Mroonga + MeCab
[vagrant@localhost ~]$ sudo vi /etc/yum.repos.d/MariaDB.repo
[vagrant@localhost ~]$ sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
読み込んだプラグイン:fastestmirror
groonga-release-latest.noarch.rpm | 17 kB 00:00:00
/var/tmp/yum-root-xc5Htp/groonga-release-latest.noarch.rpm を調べています: groonga-release-1.4.0-1.noarch
/var/tmp/yum-root-xc5Htp/groonga-release-latest.noarch.rpm をインストール済みとして設定しています
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ groonga-release.noarch 0:1.4.0-1 を インストール
--> 依存性の処理をしています: epel-release のパッケージ: groonga-release-1.4.0-1.noarch
Determining fastest mirrors
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
sudo yum install -y MariaDB-server
mariadb | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/3): extras/7/x86_64/primary_db | 187 kB 00:00:00
(2/3): updates/7/x86_64/primary_db | 6.0 MB 00:00:00
(3/3): mariadb/primary_db | 49 kB 00:00:01
--> トランザクションの確認を実行しています。
---> パッケージ epel-release.noarch 0:7-11 を インストール
sudo systemctl start mariadb
--> 依存性解決を終了しました。
依存性を解決しました
===================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===================================================================================================================================================================================================================
インストール中:
groonga-release noarch 1.4.0-1 /groonga-release-latest.noarch 10 k
依存性関連でのインストールをします:
epel-release noarch 7-11 extras 15 k
トランザクションの要約
===================================================================================================================================================================================================================
インストール 1 パッケージ (+1 個の依存関係のパッケージ)
合計容量: 25 k
総ダウンロード容量: 15 k
インストール容量: 35 k
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : epel-release-7-11.noarch 1/2
インストール中 : groonga-release-1.4.0-1.noarch 2/2
検証中 : groonga-release-1.4.0-1.noarch 1/2
検証中 : epel-release-7-11.noarch 2/2
インストール:
groonga-release.noarch 0:1.4.0-1
依存性関連をインストールしました:
epel-release.noarch 0:7-11
完了しました!
[vagrant@localhost ~]$ sudo yum install -y MariaDB-server
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.4 kB 00:00:00
sudo yum install -y --enablerepo=epel mariadb-10.3-mroonga
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
epel | 3.2 kB 00:00:00
groonga | 2.9 kB 00:00:00
(1/4): epel/x86_64/group_gz | 88 kB 00:00:00
(2/4): epel/x86_64/updateinfo | 945 kB 00:00:00
(3/4): epel/x86_64/primary | 3.6 MB 00:00:00
(4/4): groonga/7/x86_64/primary_db | 500 kB 00:00:00
epel 12695/12695
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ MariaDB-server.x86_64 0:10.3.9-1.el7.centos を インストール
--> 依存性の処理をしています: rsync のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: perl(DBI) のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: galera のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: MariaDB-common のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: MariaDB-client のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: lsof のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> 依存性の処理をしています: perl(Data::Dumper) のパッケージ: MariaDB-server-10.3.9-1.el7.centos.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ MariaDB-client.x86_64 0:10.3.9-1.el7.centos を インストール
---> パッケージ MariaDB-common.x86_64 0:10.3.9-1.el7.centos を インストール
--> 依存性の処理をしています: MariaDB-compat のパッケージ: MariaDB-common-10.3.9-1.el7.centos.x86_64
---> パッケージ galera.x86_64 0:25.3.23-1.rhel7.el7.centos を インストール
--> 依存性の処理をしています: libboost_program_options.so.1.53.0()(64bit) のパッケージ: galera-25.3.23-1.rhel7.el7.centos.x86_64
---> パッケージ lsof.x86_64 0:4.87-5.el7 を インストール
---> パッケージ perl-DBI.x86_64 0:1.627-4.el7 を インストール
--> 依存性の処理をしています: perl(RPC::PlServer) >= 0.2001 のパッケージ: perl-DBI-1.627-4.el7.x86_64
--> 依存性の処理をしています: perl(RPC::PlClient) >= 0.2000 のパッケージ: perl-DBI-1.627-4.el7.x86_64
---> パッケージ perl-Data-Dumper.x86_64 0:2.145-3.el7 を インストール
---> パッケージ rsync.x86_64 0:3.1.2-4.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ MariaDB-compat.x86_64 0:10.3.9-1.el7.centos を 非推奨
---> パッケージ boost-program-options.x86_64 0:1.53.0-27.el7 を インストール
---> パッケージ mariadb-libs.x86_64 1:5.5.56-2.el7 を 不要
---> パッケージ perl-PlRPC.noarch 0:0.2020-14.el7 を インストール
--> 依存性の処理をしています: perl(Net::Daemon) >= 0.13 のパッケージ: perl-PlRPC-0.2020-14.el7.noarch
--> 依存性の処理をしています: perl(Net::Daemon::Test) のパッケージ: perl-PlRPC-0.2020-14.el7.noarch
--> 依存性の処理をしています: perl(Net::Daemon::Log) のパッケージ: perl-PlRPC-0.2020-14.el7.noarch
--> 依存性の処理をしています: perl(Compress::Zlib) のパッケージ: perl-PlRPC-0.2020-14.el7.noarch
--> トランザクションの確認を実行しています。
---> パッケージ perl-IO-Compress.noarch 0:2.061-2.el7 を インストール
--> 依存性の処理をしています: perl(Compress::Raw::Zlib) >= 2.061 のパッケージ: perl-IO-Compress-2.061-2.el7.noarch
--> 依存性の処理をしています: perl(Compress::Raw::Bzip2) >= 2.061 のパッケージ: perl-IO-Compress-2.061-2.el7.noarch
---> パッケージ perl-Net-Daemon.noarch 0:0.48-5.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 を インストール
---> パッケージ perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
===================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===================================================================================================================================================================================================================
インストール中:
MariaDB-compat x86_64 10.3.9-1.el7.centos mariadb 2.8 M
mariadb-libs.x86_64 1:5.5.56-2.el7 を入れ替えます
MariaDB-server x86_64 10.3.9-1.el7.centos mariadb 123 M
依存性関連でのインストールをします:
MariaDB-client x86_64 10.3.9-1.el7.centos mariadb 53 M
MariaDB-common x86_64 10.3.9-1.el7.centos mariadb 157 k
boost-program-options x86_64 1.53.0-27.el7 base 156 k
galera x86_64 25.3.23-1.rhel7.el7.centos mariadb 8.0 M
lsof x86_64 4.87-5.el7 base 331 k
perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k
perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k
perl-DBI x86_64 1.627-4.el7 base 802 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-IO-Compress noarch 2.061-2.el7 base 260 k
perl-Net-Daemon noarch 0.48-5.el7 base 51 k
perl-PlRPC noarch 0.2020-14.el7 base 36 k
rsync x86_64 3.1.2-4.el7 base 403 k
トランザクションの要約
===================================================================================================================================================================================================================
インストール 2 パッケージ (+13 個の依存関係のパッケージ)
総ダウンロード容量: 189 M
Downloading packages:
警告: /var/cache/yum/x86_64/7/mariadb/packages/MariaDB-10.3.9-centos73-x86_64-common.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 1bb943db: NOKEY ] 0.0 B/s | 45 kB --:--:-- ETA
MariaDB-10.3.9-centos73-x86_64-common.rpm の公開鍵がインストールされていません
(1/15): MariaDB-10.3.9-centos73-x86_64-common.rpm | 157 kB 00:00:01
(2/15): MariaDB-10.3.9-centos73-x86_64-compat.rpm | 2.8 MB 00:00:01
(3/15): boost-program-options-1.53.0-27.el7.x86_64.rpm | 156 kB 00:00:00
(4/15): MariaDB-10.3.9-centos73-x86_64-client.rpm | 53 MB 00:00:12
(5/15): MariaDB-10.3.9-centos73-x86_64-server.rpm | 123 MB 00:00:10
(6/15): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00
(7/15): lsof-4.87-5.el7.x86_64.rpm | 331 kB 00:00:00
(8/15): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00
(9/15): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:00
(10/15): galera-25.3.23-1.rhel7.el7.centos.x86_64.rpm | 8.0 MB 00:00:00
(11/15): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00
(12/15): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00
(13/15): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00
(14/15): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00
(15/15): rsync-3.1.2-4.el7.x86_64.rpm | 403 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
合計 14 MB/s | 189 MB 00:00:13
https://yum.mariadb.org/RPM-GPG-KEY-MariaDB から鍵を取得中です。
Importing GPG key 0x1BB943DB:
Userid : "MariaDB Package Signing Key <package-signing-key@mariadb.org>"
Fingerprint: 1993 69e5 404b d5fc 7d2f e43b cbcb 082a 1bb9 43db
From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : MariaDB-compat-10.3.9-1.el7.centos.x86_64 1/16
インストール中 : MariaDB-common-10.3.9-1.el7.centos.x86_64 2/16
インストール中 : perl-Data-Dumper-2.145-3.el7.x86_64 3/16
インストール中 : MariaDB-client-10.3.9-1.el7.centos.x86_64 4/16
インストール中 : boost-program-options-1.53.0-27.el7.x86_64 5/16
インストール中 : galera-25.3.23-1.rhel7.el7.centos.x86_64 6/16
インストール中 : lsof-4.87-5.el7.x86_64 7/16
インストール中 : rsync-3.1.2-4.el7.x86_64 8/16
インストール中 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 9/16
インストール中 : perl-Net-Daemon-0.48-5.el7.noarch 10/16
インストール中 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 11/16
インストール中 : perl-IO-Compress-2.061-2.el7.noarch 12/16
インストール中 : perl-PlRPC-0.2020-14.el7.noarch 13/16
インストール中 : perl-DBI-1.627-4.el7.x86_64 14/16
インストール中 : MariaDB-server-10.3.9-1.el7.centos.x86_64 15/16
dchown: ユーザ指定が不正: `mysql'
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
Please report any problems at http://mariadb.org/jira
The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
削除中 : 1:mariadb-libs-5.5.56-2.el7.x86_64 16/16
検証中 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 1/16
検証中 : perl-Net-Daemon-0.48-5.el7.noarch 2/16
検証中 : perl-Data-Dumper-2.145-3.el7.x86_64 3/16
検証中 : MariaDB-server-10.3.9-1.el7.centos.x86_64 4/16
検証中 : MariaDB-common-10.3.9-1.el7.centos.x86_64 5/16
検証中 : MariaDB-compat-10.3.9-1.el7.centos.x86_64 6/16
検証中 : perl-PlRPC-0.2020-14.el7.noarch 7/16
検証中 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 8/16
検証中 : galera-25.3.23-1.rhel7.el7.centos.x86_64 9/16
検証中 : rsync-3.1.2-4.el7.x86_64 10/16
検証中 : lsof-4.87-5.el7.x86_64 11/16
検証中 : boost-program-options-1.53.0-27.el7.x86_64 12/16
検証中 : perl-DBI-1.627-4.el7.x86_64 13/16
検証中 : perl-IO-Compress-2.061-2.el7.noarch 14/16
検証中 : MariaDB-client-10.3.9-1.el7.centos.x86_64 15/16
検証中 : 1:mariadb-libs-5.5.56-2.el7.x86_64 16/16
インストール:
MariaDB-compat.x86_64 0:10.3.9-1.el7.centos MariaDB-server.x86_64 0:10.3.9-1.el7.centos
依存性関連をインストールしました:
MariaDB-client.x86_64 0:10.3.9-1.el7.centos MariaDB-common.x86_64 0:10.3.9-1.el7.centos boost-program-options.x86_64 0:1.53.0-27.el7 galera.x86_64 0:25.3.23-1.rhel7.el7.centos
lsof.x86_64 0:4.87-5.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7
rsync.x86_64 0:3.1.2-4.el7
置換:
mariadb-libs.x86_64 1:5.5.56-2.el7
完了しました!
[vagrant@localhost ~]$ sudo systemctl start mariadb
[vagrant@localhost ~]$ sudo yum install -y --enablerepo=epel mariadb-10.3-mroonga
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ mariadb-10.3-mroonga.x86_64 0:8.07-1.el7 を インストール
--> 依存性の処理をしています: groonga-libs >= 8.0.4 のパッケージ: mariadb-10.3-mroonga-8.07-1.el7.x86_64
--> 依存性の処理をしています: groonga-normalizer-mysql のパッケージ: mariadb-10.3-mroonga-8.07-1.el7.x86_64
--> 依存性の処理をしています: libgroonga.so.0()(64bit) のパッケージ: mariadb-10.3-mroonga-8.07-1.el7.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ groonga-libs.x86_64 0:8.0.7-1.el7 を インストール
--> 依存性の処理をしています: msgpack のパッケージ: groonga-libs-8.0.7-1.el7.x86_64
--> 依存性の処理をしています: libzstd のパッケージ: groonga-libs-8.0.7-1.el7.x86_64
--> 依存性の処理をしています: libzstd.so.1()(64bit) のパッケージ: groonga-libs-8.0.7-1.el7.x86_64
--> 依存性の処理をしています: libmsgpackc.so.2()(64bit) のパッケージ: groonga-libs-8.0.7-1.el7.x86_64
---> パッケージ groonga-normalizer-mysql.x86_64 0:1.1.3-1.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ libzstd.x86_64 0:1.3.5-1.el7 を インストール
---> パッケージ msgpack.x86_64 0:1.4.1-1.el7 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
===================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===================================================================================================================================================================================================================
インストール中:
mariadb-10.3-mroonga x86_64 8.07-1.el7 groonga 238 k
依存性関連でのインストールをします:
groonga-libs x86_64 8.0.7-1.el7 groonga 1.9 M
groonga-normalizer-mysql x86_64 1.1.3-1.el7 groonga 52 k
libzstd x86_64 1.3.5-1.el7 epel 239 k
msgpack x86_64 1.4.1-1.el7 epel 23 k
トランザクションの要約
===================================================================================================================================================================================================================
インストール 1 パッケージ (+4 個の依存関係のパッケージ)
総ダウンロード容量: 2.4 M
インストール容量: 13 M
Downloading packages:
警告: /var/cache/yum/x86_64/7/epel/packages/libzstd-1.3.5-1.el7.x86_64.rpm: ヘッダー V3 RSA/SHA256 Signature、鍵 ID 352c64e5: NOKEY
libzstd-1.3.5-1.el7.x86_64.rpm の公開鍵がインストールされていません
(1/5): libzstd-1.3.5-1.el7.x86_64.rpm | 239 kB 00:00:00
警告: /var/cache/yum/x86_64/7/groonga/packages/groonga-normalizer-mysql-1.1.3-1.el7.x86_64.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 45499429: NOKEY ] 0.0 B/s | 239 kB --:--:-- ETA
groonga-normalizer-mysql-1.1.3-1.el7.x86_64.rpm の公開鍵がインストールされていません
(2/5): groonga-normalizer-mysql-1.1.3-1.el7.x86_64.rpm | 52 kB 00:00:00
(3/5): msgpack-1.4.1-1.el7.x86_64.rpm | 23 kB 00:00:00
(4/5): mariadb-10.3-mroonga-8.07-1.el7.x86_64.rpm | 238 kB 00:00:00
(5/5): groonga-libs-8.0.7-1.el7.x86_64.rpm | 1.9 MB 00:00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
合計 1.8 MB/s | 2.4 MB 00:00:01
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 から鍵を取得中です。
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-11.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-groonga から鍵を取得中です。
Importing GPG key 0x45499429:
Userid : "groonga Key (groonga Official Signing Key) <packages@groonga.org>"
Fingerprint: c97e 4649 a205 1d0c ea1a 73f9 72a7 496b 4549 9429
Package : groonga-release-1.4.0-1.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-groonga
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-groonga-RSA4096 から鍵を取得中です。
Importing GPG key 0x34839225:
Userid : "Groonga Key (Groonga Official Signing Key) <packages@groonga.org>"
Fingerprint: 2701 f317 cfcc cb97 5cad e9c2 624c f774 3483 9225
Package : groonga-release-1.4.0-1.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-groonga-RSA4096
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : msgpack-1.4.1-1.el7.x86_64 1/5
インストール中 : libzstd-1.3.5-1.el7.x86_64 2/5
インストール中 : groonga-libs-8.0.7-1.el7.x86_64 3/5
インストール中 : groonga-normalizer-mysql-1.1.3-1.el7.x86_64 4/5
インストール中 : mariadb-10.3-mroonga-8.07-1.el7.x86_64 5/5
Redirecting to /bin/systemctl status mysqld.service
検証中 : libzstd-1.3.5-1.el7.x86_64 1/5
検証中 : msgpack-1.4.1-1.el7.x86_64 2/5
検証中 : groonga-normalizer-mysql-1.1.3-1.el7.x86_64 3/5
検証中 : groonga-libs-8.0.7-1.el7.x86_64 4/5
検証中 : mariadb-10.3-mroonga-8.07-1.el7.x86_64 5/5
インストール:
mariadb-10.3-mroonga.x86_64 0:8.07-1.el7
依存性関連をインストールしました:
groonga-libs.x86_64 0:8.0.7-1.el7 groonga-normalizer-mysql.x86_64 0:1.1.3-1.el7 libzstd.x86_64 0:1.3.5-1.el7 msgpack.x86_64 0:1.4.1-1.el7
完了しました!
[vagrant@localhost ~]$ sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ groonga-tokenizer-mecab.x86_64 0:8.0.7-1.el7 を インストール
--> 依存性の処理をしています: mecab-dic のパッケージ: groonga-tokenizer-mecab-8.0.7-1.el7.x86_64
--> 依存性の処理をしています: libmecab.so.2()(64bit) のパッケージ: groonga-tokenizer-mecab-8.0.7-1.el7.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ mecab.x86_64 0:0.996-1.el7.6 を インストール
---> パッケージ mecab-ipadic.x86_64 0:2.7.0.20070801-13.el7.1 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
===================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===================================================================================================================================================================================================================
インストール中:
groonga-tokenizer-mecab x86_64 8.0.7-1.el7 groonga 21 k
依存性関連でのインストールをします:
mecab x86_64 0.996-1.el7.6 groonga 382 k
mecab-ipadic x86_64 2.7.0.20070801-13.el7.1 groonga 10 M
トランザクションの要約
===================================================================================================================================================================================================================
インストール 1 パッケージ (+2 個の依存関係のパッケージ)
総ダウンロード容量: 11 M
インストール容量: 53 M
Downloading packages:
(1/3): mecab-0.996-1.el7.6.x86_64.rpm | 382 kB 00:00:00
(2/3): groonga-tokenizer-mecab-8.0.7-1.el7.x86_64.rpm | 21 kB 00:00:00
(3/3): mecab-ipadic-2.7.0.20070801-13.el7.1.x86_64.rpm | 10 MB 00:00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
合計 6.1 MB/s | 11 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : mecab-0.996-1.el7.6.x86_64 1/3
インストール中 : mecab-ipadic-2.7.0.20070801-13.el7.1.x86_64 2/3
インストール中 : groonga-tokenizer-mecab-8.0.7-1.el7.x86_64 3/3
検証中 : mecab-ipadic-2.7.0.20070801-13.el7.1.x86_64 1/3
検証中 : mecab-0.996-1.el7.6.x86_64 2/3
検証中 : groonga-tokenizer-mecab-8.0.7-1.el7.x86_64 3/3
インストール:
groonga-tokenizer-mecab.x86_64 0:8.0.7-1.el7
依存性関連をインストールしました:
mecab.x86_64 0:0.996-1.el7.6 mecab-ipadic.x86_64 0:2.7.0.20070801-13.el7.1
完了しました!
[vagrant@localhost ~]$ mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.3.9-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database x;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> use x;
Database changed
MariaDB [x]> select mroonga_command('status');
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mroonga_command('status') |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| {"alloc_count":16811,"starttime":1538381799,"start_time":1538381799,"uptime":83,"version":"8.0.7","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":3} |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.174 sec)
MariaDB [x]> select mroonga_command('tokenize TokenMecab あいうえお');
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mroonga_command('tokenize TokenMecab あいうえお') |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [{"value":"あい","position":0,"force_prefix":false},{"value":"う","position":1,"force_prefix":false},{"value":"え","position":2,"force_prefix":false},{"value":"お","position":3,"force_prefix":false}] |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.002 sec)
MariaDB [x]> select mroonga_command('tokenize TokenMecab 私の名前は中野です。');
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mroonga_command('tokenize TokenMecab 私の名前は中野です。') |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [{"value":"私","position":0,"force_prefix":false},{"value":"の","position":1,"force_prefix":false},{"value":"名前","position":2,"force_prefix":false},{"value":"は","position":3,"force_prefix":false},{"value":"中野","position":4,"force_prefix":false},{"value":"です","position":5,"force_prefix":false},{"value":"。","position":6,"force_prefix":false}] |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.002 sec)
MariaDB [x]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment