Install lastz on Mac

  • download lastz
wget http://www.bx.psu.edu/miller_lab/dist/lastz-1.02.00.tar.gz
mv lastz-1.02.00.tar.gz ~/Software/src
tar zxfv lastz-1.02.00.tar.gz
cd lastz-distrib-1.02.00

  • edit install path
vim make-include.mak
# change installDir like this :
installDir = ${HOME}/Software/bin
  • install lastz
cd src
make
make install
  • troubleshooting
    In case of the following error occurred,

segment.c:1330:10: error: comparison of array ‘st->seg’ equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare]
if (st->seg == NULL) return;
~~~~^~~ ~~~~
1 error generated.
make: *** [segment.o] Error 1

just remove -Werror in the Makefile at this line:

definedForAll = -Wall -Wextra -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

Leave a Reply