Kouhei Sutou
null+****@clear*****
Tue May 26 23:26:52 JST 2015
Kouhei Sutou 2015-05-26 23:26:52 +0900 (Tue, 26 May 2015) New Revision: 973eb044d39f882f4d16ed4b38272690195fbb83 https://github.com/pgroonga/pgroonga.github.io/commit/973eb044d39f882f4d16ed4b38272690195fbb83 Message: Splitting install documents Added files: install/centos.md install/ubuntu.md install/windows.md Modified files: _config.yml install/index.md overview/index.md Modified: _config.yml (+1 -0) =================================================================== --- _config.yml 2015-05-26 22:52:47 +0900 (94dcfae) +++ _config.yml 2015-05-26 23:26:52 +0900 (9099a68) @@ -4,6 +4,7 @@ highlighter: pygments pgroonga_version: 0.5.0 pgroonga_release_date: 2015-04-29 copyright_year: 2015 +windows_postgresql_version: 9.4.1-3 exclude: ["Rakefile", "Gemfile", "Gemfile.lock"] description: A PostgreSQL plugin to use Groonga as index Added: install/centos.md (+106 -0) 100644 =================================================================== --- /dev/null +++ install/centos.md 2015-05-26 23:26:52 +0900 (67acf56) @@ -0,0 +1,106 @@ +--- +title: Install to CentOS +layout: en +--- + +# Install to CnetOS + +This document describes how to install PGroonga to CentOS. + +## Supported versions + +Here are supported CentOS versions: + + * [CentOS 5](#install-to-5-or-6) + * [CentOS 6](#install-to-5-or-6) + * [CentOS 7](#install-to-7) + +## How to install to CentOS 5 or CentOS 6 {#install-to-5-or-6} + +You can use the following instruction to install PGroonga to CentOS 5 or CentOS 6. + +Install `postgresql-pgroonga` package: + +```text +% sudo rpm -ivh http://yum.postgresql.org/9.4/redhat/rhel-$(rpm -qf --queryformat="%{VERSION}" /etc/redhat-release)-$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)/pgdg-centos94-9.4-1.noarch.rpm +% sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm +% sudo yum makecache +% sudo yum install -y postgresql94-pgroonga +``` + +If you want to use [MeCab](http://taku910.github.io/mecab/) based tokenizer, you also need to install `groonga-tokenizer-mecab` package: + +```text +% sudo yum install -y groonga-tokenizer-mecab +``` + +Run PostgreSQL: + +```text +% sudo -H /sbin/service postgresql-9.4 initdb +% sudo -H /sbin/chkconfig postgresql-9.4 on +% sudo -H /sbin/service postgresql-9.4 start +``` + +Create a database: + +```text +% sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test' +``` + +(Normally, you should create a user for `pgroonga_test` database and use the user.) + +Connect to the created database and execute `CREATE EXTENSION pgroonga`: + +```text +% sudo -u postgres -H psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga' +``` + +That's all! + +Try [tutorial](../tutorial/). You can understand more about PGroonga. + +## How to install to CentOS 7 {#install-to-7} + +You can use the following instruction to install PGroonga to CentOS 7. + +Install `postgresql-pgroonga` package: + +```text +% sudo rpm -ivh http://yum.postgresql.org/9.4/redhat/rhel-$(rpm -qf --queryformat="%{VERSION}" /etc/redhat-release)-$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)/pgdg-centos94-9.4-1.noarch.rpm +% sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm +% sudo yum makecache +% sudo yum install -y postgresql94-pgroonga +``` + +If you want to use [MeCab](http://taku910.github.io/mecab/) based tokenizer, you also need to install `groonga-tokenizer-mecab` package: + +```text +% sudo yum install -y groonga-tokenizer-mecab +``` + +Run PostgreSQL: + +```text +% sudo -H /usr/pgsql-9.4/bin/postgresql94-setup initdb +% sudo -H systemctl enable postgresql-9.4 +% sudo -H systemctl start postgresql-9.4 +``` + +Create a database: + +```text +% sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test' +``` + +(Normally, you should create a user for `pgroonga_test` database and use the user.) + +Connect to the created database and execute `CREATE EXTENSION pgroonga`: + +```text +% 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: install/index.md (+30 -2) =================================================================== --- install/index.md 2015-05-26 22:52:47 +0900 (b81ef3a) +++ install/index.md 2015-05-26 23:26:52 +0900 (ced4653) @@ -7,6 +7,35 @@ layout: en There are packages for major platforms. You can install PGroonga easily. +There are separated documents for these platforms. And there is a document for building PGroonga from source. + +Here are supported PostgreSQL versions: + + * 9.3 + * 9.4 + +If your PostgreSQL is older than them, you need to upgrade your PostgreSQL before you install PGroonga. + +See a document for your platform in the followings: + + * [Ubuntu](ubuntu.html) + * 14.10 + * 15.04 + * [CentOS](centos.html) + * 5 + * 6 + * 7 + * [Windows](windows.html) + * 32bit + PostgreSQL 9.4.1 + * 64bit + PostgreSQL 9.4.1 + +If you can't find your platform in the above list, [build and install from source](source.html). + + +# Install + +There are packages for major platforms. You can install PGroonga easily. + Here are supported PostgreSQL versions: * 9.3 @@ -71,8 +100,7 @@ If you can't find your platform in the above list, [build and install from sourc % sudo yum makecache % sudo yum install -y postgresql94-pgroonga -[MeCab](http://taku910.github.io/mecab/)ベースのトークナイザーを使いた -い場合は`groonga-tokenizer-mecab`パッケージもインストールします。 +If you want to use [MeCab](http://taku910.github.io/mecab/) based tokenizer, you also need to install `groonga-tokenizer-mecab` package: % sudo yum install -y groonga-tokenizer-mecab Added: install/ubuntu.md (+53 -0) 100644 =================================================================== --- /dev/null +++ install/ubuntu.md 2015-05-26 23:26:52 +0900 (1ab67ab) @@ -0,0 +1,53 @@ +--- +title: Install to Ubuntu +layout: en +--- + +# Install to Ubuntu + +This document describes how to install PGroonga to Ubuntu. + +## Supported versions + +Here are supported Ubuntu versions: + + * Ubuntu 14.10 + * Ubuntu 15.04 + +## How to install + +You can use the following instruction to install PGroonga to all supported Ubuntu versions. + +Install `postgresql-server-9.4-pgroonga` package: + +```text +% sudo apt-get install -y software-properties-common +% sudo add-apt-repository -y universe +% sudo add-apt-repository -y ppa:groonga/ppa +% sudo apt-get update +% sudo apt-get install -y postgresql-server-9.4-pgroonga +``` + +If you want to use [MeCab](http://taku910.github.io/mecab/) based tokenizer, you also need to install `groonga-tokenizer-mecab` package: + +```text +% sudo apt-get install -y groonga-tokenizer-mecab +``` + +Create a database: + +```text +% sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test' +``` + +(Normally, you should create a user for `pgroonga_test` database and use the user.) + +Connect to the created database and execute `CREATE EXTENSION pgroonga`: + +```text +% sudo -u postgres -H psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga' +``` + +That's all! + +Try [tutorial](../tutorial/). You can understand more about PGroonga. Added: install/windows.md (+46 -0) 100644 =================================================================== --- /dev/null +++ install/windows.md 2015-05-26 23:26:52 +0900 (029f23b) @@ -0,0 +1,46 @@ +--- +title: Install to Windows +layout: en +--- + +# Install to Windows + +This document describes how to install PGroonga to Windows. + +## Supported versions + +You can use both 32bit version Windows and 64bit version Windows. You can use any Windows that are supported by PostgreSQL. + +## How to install + +Install PostgreSQL {{ site.windows_postgresql_version }}. You can use both [installer version](http://www.enterprisedb.com/products-services-training/pgdownload) and [zip version](http://www.enterprisedb.com/products-services-training/pgbindownload). + +Download PGroonga package: + + * [32bit version](http://packages.groonga.org/windows/pgroonga/pgroonga-{{ site.pgroonga_version }}-postgresql-{{ site.windows_postgresql_version }}-x86.zip) + * [64bit version](http://packages.groonga.org/windows/pgroonga/pgroonga-{{ site.pgroonga_version }}-postgresql-{{ site.windows_postgresql_version }}-x64.zip) + +Extract the downloaded PGroonga package. You need to specify PostgreSQL folder as extract target folder. + +If you installed installer version PostgreSQL, `C:\Program Files\PostgreSQL\9.4` is the extract target folder. + +If you installed zip version PostgreSQL, `%POSTGRESQL_ZIP_EXTRACTED_FOLDER%\pgsql` is the extract target folder. + +Create a database: + +```text +postgres=# CREATE DATABASE pgroonga_test; +``` + +(Normally, you should create a user for `pgroonga_test` database and use the user.) + +Connect to the created database and execute `CREATE EXTENSION pgroonga`: + +```text +postgres=# \c pgroonga_test +pgroonga_test=# CREATE EXTENSION pgroonga; +``` + +That's all! + +Try [tutorial](../tutorial/). You can understand more about PGroonga. Modified: overview/index.md (+1 -1) =================================================================== --- overview/index.md 2015-05-26 22:52:47 +0900 (e6a6b58) +++ overview/index.md 2015-05-26 23:26:52 +0900 (f6f5492) @@ -39,4 +39,4 @@ PGroonga is based on [textsearch_groonga](http://textsearch-ja.projects.pgfoundr ## The next step -Try [tutorial](../tutorial/). You can understand more about PGroonga. +Interested? [Install](../install/) PGroonga and try [tutorial](../tutorial/). You can understand more about PGroonga. -------------- next part -------------- HTML����������������������������...Download