Cmake greater than 3.11 is not available via yum install cmake. that gives only 2.8 version. The only option is to use a precompiled Cmake. but even that does not allow to fully complete installation is I use a specific installation directory (not the default /usr/local , but /usr/local/manticore.
These are the steps(https is removed on all wgets to by pass forum filtering):
In /opt folder:
wget -c manticore-3.5.2-200722-6903305-release.tar.gz
tar -zxf manticore-3.5.2-.tar.gz
(Stemmer download could be added to documentation for installs as this part is missing)
tar xvf libstemmer_c.tgz
yum install libmariadb-dev mariadb-devel libmysqlclient-dev mysql-devel
yum install re2
yum install gcc gcc-c++ make expat-devel libicu-devel openssl-devel boost-devel rpm-build systemd-units
yum install cmake (if installs lower than 3.11 version use:
Get precompiled Cmake
tar -zxf cmake-3.19.0-rc3-Linux-x86_64.tar.gz
ln -s /opt/cmake-3.19.0-rc3-Linux-x86_64/bin/cmake /bin/cmake
as /bin is a symlink to /usr/bin/ and is the same as doing this:
ln -s /opt/cmake-3.19.0-rc3-Linux-x86_64/bin/cmake /usr/bin/cmake
In any case, as mentioned I installed a precompiled version of cmake 3.19 to /opt/cmake-3.19.0-rc3-Linux-x86_64 and created a link for it to /bin/cmake simply to ensure any other calls used the correct version as well, as you’ve already seen.
The installation directory is usually left at its default, which is /usr/local. Installing software here ensures that it is automatically available to users. It is possible to specify a different installation directory by adding -DCMAKE_INSTALL_PREFIX=/usr/local/manticore to the CMake command line.
As for precompiling the configuration, this was actually done in the build/ directory with
mkdir build && cd build
cmake -S /opt/manticore-3.5.2-201002-8b2c175-release-source -DWITH_MYSQL=1 -DWITH_RE2=1 -DWITH_STEMMER=1 -DCMAKE_INSTALL_PREFIX=/usr/local/manticore
to set the source as was recommended in the documentation combined with the flags.
Create a folder /usr/local/manticore
After cmake completed the precompile, within the same build/ directory to actually install was done with:
and this is where it fails:
[ 82%] Building CXX object src/CMakeFiles/libsphinx.dir/hazard_pointer.cpp.o
[ 83%] Building CXX object src/CMakeFiles/libsphinx.dir/task_info.cpp.o
[ 83%] Building CXX object src/CMakeFiles/libsphinx.dir/mini_timer.cpp.o
[ 84%] Linking CXX static library liblibsphinx.a
[ 84%] Built target libsphinx
src/CMakeFiles/searchd.dir/build.make:177: *** src/CMakeFiles/indexer.dir/build.make:102: *** target pattern contains no
%'. Stop. target pattern contains no %’. Stop.
src/CMakeFiles/indextool.dir/build.make:102: *** target pattern contains no
%'. Stop. make: *** [src/CMakeFiles/searchd.dir/all] Error 2 make: *** Waiting for unfinished jobs.... make: *** [src/CMakeFiles/indexer.dir/all] Error 2 make: *** [src/CMakeFiles/indextool.dir/all] Error 2 src/CMakeFiles/spelldump.dir/build.make:102: *** target pattern contains no %’. Stop.
make: *** [src/CMakeFiles/spelldump.dir/all] Error 2
make: *** [all] Error 2
Any ideas on how to fix this?
And I am really sorry for forum filters trying to tell me i can only put 2 links on my first post.