arm64编译安装manticoresearch教程

本人正在研究sphinx全文搜索引擎,发现sphinx3.x已经闭源开发。
一些大佬接收sphinx2.x代码,继续开源开发了manticoresearch全文搜索引擎
由于没有arm64版本的repo,我根据相关教程研究了一下manticoresearch编译
本文中manticoresearch是在arm64架构debian 10下编译的

apt-get update && apt-get install -y \
    libmariadb-dev-compat \
    libexpat-dev \
    libpq-dev \
    unixodbc-dev \
    flex \
    bison \
    git \
    build-essential \
    libjemalloc-dev \
    libssl-dev \
    wget 
DISTR=buster
CXXFLAGS="-Wno-error=stringop-truncation"

boostminorver=75
wget https://boostorg.jfrog.io/artifactory/main/release/1.${boostminorver}.0/source/boost_1_${boostminorver}_0.tar.gz \
    && tar -zxf boost_1_${boostminorver}_0.tar.gz && rm boost_1_${boostminorver}_0.tar.gz \
    && cd boost_1_${boostminorver}_0 \
    && ./bootstrap.sh \
    && ./b2 install  --with-context --with-system \
    && cd .. && rm -rf boost_1_${boostminorver}_0
    
 apt-get install -y \
    ca-certificates \
    ninja-build
    
cmakever="3.20.5"
cmakesuff="${cmakever}-linux"
cd / \
    && wget https://github.com/Kitware/CMake/releases/download/v${cmakever}/cmake-${cmakesuff}-aarch64.tar.gz \
    && tar -zxf cmake-${cmakesuff}-aarch64.tar.gz \
    && rm cmake-${cmakesuff}-aarch64.tar.gz
PATH=$PATH:/cmake-${cmakesuff}-aarch64/bin  

git clone --branch '5.0.2' https://github.com/manticoresoftware/manticoresearch
cd  manticoresearch
mkdir build
cd  build
/cmake-${cmakesuff}-aarch64/bin/cmake ..
make  
cd src 
./searchd -v
./indexer | head

参考文章:
https://www.youtube.com/watch?v=mTKO4DxT65Q
https://github.com/manticoresoftware/manticoresearch/tree/manticore-5.0.2/dist/build_dockers/aarch64/buster
https://github.com/manticoresoftware/manticoresearch-php
https://github.com/manticoresoftware/manticoresearch-php/blob/master/docs/query.md

此处评论已关闭