[Groonga-commit] pgroonga/pgroonga.github.io at e4b4427 [master] Translate how to build and install from source

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 15 10:20:25 JST 2015


Kouhei Sutou	2015-10-15 10:20:25 +0900 (Thu, 15 Oct 2015)

  New Revision: e4b4427c5eed84b1a69ec6f507f4436669d85886
  https://github.com/pgroonga/pgroonga.github.io/commit/e4b4427c5eed84b1a69ec6f507f4436669d85886

  Message:
    Translate how to build and install from source

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

  Modified: _config.yml (+1 -0)
===================================================================
--- _config.yml    2015-10-15 09:57:18 +0900 (078adbc)
+++ _config.yml    2015-10-15 10:20:25 +0900 (1a5535c)
@@ -6,6 +6,7 @@ pgroonga_release_date: 2015-09-29
 copyright_year: 2015
 postgresql_short_version: 9.4
 windows_postgresql_version: 9.4.2-1
+windows_postgresql_short_version: 9.4
 exclude: ["Rakefile", "Gemfile", "Gemfile.lock"]
 description:
   en: Make PostgreSQL fast full text search platform for all languages!

  Added: _po/ja/install/source.po (+265 -0) 100644
===================================================================
--- /dev/null
+++ _po/ja/install/source.po    2015-10-15 10:20:25 +0900 (6041a7b)
@@ -0,0 +1,265 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"PO-Revision-Date: 2015-10-15 10:19+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 from source\n"
+"layout: en\n"
+"---"
+msgstr ""
+"---\n"
+"title: ソースからインストール\n"
+"layout: ja\n"
+"---"
+
+msgid "# Install from source"
+msgstr "# ソースからインストール"
+
+msgid "This document describes how to build and install PGroonga from source."
+msgstr "このドキュメントはソースからPGroongaをビルドしてインストールする方法を説明します。"
+
+msgid ""
+"Build and install instruction is different between on Windows and on non Windo"
+"ws. This document describes it separately."
+msgstr "ビルド・インストール方法はWindowsとWindows以外のプラットフォームで違います。このドキュメントではそれぞれ別々に説明します。"
+
+msgid ""
+"  * [On non Windows](#build-and-install-on-non-windows)\n"
+"  * [On Windows](#build-and-install-on-windows)"
+msgstr ""
+"  * [Windows以外のプラットフォーム](#build-and-install-on-non-windows)\n"
+"  * [Windows](#build-and-install-on-windows)"
+
+msgid "## On non Windows"
+msgstr "## Windows以外のプラットフォーム"
+
+msgid "Install PostgreSQL."
+msgstr "PostgreSQLをインストールします。"
+
+msgid ""
+"[Install Groonga](http://groonga.org/docs/install.html). We recommend that you"
+" use package. If you use package to install Groonga, install the following pac"
+"kage:"
+msgstr ""
+"[Groongaをインストール](http://groonga.org/ja/docs/install.html)します。パッケージを使うことをおすすめしま"
+"す。パッケージを使ってGroongaをインストールする場合は次のパッケージをインストールしてください。"
+
+msgid ""
+"  * `groonga-devel`: on CentOS\n"
+"  * `libgroonga-dev`: on Debian/GNU Linux and Ubuntu"
+msgstr ""
+"  * `groonga-devel`: CentOSの場合\n"
+"  * `libgroonga-dev`: Debian/GNU LinuxとUbuntuの場合"
+
+msgid "Extract PGroonga source:"
+msgstr "PGroongaのソースを展開します。"
+
+msgid ""
+"```text\n"
+"% wget http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_v"
+"ersion }}.tar.gz\n"
+"% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz\n"
+"% cd pgroonga-{{ site.pgroonga_version }}\n"
+"```"
+msgstr ""
+
+msgid "FYI: If you want to use the unreleased latest version, use the followings:"
+msgstr "参考:未リリースの最新版を使いたい場合は次のようにしてください。"
+
+msgid ""
+"```text\n"
+"% git clone https://github.com/pgroonga/pgroonga.git\n"
+"% cd pgroonga\n"
+"```"
+msgstr ""
+
+msgid "Build PGroonga:"
+msgstr "PGroongaをビルドします。"
+
+msgid ""
+"```text\n"
+"% make\n"
+"```"
+msgstr ""
+
+msgid "If you get any error, confirm the followings:"
+msgstr "エラーが発生した場合は次のことを確認してください。"
+
+msgid ""
+"  * `pg_config` command exists at any path in `PATH` environment variable.\n"
+"  * `pkg-config --list-all` includes `groonga`."
+msgstr ""
+"  * `PATH`環境変数内のパスに`pg_config`コマンドが存在していること。\n"
+"  * `pkg-config --list-all`に`groonga`が含まれていること。"
+
+msgid ""
+"If `pg_config` command doesn't exist, you may forget to install the developmen"
+"t package of PostgreSQL."
+msgstr "もし、`pg_config`コマンドが存在しない場合、PostgreSQLの開発用パッケージをインストールし忘れているかもしれません。"
+
+msgid ""
+"If `pkg-config --list-all` doesn't include `groonga`, you may forget to instal"
+"l the development package of Groonga. Or `groonga.pc` is installed into non-st"
+"andard directory. You can use `PKG_CONFIG_PATH` environment variable for the c"
+"ase."
+msgstr ""
+"もし、`pkg-config --list-all`に`groonga`が含まれていない場合、Groongaの開発用パッケージをインストールし忘れているかも"
+"しれません。あるいは、`groonga.pc`が標準的なディレクトリーではないディレクトリーにインストールされているのかもしれません。その場合は`PKG_C"
+"ONFIG_PATH`環境変数を使ってください。"
+
+msgid "Install PGroonga:"
+msgstr "PGroongaをインストールします。"
+
+msgid ""
+"```text\n"
+"% sudo make install\n"
+"```"
+msgstr ""
+
+msgid "Create a database:"
+msgstr "データベースを作成します。"
+
+msgid ""
+"```text\n"
+"% psql --command 'CREATE DATABASE pgroonga_test'\n"
+"```"
+msgstr ""
+
+msgid ""
+"(Normally, you should create a user for `pgroonga_test` database and use the u"
+"ser.)"
+msgstr "(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。)"
+
+msgid "Connect to the created database and execute `CREATE EXTENSION pgroonga`:"
+msgstr "作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。"
+
+msgid ""
+"```text\n"
+"% psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga;'\n"
+"```"
+msgstr ""
+
+msgid "That's all!"
+msgstr "これで終わりです!"
+
+msgid "Try [tutorial](../tutorial/). You can understand more about PGroonga."
+msgstr "[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。"
+
+msgid "## On Windows"
+msgstr "## Windows"
+
+msgid ""
+"Here is a list of required software to build and install PGroonga from source."
+" Install them:"
+msgstr "ソースからPGroongaをビルド・インストールするために必要なソフトウェアは次の通りです。これらをインストールしてください。"
+
+msgid ""
+"  * PostgreSQL (You can choose installer version or zip version.)\n"
+"    * [Installer version](http://www.enterprisedb.com/products-services-traini"
+"ng/pgdownload)\n"
+"    * [Zip version](http://www.enterprisedb.com/products-services-training/pgb"
+"indownload)\n"
+"  * [Microsoft Visual Studio Express 2013 for Windows Desktop](https://www.vis"
+"ualstudio.com/downloads/#d-2013-express)\n"
+"  * [CMake](http://www.cmake.org/)"
+msgstr ""
+"  * PostgreSQL(インストーラーバージョンでもzipバージョンでもどちらでも構いません。)\n"
+"    * [インストーラーバージョン](http://www.enterprisedb.com/products-services-training/pg"
+"download)\n"
+"    * [zipバージョン](http://www.enterprisedb.com/products-services-training/pgbind"
+"ownload)\n"
+"  * [Microsoft Visual Studio Express 2013 for Windows Desktop](https://www.vis"
+"ualstudio.com/downloads/#d-2013-express)\n"
+"  * [CMake](http://www.cmake.org/)"
+
+msgid ""
+"Download PGroonga source archive for Windows from packages.groonga.org. Source"
+" archive for Windows is zip file. Source archive for Windows bundles Groonga."
+msgstr ""
+"packages.groonga.orgからWindows用のPGroongaソースアーカイブをダウンロードしてください。Windows用のソースアーカイブ"
+"はzipファイルです。Windows用のソースアーカイブにはGroongaがバンドルされています。"
+
+msgid ""
+"  * http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_vers"
+"ion }}.zip"
+msgstr ""
+
+msgid "Extract the downloaded source archive and move to source folder:"
+msgstr "ダウンロードしたソースアーカイブを展開し、ソースフォルダーに移動してください。"
+
+msgid ""
+"```text\n"
+"> cd c:\\Users\\%USERNAME%\\Downloads\\pgroonga-{{ site.pgroonga_version }}\n"
+"```"
+msgstr ""
+
+msgid ""
+"Specify build option by `cmake`. The following command line is for building PG"
+"roonga for 64bit version PostgreSQL. If you want to build for 32bit version Po"
+"stgreSQL, use `-G \"Visual Studio 12 2013\"` parameter instead:"
+msgstr ""
+"`cmake`のビルドオプションを指定します。64bitバージョンのPostgreSQL用にPGroongaをビルドするためのコマンドラインは次の通りです。"
+"もし、32bitバージョンのPostgreSQL用にビルドしたい場合は、代わりに`-G \"Visual Studio 12 2013\"`パラメーターを使って"
+"ください。"
+
+msgid ""
+"```text\n"
+"pgroonga-{{ site.pgroonga_version }}> cmake . -G \"Visual Studio 12 2013 Win64\""
+" -DCMAKE_INSTALL_PREFIX=%POSTGRESQL_INSTALL_FOLDER%\n"
+"```"
+msgstr ""
+
+msgid ""
+"If you installed PostgreSQL by installer, `%POSTGRESQL_INSTALL_FOLDER%` is `C:"
+"\\Program Files\\PostgreSQL\\{{ site.windows_postgresql_short_version }}`."
+msgstr ""
+"インストーラーを使ってPostgreSQLをインストールした場合は`%POSTGRESQL_INSTALL_FOLDER%`は`C:\\Program Fil"
+"es\\PostgreSQL\\{{ site.windows_postgresql_short_version }}`になります。"
+
+msgid ""
+"If you installed PostgreSQL by zip, `%POSTGRESQL_INSTALL_FOLDER%` is `%POSTGRE"
+"SQL_ZIP_EXTRACTED_FOLDER%\\pgsql`."
+msgstr ""
+"zipバージョンのPostgreSQLをインストールした場合は`%POSTGRESQL_INSTALL_FOLDER%`は`%PostgreSQLのzipを"
+"展開したフォルダー%\\pgsql`になります。"
+
+msgid ""
+"```text\n"
+"pgroonga-{{ site.pgroonga_version }}> cmake --build . --config Release\n"
+"```"
+msgstr ""
+
+msgid ""
+"Install PGroonga. You may be required administrator privilege. For example, yo"
+"u installed PostgreSQL by installer, you will be required administrator privil"
+"ege."
+msgstr ""
+"PGroongaをインストールします。管理者権限が必要かもしれません。たとえば、インストーラーを使ってPostgreSQLをインストールした場合は管理者権限"
+"が必要でしょう。"
+
+msgid ""
+"```text\n"
+"pgroonga-{{ site.pgroonga_version }}> cmake --build . --config Release --targe"
+"t Install\n"
+"```"
+msgstr ""
+
+msgid ""
+"```text\n"
+"postgres=# CREATE DATABASE pgroonga_test;\n"
+"```"
+msgstr ""
+
+msgid ""
+"```text\n"
+"postgres=# \\c pgroonga_test\n"
+"pgroonga_test=# CREATE EXTENSION pgroonga;\n"
+"```"
+msgstr ""

  Modified: install/source.md (+3 -3)
