The easiest way to install Manticore in RedHat/Centos is by using our YUM repository:
Install the repository:
sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpmThen install Manticore Search:
sudo yum install manticore manticore-columnar-lib(you can skip manticore-columnar-lib - package for the
Manticore
Columnar Library, if you are sure you don’t need it).
If you prefer “Nightly” (development) versions do:
sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm
sudo yum --enablerepo manticore-dev install manticore manticore-columnar-libYou can also download standalone rpm files from our site and
install them using tools rpm or yum.
If you plan to use indexer
to create indexes from external sources, you’ll need to make sure you
have installed corresponding client libraries in order to make available
of indexing sources you want. The line below will install all of them at
once; feel free to use it as is, or to reduce it to install only
libraries you need (for only mysql sources - just
mysql-libs should be enough, and unixODBC is not
necessary).
sudo yum install mysql-libs postgresql-libs expat unixODBCIn CentOS Stream 8 you may need to run:
dnf install mariadb-connector-c
if you get error sql_connect: MySQL source wasn't initialized.
Wrong name in dlopen? trying to build a plain index from
MySQL.
The lemmatizer requires Python 3.9+. Make sure you have it
installed and that it’s configured with
--enable-shared.
Here’s how to install Python 3.9 and the Ukrainian lemmatizer in Centos 7/8:
# 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-ukAfter you have all installed make sure you have the following in your Manticore Search configuration file (/etc/manticoresearch/manticore.conf by default):
common {
plugin_dir = /usr/local/lib/manticore/
}