Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing LASTZ

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to go to the LASTZ directory:
    cd /path/to/LASTZ
  3. Run the following command to decompress the LASTZ installation package:
    tar -xvf lastz-1.04.03.tar.gz
  4. Run the following command to go to the directory generated after the decompression:
    cd lastz-1.04.03
  5. Run the following commands to modify the configuration file:
    1. Open Makefile.
      vim src/Makefile
    2. Press i to enter the insert mode and change the values of CC, definedForAll, and CFLAGS.
      CC=/path/to/GNU/bin/gcc
      definedForAll = -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
      CFLAGS = -O3 -march=armv8.2-a -mtune=tsv110 -flto ${definedForAll} ${VERSION_FLAGS}
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following command to declare the home environment variable:
    export HOME=/path/to/LASTZ
  7. Run the following commands to perform the compilation and installation:
    make -j16
    make install
  8. Run the following command to add the LASTZ environment variable:
    export PATH=/path/to/LASTZ/lastz-distrib/bin:$PATH
  9. Run the following command to test the LASTZ environment:
    lastz --help

    The following figure shows that the environment is normal: