Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the main program installation directory.
cd /path/to/kraken2
- Decompress the installation package.
unzip kraken2-master.zip
- Modify the source code.
vi src/Makefile
Add -march=armv8-a -fsigned-char:

vi src/hyperloglogpuls.cc
Modify lines 46 to 50 as follows:
#ifdef WIN32 #include <intrin.h> #define __builtin_clz( x ) _lzcnt( x ) #define __builtin_clzl( x ) _lzcnt64( x ) #elif defined(__aarch64__) // Suggestion: Add code that adapts to the Kunpeng platdorm. #endif

- Perform the compilation and installation.
sh install_kraken2.sh /path/to/kraken2
Parent topic: Kraken2 Porting Guide (CentOS 8.2)