Installation error with 'zlib'
Closed this issue · 2 comments
johnstantongeddes commented
When trying to install on Ubuntu 13.04 with default zlib installed I get the error:
jstantongeddes@AntLab:/opt/software/sabre$ sudo make
gcc -Wall -pedantic -DVERSION=1.00 -lz -O3 barcode.o demulti_single.o demulti_paired.o sabre.o -o sabre
demulti_paired.o: In function `ks_getuntil':
demulti_paired.c:(.text+0x78): undefined reference to `gzread'
demulti_paired.o: In function `kseq_read':
demulti_paired.c:(.text+0x48d): undefined reference to `gzread'
demulti_paired.c:(.text+0x4dc): undefined reference to `gzread'
demulti_paired.c:(.text+0x60a): undefined reference to `gzread'
demulti_paired.c:(.text+0x687): undefined reference to `gzread'
demulti_paired.o: In function `paired_main':
demulti_paired.c:(.text+0xb67): undefined reference to `gzopen'
demulti_paired.c:(.text+0xb82): undefined reference to `gzopen'
demulti_paired.c:(.text+0x1249): undefined reference to `gzclose'
demulti_paired.c:(.text+0x1253): undefined reference to `gzclose'
demulti_single.o: In function `ks_getuntil':
demulti_single.c:(.text+0x78): undefined reference to `gzread'
demulti_single.o: In function `single_main':
demulti_single.c:(.text+0x57e): undefined reference to `gzopen'
demulti_single.c:(.text+0x868): undefined reference to `gzread'
demulti_single.c:(.text+0x8b8): undefined reference to `gzread'
demulti_single.c:(.text+0xc17): undefined reference to `gzread'
demulti_single.c:(.text+0xca8): undefined reference to `gzread'
demulti_single.c:(.text+0xd78): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make: *** [build] Error 1
I did find a solution on stackoverflow that allowed me to successfully install...but I'm confused why this wouldn't just work by default.
Thanks for making the program available!
najoshi commented
I fixed the makefile to have the -lz flag at the end of the line. Thanks!
johnstantongeddes commented
Great, thanks.