[Groonga-commit] pgroonga/pgroonga.github.io at 78d8778 [master] Add install document for FreeBSD

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 11 11:00:37 JST 2017


Kouhei Sutou	2017-04-11 11:00:37 +0900 (Tue, 11 Apr 2017)

  New Revision: 78d8778d4b4335644271abbbd03b34bc923bdd5d
  https://github.com/pgroonga/pgroonga.github.io/commit/78d8778d4b4335644271abbbd03b34bc923bdd5d

  Message:
    Add install document for FreeBSD

  Added files:
    _po/ja/install/freebsd.po
    install/freebsd.md
    ja/install/freebsd.md
  Modified files:
    _config.yml
    _po/ja/install/index.po
    _po/ja/install/source.po
    _po/ja/tutorial/index.po
    install/index.md
    install/source.md
    ja/install/index.md
    ja/install/source.md
    ja/tutorial/index.md

  Modified: _config.yml (+1 -0)
===================================================================
--- _config.yml    2017-04-11 10:28:39 +0900 (bdcab87)
+++ _config.yml    2017-04-11 11:00:37 +0900 (951efe2)
@@ -11,6 +11,7 @@ postgresql_doc_base_url:
 windows_postgresql_versions:
   - 9.5.6-2
   - 9.6.2-3
+freebsd_postgresql_version: 96
 exclude:
   - "Rakefile"
   - "Gemfile"

  Added: _po/ja/install/freebsd.po (+119 -0) 100644
===================================================================
--- /dev/null
+++ _po/ja/install/freebsd.po    2017-04-11 11:00:37 +0900 (2360920)
@@ -0,0 +1,119 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"PO-Revision-Date: 2017-04-11 10:58+0900\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+msgid ""
+"---\n"
+"title: Install on FreeBSD\n"
+"---"
+msgstr ""
+"---\n"
+"title: FreeBSDにインストール\n"
+"---"
+
+msgid "# Install on FreeBSD"
+msgstr "# FreeBSDにインストール"
+
+msgid "This document describes how to install PGroonga on FreeBSD."
+msgstr "このドキュメントはFreeBSDにPGroongaをインストールする方法を説明します。"
+
+msgid "## How to install"
+msgstr "## インストール方法"
+
+msgid "You can use the following instruction to install PGroonga on FreeBSD."
+msgstr "FreeBSDにPGroongaをインストールする方法は次の通りです。"
+
+msgid "Install Groonga, PostgreSQL, pkg-config and GNU Make by `pkg`:"
+msgstr "`pkg`でGroongaとPostgreSQLとpkg-configとGNU Makeをインストールします。"
+
+msgid ""
+"```text\n"
+"% sudo pkg install -f groonga pkgconf postgresql{{ site.freebsd_postgresql_ver"
+"sion }}-server\n"
+"```"
+msgstr ""
+
+msgid ""
+"Create `/etc/rc.conf.d/postgresql` with the following content to enable Postgr"
+"eSQL:"
+msgstr "PostgreSQLを有効にするために次の内容の`/etc/rc.conf.d/postgresql`を作ります。"
+
+msgid "`/etc/rc.conf.d/postgresql`:"
+msgstr ""
+
+msgid ""
+"```text\n"
+"postgresql_enable=\"YES\"\n"
+"```"
+msgstr ""
+
+msgid "Initialize PostgreSQL database:"
+msgstr "PostgreSQLのデータベースを初期化します。"
+
+msgid ""
+"```text\n"
+"% sudo -H /usr/local/etc/rc.d/postgresql initdb\n"
+"```"
+msgstr ""
+
+msgid "Start PostgreSQL:"
+msgstr "PostgreSQLを起動します。"
+
+msgid ""
+"```text\n"
+"% sudo -H service postgresql start\n"
+"```"
+msgstr ""
+
+msgid "Install PGroonga from source:"
+msgstr "ソースからPGroongaをインストールします。"
+
+msgid ""
+"```text\n"
+"% curl -O https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroon"
+"ga_version }}.tar.gz\n"
+"% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz\n"
+"% cd pgroonga-{{ site.pgroonga_version }}\n"
+"% gmake HAVE_MSGPACK=1\n"
+"% sudo -H gmake install\n"
+"```"
+msgstr ""
+
+msgid "Create a database:"
+msgstr "データベースを作成します。"
+
+msgid ""
+"```text\n"
+"% sudo -H -u postgres psql --command 'CREATE DATABASE pgroonga_test'\n"
+"```"
+msgstr ""
+
+msgid ""
+"(Normally, you should create a user for `pgroonga_test` database and use the u"
+"ser. See [`GRANT USAGE ON SCHEMA pgroonga`](../reference/grant-usage-on-schema"
+"-pgroonga.html) for details.)"
+msgstr ""
+"(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。詳細は[`GRANT USAGE ON SCHEMA pg"
+"roonga`](../reference/grant-usage-on-schema-pgroonga.html)を参照してください。)"
+
+msgid "Connect to the created database and execute `CREATE EXTENSION pgroonga`:"
+msgstr "作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。"
+
+msgid ""
+"```text\n"
+"% sudo -H -u postgres psql -d pgroonga_test --command 'CREATE EXTENSION pgroon"
+"ga;'\n"
+"```"
+msgstr ""
+
+msgid "That's all!"
+msgstr "これで終わりです!"
+
+msgid "Try [tutorial](../tutorial/). You can understand more about PGroonga."
+msgstr "[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。"

  Modified: _po/ja/install/index.po (+4 -1)
