Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the main program installation directory.
    cd /path/to/kraken2
  3. Decompress the installation package.
    unzip kraken2-master.zip
  4. 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

  5. Perform the compilation and installation.
    sh install_kraken2.sh /path/to/kraken2