Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error with 'zlib' #1

Closed
johnstantongeddes opened this issue Sep 18, 2013 · 2 comments
Closed

Installation error with 'zlib' #1

johnstantongeddes opened this issue Sep 18, 2013 · 2 comments

Comments

@johnstantongeddes
Copy link

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
Copy link
Owner

najoshi commented Sep 28, 2013

I fixed the makefile to have the -lz flag at the end of the line. Thanks!

@najoshi najoshi closed this as completed Sep 28, 2013
@johnstantongeddes
Copy link
Author

Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants