This is a test version of Biostars. For the public version, visit https://www.biostars.org.
stringtie2 error : ./samtools-0.1.18/bgzf.h:29:10: fatal error: zlib.h: No such file or directory

Hi all,

I am trying to install stringtie2

I used the commands

git clone https://github.com/mpertea/stringtie2
cd stringtie2
make release

I got the error ./samtools-0.1.18/bgzf.h:29:10: fatal error: zlib.h: No such file or directory.

zlib.h is already installed in my system and it is in usr/share/doc/zlib1g-dev.
How to install the software?

software error stringtie2

I couldn't use -I option as make release -I /usr/share/doc/zlib1g-dev/ because in the make file the -I is pointed towards /samtools-0.1.18. I tried editing -I in Make file, but itseems some other information needed for installing is also in the samtools folder

First few lines from make file

BAM := ./samtools-0.1.18
GDIR := ./gclib

--

INCDIRS := -I. -I${GDIR} -I${BAM}

2 answers

I did not understand the post well. However trying sudo make release worked for me. Thank you for your responses.

Use conda: https://anaconda.org/bioconda/stringtie No need to compile from source.

Log in to answer this question.