Error message:
sh setup.sh
+==========================================+
| Welcome to setup xunsearch(full) |
| 欢迎使用 xunsearch (完整版) 安装程序 |
+------------------------------------------+
| Follow the on-screen instructions please |
| 请按照屏幕上的提示操作以完成安装 |
+==========================================+
Please specify the installation directory
请指定安装目录 (默认为中括号内的值)
[/www/server/xunsearch]:
Confirm the installation directory
请确认安装目录:/www/server/xunsearch [Y/n]
Checking scws ... 1.2.3
Checking scws dict ... ok
Checking libuuid ... yes: /usr
Checking xapian-core-scws ... 1.4.20
Checking libevent ... no
Installing libevent (2.0.21-stable) ...
Extracting libevent package ...
Configuring libevent ...
Compiling & installing libevent ...
-----
| ^~
bufferevent_openssl.c: At top level:
bufferevent_openssl.c:228:19: error: storage size of 'methods_bufferevent' isn't known
228 | static BIO_METHOD methods_bufferevent = {
| ^~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:793: bufferevent_openssl.lo] Error 1
make[2]: Leaving directory '/root/xunsearch-full-1.4.17/libevent-2.0.21-stable'
make[1]: *** [Makefile:857: install-recursive] Error 1
make[1]: Leaving directory '/root/xunsearch-full-1.4.17/libevent-2.0.21-stable'
make: *** [Makefile:1182: install] Error 2
-----
ERROR: failed to compile libevent, see 'setup.log' for more detailThe Error2 encountered during the installation of XunSou is, upon testing, primarily caused by a mismatch between the Linux version and the libeven version required for XunSou installation.
Most commonly used Linux distributions currently ship OpenSSL version 1.1.0 or later; however, the installation directory of the XunSearch package contains libeven 2.0.x. This requires OpenSSL version <1.1.0; therefore, this version discrepancy can cause the libeven error (Error 2) during the installation of XunSearch.
The solution involves upgrading XunSearch to version libeven 2.0.x to achieve consistent matching.
Method one:
1. Download the libevent 2.1.12 installation package and upload it to the xunsearch installation folder;
2. Unzip using libevent (run the following command or use a graphical unzipping tool)
tar -zxvf libevent-2.1.12-stable.tar.gz3. Compress the file into BZ2 format – this is a format supported by the XunSearch installation package (use the following command or the visual compression tool).
tar -cjf libevent-2.1.12-stable.tar.bz2 libevent-2.1.12-stable4. Copy the file to the `packages` folder within `xunsearch` (use the following command or perform a visual copy).
cp libevent-2.1.12-stable.tar.bz2 xunsearch-full-1.4.15/packages/5. Remove the built-in installation package for XunSearch(Use the following command or the visual deletion tool)
cd xunsearch-full-1.4.15/packages/ rm -f libevent-2.0.X6. Simply rerun the XunSearch installation command.
./setup.shMethod 2:
I have already modified the Xunsearch package as described in the above steps: simply upload it to the root directory, extract it, and then run the command.
cd xunsearch-full-1.4.17
sh setup.shBackup Package Link:
+=================================================+
| Installation completed successfully, Thanks you |
| 安装成功,感谢选择和使用 xunsearch |
+-------------------------------------------------+
| 说明和注意事项: |
| 1. 开启/重新开启 xunsearch 服务程序,命令如下: |
| /www/server/xunsearch/bin/xs-ctl.sh restart
| 强烈建议将此命令写入服务器开机脚本中 |
| |
| 2. 所有的索引数据将被保存在下面这个目录中: |
| /www/server/xunsearch/data
| 如需要转移到其它目录,请使用软链接。 |
| |
| 3. 您现在就可以在我们提供的开发包(SDK)基础上 |
| 开发您自己的搜索了。 |
| 目前只支持 PHP 语言,参见下面文档: |
| /www/server/xunsearch/sdk/php/README
+=================================================+