1:cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
2: psql --version
psql (PostgreSQL) 8.4.7
3:whereis pg_config
pg_config
4:yum install postgresql84-devel
install compltely.
again check whereis pg_config
pg_config: /usr/bin/pg_config /usr/include/pg_config.h /usr/share/man/man1/pg_config.1.gz
5:cd /usr/local/
wget http://http://sphinxsearch.com/downloads/accept.php?file=sphinx-2.0.2-beta.tar.gz
6:tar -zxvf sphinx-2.tar.gz
7:cd sphinx-2
8:mkdir /usr/local/sphinx
9:./configure --without-mysql --with-pgsql /usr/bin/pg_config --prefix=/usr/local/sphinx
10: make
11: make install
12: cd /usr/local/sphinx/etc
cp sphinx-min.conf sphinx.conf
13: do the required changes in sphinx.conf
database pgsql
database user
database name
database password
port: 5432
14:run the sphinx searchd
/usr/local/etc/bin/indexer --all
searchd start
No comments:
Post a Comment