hello everybody!
i tried installing samtools in Ubuntu (64bit) but failed. here are the error messages:
-------------------------------------------------------------------
root@ubuntu:/home/user/samtools-0.1.16# make
make[1]: Entering directory `/home/lzl/samtools-0.1.16'
make[2]: Entering directory `/home/lzl/samtools-0.1.16'
gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
bgzf.h:29:18: error: zlib.h: No such file or directory
bgzf.c: In function ‘open_write’:
bgzf.c:186: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
bgzf.c:186: error: (Each undeclared identifier is reported only once
bgzf.c:186: error: for each function it appears in.)
bgzf.c: In function ‘deflate_block’:
bgzf.c:297: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:297: error: expected ‘;’ before ‘zs’
bgzf.c:298: error: ‘zs’ undeclared (first use in this function)
bgzf.c:305: warning: implicit declaration of function ‘deflateInit2’
bgzf.c:305: error: ‘Z_DEFLATED’ undeclared (first use in this function)
bgzf.c:306: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in this function)
bgzf.c:307: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:311: warning: implicit declaration of function ‘deflate’
bgzf.c:311: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:312: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:313: warning: implicit declaration of function ‘deflateEnd’
bgzf.c:345: warning: implicit declaration of function ‘crc32’
bgzf.c: In function ‘inflate_block’:
bgzf.c:371: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:371: error: expected ‘;’ before ‘zs’
bgzf.c:373: error: ‘zs’ undeclared (first use in this function)
bgzf.c:380: warning: implicit declaration of function ‘inflateInit2’
bgzf.c:381: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:385: warning: implicit declaration of function ‘inflate’
bgzf.c:385: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:386: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:387: warning: implicit declaration of function ‘inflateEnd’
bgzf.c: In function ‘check_header’:
bgzf.c:405: error: ‘Z_DEFLATED’ undeclared (first use in this function)
make[2]: *** [bgzf.o] Error 1
make[2]: Leaving directory `/home/lzl/samtools-0.1.16'
make[1]: *** [lib-recur] Error 1
make[1]: Leaving directory `/home/lzl/samtools-0.1.16'
make: *** [all-recur] Error 1
-------------------------------------------------------------------
i got no clues from them. and i googled nothing.
would you please tell me what's happening with the application?
i tried installing samtools in Ubuntu (64bit) but failed. here are the error messages:
-------------------------------------------------------------------
root@ubuntu:/home/user/samtools-0.1.16# make
make[1]: Entering directory `/home/lzl/samtools-0.1.16'
make[2]: Entering directory `/home/lzl/samtools-0.1.16'
gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
bgzf.h:29:18: error: zlib.h: No such file or directory
bgzf.c: In function ‘open_write’:
bgzf.c:186: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
bgzf.c:186: error: (Each undeclared identifier is reported only once
bgzf.c:186: error: for each function it appears in.)
bgzf.c: In function ‘deflate_block’:
bgzf.c:297: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:297: error: expected ‘;’ before ‘zs’
bgzf.c:298: error: ‘zs’ undeclared (first use in this function)
bgzf.c:305: warning: implicit declaration of function ‘deflateInit2’
bgzf.c:305: error: ‘Z_DEFLATED’ undeclared (first use in this function)
bgzf.c:306: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in this function)
bgzf.c:307: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:311: warning: implicit declaration of function ‘deflate’
bgzf.c:311: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:312: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:313: warning: implicit declaration of function ‘deflateEnd’
bgzf.c:345: warning: implicit declaration of function ‘crc32’
bgzf.c: In function ‘inflate_block’:
bgzf.c:371: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:371: error: expected ‘;’ before ‘zs’
bgzf.c:373: error: ‘zs’ undeclared (first use in this function)
bgzf.c:380: warning: implicit declaration of function ‘inflateInit2’
bgzf.c:381: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:385: warning: implicit declaration of function ‘inflate’
bgzf.c:385: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:386: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:387: warning: implicit declaration of function ‘inflateEnd’
bgzf.c: In function ‘check_header’:
bgzf.c:405: error: ‘Z_DEFLATED’ undeclared (first use in this function)
make[2]: *** [bgzf.o] Error 1
make[2]: Leaving directory `/home/lzl/samtools-0.1.16'
make[1]: *** [lib-recur] Error 1
make[1]: Leaving directory `/home/lzl/samtools-0.1.16'
make: *** [all-recur] Error 1
-------------------------------------------------------------------
i got no clues from them. and i googled nothing.
would you please tell me what's happening with the application?
Comment