Previous   Next 

Tsearch2 README File Example: In More Detail

Install PostgreSQL.

tar -xzf postgresql-7.4.3.tar.gz
cd postgresql-7.4.3
./configure [OPTIONS]
make;
su;
make install;
exit;

Without configure options, this will install postgresql into /usr/local/pgsql.

Install tsearch2 into PostgreSQL.

cd contrib/tsearch2;
make;
su;
make install;
exit;
  • If you installed PostgreSQL using RPMs, you can install Tsearch2 by installing the PostgreSQL 'contrib' RPM.
  • If you don't use RPMs, configure must be run first in the postgresql-7.4.3 root directory. Tsearch2 needs to know where to install its files.
  • If you don't have the source code used to compile PostgreSQL, download the source code matching your version and run configure with the appropriate options.
  • If you don't know what configure options were used to install PostgreSQL, run 'pg_config --configure'.