Denbun POP version Manual
User's Manual | Administrator's Manual | Installation Guide | Initial Settings Guide
Back to Menu
 

Installing and configuring the full Japanese text search module (textsearch-ja)

textsearch-ja is a full Japanese text search which uses Morphological Analysis.
Please refer the textsearch-ja web site(http://textsearch-ja.projects.postgresql.org/index-ja.html) for more information.

Please refer the system requirements for the version of textsearch-ja that Denbun supports.
1. Expanding the package
Expand the file you transferred by FTP. In this example, it assumes that the file exists in "/home/guest" directory.

[root@xxxxxx ~]# cd /usr/local/src/postgresql-8.3.5/contrib
[root@xxxxxx contrib]# tar zxvf /home/guest/textsearch_ja-8.4.0.tar.gz

After the expansion, a directory named "textsearch_ja" is created in "/usr/local/src/postgresql-8.3.5/contrib" directory.
2. Install the package
Make the package.
User GNU make to make the package.
To use make, move to the directory where you expand the sources.
[root@xxxxxx contrib]# cd /usr/local/src/postgresql-8.3.5/contrib/textsearch_ja
[root@xxxxxx textsearch_ja]# gmake
      .
      .(Omitted)
      .
rm -f libtextsearch_ja.so.0
ln -s libtextsearch_ja.so.0.0 libtextsearch_ja.so.0
rm -f libtextsearch_ja.so
ln -s libtextsearch_ja.so.0.0 libtextsearch_ja.so
[root@xxxxxx textsearch_ja]#


Now, it is ready to install the package. This step requires the super user (root).
[root@xxxxxx textsearch_ja]# gmake install
      .
      .(Omitted)
      .
/bin/sh ../../config/install-sh -c -m 644 ./uninstall_textsearch_ja.sql '/usr/local/pgsql/share/contrib'
/bin/sh ../../config/install-sh -c -m 644 textsearch_ja.sql '/usr/local/pgsql/share/contrib'
/bin/sh ../../config/install-sh -c -m 755 libtextsearch_ja.so.0.0 '/usr/local/pgsql/lib/textsearch_ja.so'
[root@xxxxxx textsearch_ja]#


After the checking the installation, use gmake clean command to cleaning. This command deletes unnecessary files and makes free space.
[root@xxxxxx textsearch_ja]# gmake clean

 
Copyright (C) 2008-2011 NEOJAPAN,Inc. All Rights Reserved.