$./configure --prefix=/data/zhw/dpsearch --with-pgsql --with-extra-charsets=all
configure: error: Unable to find any supported crypto library.
$ sudo yum install openssl openssl-devel
解决
configure: error: Unable to find libpq-fe.h
$ sudo yum install postgresql-devel
解决
以postgres 登录 创建数据库
$createdb search
$psql
postgres=# create user zhw with password '123456';
以zhw用户操作
创建编辑配置文件
$cd /data/zhw/dpsearch/etc
$cp indexer.conf-dist indexer.conf
编辑配置文件,去掉mysql行,换成postgres行
#DBAddr mysql://foo:bar@localhost/search/?dbmode=cache
DBAddr pgsql://zhw:123456@localhost/search/?dbmode=cache
$cp $ cp search.htm-dist search.htm
$ cp stopwords.conf-dist stopwords.conf
$ cp langmap.conf-dist langmap.conf
编辑langmap.conf 去掉中文日文韩文相关行注释
$cp sections.conf-dist sections.conf
$cd /data/zhw/dpsearch/sbin
$ ./indexer -Ecreate
$ cp search.cgi ~/apache/cgi-bin/