stringtie2 error : ./samtools-0.1.18/bgzf.h:29:10: fatal error: zlib.h: No such file or directory
2
0
Entering edit mode
5.4 years ago
kousi31 ▴ 100

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 • 2.6k views
ADD COMMENT
0
Entering edit mode

usr/share/doc/zlib1g-dev is not a standard place where a compiler can find the libraries + include files. see https://stackoverflow.com/questions/558803

ADD REPLY
0
Entering edit mode

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}

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode
5.4 years ago
kousi31 ▴ 100

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

ADD COMMENT

Login before adding your answer.

Traffic: 1467 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6