Compiling and Installing LASTZ
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the LASTZ directory:
cd /path/to/LASTZ
- Run the following command to decompress the LASTZ installation package:
tar -xvf lastz-1.04.03.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd lastz-1.04.03
- Run the following commands to modify the configuration file:
- Open Makefile.
vim src/Makefile
- 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} - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Run the following command to declare the home environment variable:
export HOME=/path/to/LASTZ
- Run the following commands to perform the compilation and installation:
make -j16 make install
- Run the following command to add the LASTZ environment variable:
export PATH=/path/to/LASTZ/lastz-distrib/bin:$PATH
- Run the following command to test the LASTZ environment:
lastz --help
The following figure shows that the environment is normal:

Parent topic: LASTZ 1.04.03 Porting Guide (CentOS 7.6)