===================================================================
--- install/source.md    2015-10-15 09:57:18 +0900 (50f5ed8)
+++ install/source.md    2015-10-15 10:20:25 +0900 (1592161)
@@ -44,7 +44,7 @@ Build PGroonga:
 
 If you get any error, confirm the followings:
 
-  * `pg_config` command exists in `PATH` environment variable.
+  * `pg_config` command exists at any path in `PATH` environment variable.
   * `pkg-config --list-all` includes `groonga`.
 
 If `pg_config` command doesn't exist, you may forget to install the development package of PostgreSQL.
@@ -53,7 +53,7 @@ If `pkg-config --list-all` doesn't include `groonga`, you may forget to install
 
 Install PGroonga:
 
-```
+```text
 % sudo make install
 ```
 
@@ -101,7 +101,7 @@ Specify build option by `cmake`. The following command line is for building PGro
 pgroonga-{{ site.pgroonga_version }}> cmake . -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=%POSTGRESQL_INSTALL_FOLDER%
 ```
 
-If you installed PostgreSQL by installer, `%POSTGRESQL_INSTALL_FOLDER%` is `C:\Program Files\PostgreSQL\9.4`.
+If you installed PostgreSQL by installer, `%POSTGRESQL_INSTALL_FOLDER%` is `C:\Program Files\PostgreSQL\{{ site.windows_postgresql_short_version }}`.
 
 If you installed PostgreSQL by zip, `%POSTGRESQL_INSTALL_FOLDER%` is `%POSTGRESQL_ZIP_EXTRACTED_FOLDER%\pgsql`.
 

  Added: ja/install/source.md (+137 -0) 100644
