Follow the Steps you will finally install Sphinx successfully on your CentOS server.
1:yum install gcc
cd /usr/local
2:wget http://sphinxsearch.com/files/sphinx-2.0.2-1.beta.tar.gz
tar -zxvf sphinx-2.0.2-1.beta.tar.gz
3:whereis pg_config
4:yum install postgresql-devel
5: whereis pg_config
pg_config: /usr/bin/pg_config /usr/include/pg_config.h /usr/share/man/man1/pg_config.1.gz
6:cd sphinx-2.0.2-1.beta
7: ./configure --without-mysql --with-postgres /usr/bin/pg_config
8:yum install g++
9:make && make install
10:cp /usr/local/etc/sphinx-min.conf.in /usr/local/etc/sphinx.conf
11: cd /usr/local/etc/
vim sphinx.conf
12:do the changes as required
database pgsql
database user
database name
database password
port: 5432
13: save and quit.
1:yum install gcc
cd /usr/local
2:wget http://sphinxsearch.com/files/sphinx-2.0.2-1.beta.tar.gz
tar -zxvf sphinx-2.0.2-1.beta.tar.gz
3:whereis pg_config
4:yum install postgresql-devel
5: whereis pg_config
pg_config: /usr/bin/pg_config /usr/include/pg_config.h /usr/share/man/man1/pg_config.1.gz
6:cd sphinx-2.0.2-1.beta
7: ./configure --without-mysql --with-postgres /usr/bin/pg_config
8:yum install g++
9:make && make install
10:cp /usr/local/etc/sphinx-min.conf.in /usr/local/etc/sphinx.conf
11: cd /usr/local/etc/
vim sphinx.conf
12:do the changes as required
database pgsql
database user
database name
database password
port: 5432
13: save and quit.
14: /usr/local/etc/bin/indexer --all
searchd start
thats it.
No comments:
Post a Comment