mpetri / FM-Index

FM-Index full-text index implementation using RRR Wavelet trees (libcds) and fast suffix sorting (libdivsufsort) including experimental results.
GNU General Public License v3.0
98 stars 25 forks source link

fatal error: divsufsort.h: No such file or directory #4

Closed enamcse closed 7 years ago

enamcse commented 7 years ago

While tried to install with the command make, it gives the following error:

cd libdivsufsort;cmake .;make;cd ..
/bin/sh: 1: cmake: not found
make[1]: Entering directory `/home/manetsus/Desktop/FM-Index-master/libdivsufsort'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/home/manetsus/Desktop/FM-Index-master/libdivsufsort'
g++ -I ./libcds/includes/ -I ./libdivsufsort/include/ -c -W -Wall -O3 FM.cpp -o FM.o
FM.cpp:19:24: fatal error: divsufsort.h: No such file or directory
 #include "divsufsort.h"
                        ^
compilation terminated.
make: *** [FM.o] Error 1

UPD: After installing cmake, the following errors are coming:

cd libdivsufsort;cmake .;make;cd ..
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/home/manetsus/Desktop/FM-Index-master/libdivsufsort
CMake Error: Error executing cmake::LoadCache(). Aborting.

make[1]: Entering directory `/home/manetsus/Desktop/FM-Index-master/libdivsufsort'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/home/manetsus/Desktop/FM-Index-master/libdivsufsort'
g++ -I ./libcds/includes/ -I ./libdivsufsort/include/ -c -W -Wall -O3 FM.cpp -o FM.o
FM.cpp:19:24: fatal error: divsufsort.h: No such file or directory
 #include "divsufsort.h"
                        ^
compilation terminated.
make: *** [FM.o] Error 1
enamcse commented 7 years ago

Issue resolved by following this INSTALL file first.