===================================================================
--- /dev/null
+++ ja/install/source.md    2015-10-15 10:20:25 +0900 (246642d)
@@ -0,0 +1,137 @@
+---
+title: ソースからインストール
+layout: ja
+---
+
+# ソースからインストール
+
+このドキュメントはソースからPGroongaをビルドしてインストールする方法を説明します。
+
+ビルド・インストール方法はWindowsとWindows以外のプラットフォームで違います。このドキュメントではそれぞれ別々に説明します。
+
+  * [Windows以外のプラットフォーム](#build-and-install-on-non-windows)
+  * [Windows](#build-and-install-on-windows)
+
+## Windows以外のプラットフォーム
+
+PostgreSQLをインストールします。
+
+[Groongaをインストール](http://groonga.org/ja/docs/install.html)します。パッケージを使うことをおすすめします。パッケージを使ってGroongaをインストールする場合は次のパッケージをインストールしてください。
+
+  * `groonga-devel`: CentOSの場合
+  * `libgroonga-dev`: Debian/GNU LinuxとUbuntuの場合
+
+PGroongaのソースを展開します。
+
+```text
+% wget http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.tar.gz
+% tar xvf pgroonga-{{ site.pgroonga_version }}.tar.gz
+% cd pgroonga-{{ site.pgroonga_version }}
+```
+
+参考:未リリースの最新版を使いたい場合は次のようにしてください。
+
+```text
+% git clone https://github.com/pgroonga/pgroonga.git
+% cd pgroonga
+```
+
+PGroongaをビルドします。
+
+```text
+% make
+```
+
+エラーが発生した場合は次のことを確認してください。
+
+  * `PATH`環境変数内のパスに`pg_config`コマンドが存在していること。
+  * `pkg-config --list-all`に`groonga`が含まれていること。
+
+もし、`pg_config`コマンドが存在しない場合、PostgreSQLの開発用パッケージをインストールし忘れているかもしれません。
+
+もし、`pkg-config --list-all`に`groonga`が含まれていない場合、Groongaの開発用パッケージをインストールし忘れているかもしれません。あるいは、`groonga.pc`が標準的なディレクトリーではないディレクトリーにインストールされているのかもしれません。その場合は`PKG_CONFIG_PATH`環境変数を使ってください。
+
+PGroongaをインストールします。
+
+```text
+% sudo make install
+```
+
+データベースを作成します。
+
+```text
+% psql --command 'CREATE DATABASE pgroonga_test'
+```
+
+(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。)
+
+作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。
+
+```text
+% psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga;'
+```
+
+これで終わりです!
+
+[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。
+
+## Windows
+
+ソースからPGroongaをビルド・インストールするために必要なソフトウェアは次の通りです。これらをインストールしてください。
+
+  * PostgreSQL(インストーラーバージョンでもzipバージョンでもどちらでも構いません。)
+    * [インストーラーバージョン](http://www.enterprisedb.com/products-services-training/pgdownload)
+    * [zipバージョン](http://www.enterprisedb.com/products-services-training/pgbindownload)
+  * [Microsoft Visual Studio Express 2013 for Windows Desktop](https://www.visualstudio.com/downloads/#d-2013-express)
+  * [CMake](http://www.cmake.org/)
+
+packages.groonga.orgからWindows用のPGroongaソースアーカイブをダウンロードしてください。Windows用のソースアーカイブはzipファイルです。Windows用のソースアーカイブにはGroongaがバンドルされています。
+
+  * http://packages.groonga.org/source/pgroonga/pgroonga-{{ site.pgroonga_version }}.zip
+
+ダウンロードしたソースアーカイブを展開し、ソースフォルダーに移動してください。
+
+```text
+> cd c:\Users\%USERNAME%\Downloads\pgroonga-{{ site.pgroonga_version }}
+```
+
+`cmake`のビルドオプションを指定します。64bitバージョンのPostgreSQL用にPGroongaをビルドするためのコマンドラインは次の通りです。もし、32bitバージョンのPostgreSQL用にビルドしたい場合は、代わりに`-G "Visual Studio 12 2013"`パラメーターを使ってください。
+
+```text
+pgroonga-{{ site.pgroonga_version }}> cmake . -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=%POSTGRESQL_INSTALL_FOLDER%
+```
+
+インストーラーを使ってPostgreSQLをインストールした場合は`%POSTGRESQL_INSTALL_FOLDER%`は`C:\Program Files\PostgreSQL\{{ site.windows_postgresql_short_version }}`になります。
+
+zipバージョンのPostgreSQLをインストールした場合は`%POSTGRESQL_INSTALL_FOLDER%`は`%PostgreSQLのzipを展開したフォルダー%\pgsql`になります。
+
+PGroongaをビルドします。
+
+```text
+pgroonga-{{ site.pgroonga_version }}> cmake --build . --config Release
+```
+
+PGroongaをインストールします。管理者権限が必要かもしれません。たとえば、インストーラーを使ってPostgreSQLをインストールした場合は管理者権限が必要でしょう。
+
+```text
+pgroonga-{{ site.pgroonga_version }}> cmake --build . --config Release --target Install
+```
+
+データベースを作成します。
+
+```text
+postgres=# CREATE DATABASE pgroonga_test;
+```
+
+(通常は`pgroonga_test`データベース用のユーザーを作ってそのユーザーを作るべきです。)
+
+作成したデータベースに接続し、`CREATE EXTENSION pgroonga`を実行します。
+
+```text
+postgres=# \c pgroonga_test
+pgroonga_test=# CREATE EXTENSION pgroonga;
+```
+
+これで終わりです!
+
+[チュートリアル](../tutorial/)を試してください。PGroongaについてもっと理解できるはずです。
-------------- next part --------------
HTML����������������������������...
Download 



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