I'd like to install STAR in our cluster.
I download the .tar.gz files and tar -xvf this file.
$cd source
$make STAR
Makefile:71: Depend.list: No such file or directory
make: Warning: File `parametersDefault.xxd' has modification time 9.5e+03 s in the future
make -C htslib lib-static
make[1]: Entering directory `/home/oasis/gordon-data/NGS-ann-project-new/apps/STAR/source/htslib'
make[1]: Warning: File `kfunc.o' has modification time 9.5e+03 s in the future
gcc -g -Wall -O2 -I. -DSAMTOOLS=1 -c -o bgzf.o bgzf.c
In file included from bgzf.c:38:
htslib/bgzf.h:33:18: error: zlib.h: No such file or directory
In file included from bgzf.c:38:
htslib/bgzf.h:59: error: expected specifier-qualifier-list before ‘z_stream’
bgzf.c: In function ‘bgzf_write_init’:
bgzf.c:140: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
bgzf.c:140: error: (Each undeclared identifier is reported only once
bgzf.c:140: error: for each function it appears in.)
bgzf.c: In function ‘bgzf_open’:
bgzf.c:158: warning: implicit declaration of function ‘compressBound’
bgzf.c: In function ‘bgzf_compress’:
bgzf.c:219: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:219: error: expected ‘;’ before ‘zs’
bgzf.c:223: error: ‘zs’ undeclared (first use in this function)
bgzf.c:224: error: ‘Bytef’ undeclared (first use in this function)
bgzf.c:224: error: expected expression before ‘)’ token
bgzf.c:228: warning: implicit declaration of function ‘deflateInit2’
bgzf.c:228: error: ‘Z_DEFLATED’ undeclared (first use in this function)
bgzf.c:228: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in this function)
bgzf.c:228: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:229: warning: implicit declaration of function ‘deflate’
bgzf.c:229: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:229: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:230: warning: implicit declaration of function ‘deflateEnd’
bgzf.c:236: warning: implicit declaration of function ‘crc32’
bgzf.c:236: error: expected expression before ‘)’ token
bgzf.c: In function ‘inflate_block’:
bgzf.c:257: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:257: error: expected ‘;’ before ‘zs’
bgzf.c:258: error: ‘zs’ undeclared (first use in this function)
bgzf.c:260: error: ‘Bytef’ undeclared (first use in this function)
bgzf.c:260: error: expected expression before ‘)’ token
bgzf.c:262: error: expected expression before ‘)’ token
bgzf.c:265: warning: implicit declaration of function ‘inflateInit2’
bgzf.c:265: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:269: warning: implicit declaration of function ‘inflate’
bgzf.c:269: error: ‘Z_FINISH’ undeclared (first use in this function)
bgzf.c:269: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:270: warning: implicit declaration of function ‘inflateEnd’
bgzf.c: In function ‘inflate_gzip_block’:
bgzf.c:283: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:286: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:288: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:289: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:289: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:290: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:291: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:296: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:296: error: ‘Bytef’ undeclared (first use in this function)
bgzf.c:296: error: expected expression before ‘)’ token
bgzf.c:297: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:298: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:298: error: ‘Z_NO_FLUSH’ undeclared (first use in this function)
bgzf.c:300: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:303: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:305: error: ‘Z_STREAM_END’ undeclared (first use in this function)
bgzf.c:306: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c: In function ‘bgzf_read_block’:
bgzf.c:467: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:467: error: ‘z_stream’ undeclared (first use in this function)
bgzf.c:467: error: expected expression before ‘)’ token
bgzf.c:468: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:469: error: ‘Z_OK’ undeclared (first use in this function)
bgzf.c:474: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:475: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c: In function ‘bgzf_close’:
bgzf.c:778: error: ‘BGZF’ has no member named ‘gz_stream’
bgzf.c:779: error: ‘BGZF’ has no member named ‘gz_stream’
make[1]: *** [bgzf.o] Error 1
make[1]: Leaving directory `/home/oasis/gordon-data/NGS-ann-project-new/apps/STAR/source/htslib'
make: *** [htslib/libhts.a] Error 2
Any help would be greatly appreciated~~
I'd wonder if it may make more sense to install the Anaconda package manager and then install STAR using that?
The command then would be
conda install -c bioconda star
.Thanks for your reply. I prefer to install it from scratch, since I use linux cluster....
please, send a longer stack trace.
Either missing Zlib-devel or they are not in your library paths.