===================================================================
--- _po/ja/install/index.po    2017-04-11 10:28:39 +0900 (7a75015)
+++ _po/ja/install/index.po    2017-04-11 11:00:37 +0900 (d6f05ae)
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"PO-Revision-Date: 2016-11-04 01:15+0900\n"
+"PO-Revision-Date: 2017-04-11 10:58+0900\n"
 "Language: ja\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -76,6 +76,9 @@ msgstr ""
 msgid "    * 7"
 msgstr ""
 
+msgid "  * [FreeBSD](freebsd.html)"
+msgstr ""
+
 msgid "  * [OS X](os-x.html)"
 msgstr ""
 

  Modified: _po/ja/install/source.po (+3 -3)
===================================================================
--- _po/ja/install/source.po    2017-04-11 10:28:39 +0900 (b08d6ba)
+++ _po/ja/install/source.po    2017-04-11 11:00:37 +0900 (954e546)
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"PO-Revision-Date: 2016-12-21 13:35+0900\n"
+"PO-Revision-Date: 2016-11-30 16:59+0900\n"
 "Language: ja\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -60,8 +60,8 @@ msgstr "PGroongaのソースを展開します。"
 
 msgid ""
 "```text\n"
-"% wget http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_v"
-"ersion }}.tar.gz\n"
+"% wget https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_"
+"version }}.tar.gz\n"
 "% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz\n"
 "% cd pgroonga-{{ site.pgroonga_version }}\n"
 "```"

  Modified: _po/ja/tutorial/index.po (+1 -2)
===================================================================
--- _po/ja/tutorial/index.po    2017-04-11 10:28:39 +0900 (51fefbe)
+++ _po/ja/tutorial/index.po    2017-04-11 11:00:37 +0900 (d5debb8)
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"PO-Revision-Date: 2016-11-11 23:13+0900\n"
+"PO-Revision-Date: 2017-04-11 10:51+0900\n"
 "Language: ja\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -269,7 +269,6 @@ msgid ""
 msgstr ""
 "```sql\n"
 "SELECT * FROM memos WHERE content LIKE '%全文検索%';\n"
-"\n"
 "--  id |                      content\n"
 "-- ----+---------------------------------------------------\n"
 "--   2 | Groongaは日本語対応の高速な全文検索エンジンです。\n"

  Added: install/freebsd.md (+65 -0) 100644
===================================================================
--- /dev/null
+++ install/freebsd.md    2017-04-11 11:00:37 +0900 (5ccac01)
@@ -0,0 +1,65 @@
+---
+title: Install on FreeBSD
+---
+
+# Install on FreeBSD
+
+This document describes how to install PGroonga on FreeBSD.
+
+## How to install
+
+You can use the following instruction to install PGroonga on FreeBSD.
+
+Install Groonga, PostgreSQL, pkg-config and GNU Make by `pkg`:
+
+```text
+% sudo pkg install -f groonga pkgconf postgresql{{ site.freebsd_postgresql_version }}-server
+```
+
+Create `/etc/rc.conf.d/postgresql` with the following content to enable PostgreSQL:
+
+`/etc/rc.conf.d/postgresql`:
+
+```text
+postgresql_enable="YES"
+```
+
+Initialize PostgreSQL database:
+
+```text
+% sudo -H /usr/local/etc/rc.d/postgresql initdb
+```
+
+Start PostgreSQL:
+
+```text
+% sudo -H service postgresql start
+```
+
+Install PGroonga from source:
+
+```text
+% curl -O https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
+% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz
+% cd pgroonga-{{ site.pgroonga_version }}
+% gmake HAVE_MSGPACK=1
+% sudo -H gmake install
+```
+
+Create a database:
+
+```text
+% sudo -H -u postgres 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`:
+
+```text
+% sudo -H -u postgres psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga;'
+```
+
+That's all!
+
+Try [tutorial](../tutorial/). You can understand more about PGroonga.

  Modified: install/index.md (+2 -0)
