Confirm the installation directory
请确认安装目录:/usr/local/xunsearch [Y/n]y
Checking scws ... no
Installing scws (1.2.3) ...
Extracting scws package ...
Configuring scws ...
Compiling & installing scws ...
Checking scws dict ... no
Extracting scws dict file ...
Checking libuuid ... no, try to install it
Extracting libuuid package ...
Configuring libuuid ...
Compiling & installing libuuid ...
Checking xapian-core-scws ... no
Installing xapian-core-scws (1.2.22) ...
Extracting xapian-core-scws package ...
Configuring xapian-core-scws ...
-----
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ is a working C++ compiler... no
configure: error:
*** You need a working C++ compiler to compile Xapian, but configure failed to
*** find one. If you have a working C++ compiler, you can tell configure where
*** to find it by invoking it like so:
***
*** ./configure CXX=/opt/bin/c++
-----
ERROR: failed to configure xapian-core-scws, see 'setup.log' for more detail
解决方案 安装g++
yum install gcc-c++
Checking scws ... 1.2.3
Checking scws dict ... ok
Checking libuuid ... yes: /usr/local/xunsearch
Checking xapian-core-scws ... no
Installing xapian-core-scws (1.2.22) ...
Extracting xapian-core-scws package ...
Configuring xapian-core-scws ...
-----
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking whether sys_errlist is declared... yes
checking whether _sys_errlist is declared... yes
checking whether sys_nerr is declared... yes
checking whether _sys_nerr is declared... yes
checking for working ISO C90 conforming snprintf... snprintf
checking for zlib.h... no
configure: error: zlib.h not found - required for brass, chert and flint (you may need to install the zlib1g-dev or zlib-devel package)
-----
ERROR: failed to configure xapian-core-scws, see 'setup.log' for more detail
解决方法 安装 zlib模块
#0 ../lib/XS.php(2363): XSServer->connect()
#1 ../lib/XS.php(2348): XSServer->open('8383')
#2 ../lib/XS.php(370): XSServer->__construct('8383', Object(XS))
#3 ../lib/XS.php(262): XS->getIndex()
#4 Indexer.php(157): XSComponent->__get('index')
#5 {main}
bin/xs-ctl.sh -b local start // 监听在本地回环地址 127.0.0.1 上
bin/xs-ctl.sh -b inet start // 监听在所有本地 IP 地址上
bin/xs-ctl.sh -b a.b.c.d start // 监听在指定 IP 上 我是不在同一服务器上,因此我选择这一种(bin/xs-ctl.sh -b 195.241.23.32 start)
bin/xs-ctl.sh -b unix start