在 RedHat 和 CentOS 上安装 Manticore 软件包

支持的发行版:

  • CentOS 8, RHEL 8, Oracle Linux 8, CentOS Stream 8
  • Amazon Linux 2
  • CentOS 9, RHEL 9, AlmaLinux 9
  • AlmaLinux 10, 其他基于 RHEL 10 的发行版

YUM 软件仓库

在 RedHat/CentOS 上安装 Manticore 最简单的方法是使用我们的 YUM 软件仓库:

安装软件仓库:

sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm

然后安装 Manticore Search:

sudo yum install manticore manticore-extra

如果您正在从旧版本升级到 Manticore 6,建议先移除旧的软件包,以避免因更新的软件包结构导致的冲突:

sudo yum remove manticore*

这不会移除您的数据和配置文件。

开发版软件包

如果您偏好使用“Nightly”(开发)版本,请执行:

sudo yum -y install https://repo.manticoresearch.com/manticore-repo.noarch.rpm && \
sudo yum -y --enablerepo manticore-dev install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-debuginfo manticore-tools-debuginfo manticore-columnar-lib-debuginfo  manticore-icudata manticore-galera manticore-galera-debuginfo manticore-language-packs manticore-load

独立的 RPM 软件包

要从 Manticore 软件仓库下载独立的 RPM 文件,请按照 https://manticoresearch.com/install/ 上的说明操作。

您可能需要的更多软件包

对于索引器

如果您计划使用 indexer 从外部源创建表,您需要确保已安装相应的客户端库,以便您想要使用的索引源可用。下面这行命令将一次性安装所有库;您可以原样使用它,或者缩减它只安装您需要的库(对于仅 MySQL 源 - 仅 mysql-libs 应该就足够了,并且 unixODBC 不是必需的)。

sudo yum install mysql-libs postgresql-libs expat unixODBC

在 CentOS Stream 8 中,您可能需要运行:

dnf install mariadb-connector-c

如果您在尝试从 MySQL 构建普通表时遇到错误 sql_connect: MySQL source wasn't initialized. Wrong name in dlopen?

乌克兰语词形还原器

该词形还原器需要 Python 3.9+。请确保您已安装它,并且它是使用 --enable-shared 配置的。

以下是在 Centos 8 中安装 Python 3.9 和乌克兰语词形还原器的方法:

# install Manticore Search and UK lemmatizer from YUM repository
yum -y install https://repo.manticoresearch.com/manticore-repo.noarch.rpm
yum -y install manticore manticore-lemmatizer-uk
# install packages needed for building Python
yum groupinstall "Development Tools" -y
yum install openssl-devel libffi-devel bzip2-devel wget -y
# download, build and install Python 3.9
cd ~
wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz
tar xvf Python-3.9.2.tgz
cd Python-3.9*/
./configure --enable-optimizations --enable-shared
make -j8 altinstall
# update linker cache
ldconfig
# install pymorphy2 and UK dictionary
pip3.9 install pymorphy2[fast]
pip3.9 install pymorphy2-dicts-uk
Last modified: August 28, 2025