===================================================================
--- install/index.md    2017-04-11 10:28:39 +0900 (78e5bbc)
+++ install/index.md    2017-04-11 11:00:37 +0900 (864dd99)
@@ -39,6 +39,8 @@ See a document for your platform in the followings:
 
     * 7
 
+  * [FreeBSD](freebsd.html)
+
   * [OS X](os-x.html)
 
     * Homebrew

  Modified: install/source.md (+1 -1)
===================================================================
--- install/source.md    2017-04-11 10:28:39 +0900 (a345594)
+++ install/source.md    2017-04-11 11:00:37 +0900 (32f99ec)
@@ -24,7 +24,7 @@ Install PostgreSQL.
 Extract PGroonga source:
 
 ```text
-% wget http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
+% wget https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
 % tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz
 % cd pgroonga-{{ site.pgroonga_version }}
 ```

  Added: ja/install/freebsd.md (+65 -0) 100644
===================================================================
--- /dev/null
+++ ja/install/freebsd.md    2017-04-11 11:00:37 +0900 (6419e08)
@@ -0,0 +1,65 @@
+---
+title: FreeBSDにインストール
+---
+
+# FreeBSDにインストール
+
+このドキュメントはFreeBSDにPGroongaをインストールする方法を説明します。
+
+## インストール方法
+
+FreeBSDにPGroongaをインストールする方法は次の通りです。
+
+`pkg`でGroongaとPostgreSQLとpkg-configとGNU Makeをインストールします。
+
+```text
+% sudo pkg install -f groonga pkgconf postgresql{{ site.freebsd_postgresql_version }}-server
+```
+
+PostgreSQLを有効にするために次の内容の`/etc/rc.conf.d/postgresql`を作ります。
+
+`/etc/rc.conf.d/postgresql`:
+
+```text
+postgresql_enable="YES"
+```
+
+PostgreSQLのデータベースを初期化します。
+
+```text
+% sudo -H /usr/local/etc/rc.d/postgresql initdb
+```
+
+PostgreSQLを起動します。
+
+```text
+% sudo -H service postgresql start
+```
+
+ソースからPGroongaをインストールします。
+
+```text
+% curl -O https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
+% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz
+% cd pgroonga-{{ site.pgroonga_version }}
+% gmake HAVE_MSGPACK=1
+% sudo -H gmake install
+```
+
+データベースを作成します。
+
+```text
+% sudo -H -u postgres psql --command 'CREATE DATABASE pgroonga_test'
+```
+
+(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。詳細は[`GRANT USAGE ON SCHEMA pgroonga`](../reference/grant-usage-on-schema-pgroonga.html)を参照してください。)
+
+作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。
+
+```text
+% sudo -H -u postgres psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga;'
+```
+
+これで終わりです!
+
+[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。

  Modified: ja/install/index.md (+2 -0)
===================================================================
--- ja/install/index.md    2017-04-11 10:28:39 +0900 (02e4a33)
+++ ja/install/index.md    2017-04-11 11:00:37 +0900 (90bc049)
@@ -39,6 +39,8 @@ title: インストール
 
     * 7
 
+  * [FreeBSD](freebsd.html)
+
   * [OS X](os-x.html)
 
     * Homebrew

  Modified: ja/install/source.md (+1 -1)
===================================================================
--- ja/install/source.md    2017-04-11 10:28:39 +0900 (fac46d2)
+++ ja/install/source.md    2017-04-11 11:00:37 +0900 (152b56b)
@@ -24,7 +24,7 @@ PostgreSQLをインストールします。
 PGroongaのソースを展開します。
 
 ```text
-% wget http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
+% wget https://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
 % tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz
 % cd pgroonga-{{ site.pgroonga_version }}
 ```

  Modified: ja/tutorial/index.md (+0 -1)
===================================================================
--- ja/tutorial/index.md    2017-04-11 10:28:39 +0900 (9d6147b)
+++ ja/tutorial/index.md    2017-04-11 11:00:37 +0900 (8d2ab6d)
@@ -123,7 +123,6 @@ PGroongaは`LIKE`演算子をサポートしています。既存のSQLを変更
 
 ```sql
 SELECT * FROM memos WHERE content LIKE '%全文検索%';
-
 --  id |                      content
 -- ----+---------------------------------------------------
 --   2 | Groongaは日本語対応の高速な全文検索エンジンです。
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index