cd /path/to/kraken2
unzip kraken2-master.zip
vi src/Makefile
此处添加“-march=armv8-a -fsigned-char”:
vi src/hyperloglogpuls.cc
第46-50行修改为下图所示:
#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
sh install_kraken2.sh /path/to/kraken2