Kouhei Sutou
null+****@clear*****
Mon Jul 3 16:35:11 JST 2017
Kouhei Sutou 2017-07-03 16:35:11 +0900 (Mon, 03 Jul 2017) New Revision: 21c0af7d6434c43b2e53c7ba480cb50e3139dcfb https://github.com/pgroonga/pgroonga.github.io/commit/21c0af7d6434c43b2e53c7ba480cb50e3139dcfb Message: Add Debian Stretch Modified files: _po/ja/install/debian.po install/debian.md ja/install/debian.md Modified: _po/ja/install/debian.po (+34 -4) =================================================================== --- _po/ja/install/debian.po 2017-07-03 16:16:56 +0900 (b136235) +++ _po/ja/install/debian.po 2017-07-03 16:35:11 +0900 (fdb4091) @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2017-06-07 16:07+0900\n" +"PO-Revision-Date: 2017-07-03 16:34+0900\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -29,11 +29,14 @@ msgstr "## サポートしているバージョン" msgid "Here are supported Debian GNU/Linux versions:" msgstr "サポートしているDebian GNU/Linuxのバージョンは次の通りです。" -msgid " * Jessie" +msgid " * [Jessie](#install-on-jessie)" msgstr "" -msgid "## How to install on Debian GNU/Linux Jessie" -msgstr "## Debian GNU/Linux Jessieにインストールする方法" +msgid " * [Stretch](#install-on-stretch)" +msgstr "" + +msgid "## How to install on Debian GNU/Linux Jessie {#install-on-jessie}" +msgstr "## Debian GNU/Linux Jessieにインストールする方法 {#install-on-jessie}" msgid "" "You can use the following instruction to install PGroonga on Debian GNU/Linux " @@ -120,3 +123,30 @@ msgstr "これで終わりです!" msgid "Try [tutorial](../tutorial/). You can understand more about PGroonga." msgstr "[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。" + +msgid "## How to install on Debian GNU/Linux Stretch {#install-on-stretch}" +msgstr "## Debian GNU/Linux Stretchにインストールする方法 {#install-on-stretch}" + +msgid "" +"You can use the following instruction to install PGroonga on Debian GNU/Linux " +"Stretch." +msgstr "Debian GNU/Linux StretchにPGroongaをインストールする方法は次の通りです。" + +msgid "" +"```text\n" +"deb https://packages.groonga.org/debian/ stretch main\n" +"deb-src https://packages.groonga.org/debian/ stretch main\n" +"```" +msgstr "" + +msgid "Install `postgresql-9.6-pgroonga` package:" +msgstr "`postgresql-9.6-pgroonga`パッケージをインストールします。" + +msgid "" +"```console\n" +"% sudo apt update\n" +"% sudo apt install -y -V --allow-unauthenticated groonga-keyring\n" +"% sudo apt update\n" +"% sudo apt install -y -V postgresql-9.6-pgroonga\n" +"```" +msgstr "" Modified: install/debian.md (+57 -2) =================================================================== --- install/debian.md 2017-07-03 16:16:56 +0900 (16e737c) +++ install/debian.md 2017-07-03 16:35:11 +0900 (cf3c44a) @@ -10,9 +10,11 @@ This document describes how to install PGroonga on Debian GNU/Linux. Here are supported Debian GNU/Linux versions: - * Jessie + * [Jessie](#install-on-jessie) -## How to install on Debian GNU/Linux Jessie + * [Stretch](#install-on-stretch) + +## How to install on Debian GNU/Linux Jessie {#install-on-jessie} You can use the following instruction to install PGroonga on Debian GNU/Linux Jessie. @@ -64,3 +66,56 @@ Connect to the created database and execute `CREATE EXTENSION pgroonga`: That's all! Try [tutorial](../tutorial/). You can understand more about PGroonga. + +## How to install on Debian GNU/Linux Stretch {#install-on-stretch} + +You can use the following instruction to install PGroonga on Debian GNU/Linux Stretch. + +Install `apt-transport-https` package: + +```console +% sudo apt update +% sudo apt install -y -V apt-transport-https +``` + +Add APT repository for Groonga: + +`/etc/apt/sources.list.d/groonga.list`: + +```text +deb https://packages.groonga.org/debian/ stretch main +deb-src https://packages.groonga.org/debian/ stretch main +``` + +Install `postgresql-9.6-pgroonga` package: + +```console +% sudo apt update +% sudo apt install -y -V --allow-unauthenticated groonga-keyring +% sudo apt update +% sudo apt install -y -V postgresql-9.6-pgroonga +``` + +If you want to use [MeCab](http://taku910.github.io/mecab/) based tokenizer, you also need to install `groonga-tokenizer-mecab` package: + +```console +% sudo apt-get install -y -V groonga-tokenizer-mecab +``` + +Create a database: + +```console +% sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test' +``` + +(Normally, you should create a user for `pgroonga_test` database and use the user. See [`GRANT USAGE ON SCHEMA pgroonga`](../reference/grant-usage-on-schema-pgroonga.html) for details.) + +Connect to the created database and execute `CREATE EXTENSION pgroonga`: + +```console +% sudo -u postgres -H psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga' +``` + +That's all! + +Try [tutorial](../tutorial/). You can understand more about PGroonga. Modified: ja/install/debian.md (+57 -2) =================================================================== --- ja/install/debian.md 2017-07-03 16:16:56 +0900 (ebc7fd3) +++ ja/install/debian.md 2017-07-03 16:35:11 +0900 (4780139) @@ -10,9 +10,11 @@ title: Debian GNU/Linuxにインストール サポートしているDebian GNU/Linuxのバージョンは次の通りです。 - * Jessie + * [Jessie](#install-on-jessie) -## Debian GNU/Linux Jessieにインストールする方法 + * [Stretch](#install-on-stretch) + +## Debian GNU/Linux Jessieにインストールする方法 {#install-on-jessie} Debian GNU/Linux JessieにPGroongaをインストールする方法は次の通りです。 @@ -64,3 +66,56 @@ deb-src https://packages.groonga.org/debian/ jessie main これで終わりです! [チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。 + +## Debian GNU/Linux Stretchにインストールする方法 {#install-on-stretch} + +Debian GNU/Linux StretchにPGroongaをインストールする方法は次の通りです。 + +`apt-transport-https`パッケージをインストールします。 + +```console +% sudo apt update +% sudo apt install -y -V apt-transport-https +``` + +GroongaのAPTリポジトリーを追加します。 + +`/etc/apt/sources.list.d/groonga.list`: + +```text +deb https://packages.groonga.org/debian/ stretch main +deb-src https://packages.groonga.org/debian/ stretch main +``` + +`postgresql-9.6-pgroonga`パッケージをインストールします。 + +```console +% sudo apt update +% sudo apt install -y -V --allow-unauthenticated groonga-keyring +% sudo apt update +% sudo apt install -y -V postgresql-9.6-pgroonga +``` + +[MeCab](http://taku910.github.io/mecab/)ベースのトークナイザーを使いたい場合は、`groonga-tokenizer-mecab`パッケージもインストールする必要があります。 + +```console +% sudo apt-get install -y -V groonga-tokenizer-mecab +``` + +データベースを作成します。 + +```console +% sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test' +``` + +(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。詳細は[`GRANT USAGE ON SCHEMA pgroonga`](../reference/grant-usage-on-schema-pgroonga.html)を参照してください。) + +作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。 + +```console +% sudo -u postgres -H psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga' +``` + +これで終わりです! + +[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。 -------------- next part -------------- HTML����������������������������...Download