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

Make error (lzma.h: No such file or directory) #68

Closed
galaxyrise opened this issue Apr 13, 2017 · 2 comments
Closed

Make error (lzma.h: No such file or directory) #68

galaxyrise opened this issue Apr 13, 2017 · 2 comments

Comments

@galaxyrise
Copy link

Hi,

I just tried installing vt and ran into a lzma.h: No such file or directory error when running make. Any advice you might have on working around this issue would be appreciated.

Here is the full make output:

cd lib/htslib; make libhts.a || exit 1; 
make[1]: Entering directory `/apps/gau/vt_versions/vt_20170413/vt/lib/htslib'
echo '/* Default config.h generated by Makefile */' > config.h
echo '#define HAVE_LIBBZ2 1' >> config.h
echo '#define HAVE_LIBLZMA 1' >> config.h
gcc -g -Wall -O2 -I.  -c -o kfunc.o kfunc.c
gcc -g -Wall -O2 -I.  -c -o knetfile.o knetfile.c
gcc -g -Wall -O2 -I.  -c -o kstring.o kstring.c
gcc -g -Wall -O2 -I.  -c -o bcf_sr_sort.o bcf_sr_sort.c
gcc -g -Wall -O2 -I.  -c -o bgzf.o bgzf.c
gcc -g -Wall -O2 -I.  -c -o errmod.o errmod.c
gcc -g -Wall -O2 -I.  -c -o faidx.o faidx.c
gcc -g -Wall -O2 -I.  -c -o hfile.o hfile.c
gcc -g -Wall -O2 -I.  -c -o hfile_net.o hfile_net.c
echo '#define HTS_VERSION "1.4"' > version.h
gcc -g -Wall -O2 -I.  -c -o hts.o hts.c
gcc -g -Wall -O2 -I.  -c -o md5.o md5.c
gcc -g -Wall -O2 -I.  -c -o multipart.o multipart.c
gcc -g -Wall -O2 -I.  -c -o probaln.o probaln.c
gcc -g -Wall -O2 -I.  -c -o realn.o realn.c
gcc -g -Wall -O2 -I.  -c -o regidx.o regidx.c
gcc -g -Wall -O2 -I.  -c -o sam.o sam.c
gcc -g -Wall -O2 -I.  -c -o synced_bcf_reader.o synced_bcf_reader.c
gcc -g -Wall -O2 -I.  -c -o vcf_sweep.o vcf_sweep.c
gcc -g -Wall -O2 -I.  -c -o tbx.o tbx.c
gcc -g -Wall -O2 -I.  -c -o textutils.o textutils.c
gcc -g -Wall -O2 -I.  -c -o thread_pool.o thread_pool.c
gcc -g -Wall -O2 -I.  -c -o vcf.o vcf.c
gcc -g -Wall -O2 -I.  -c -o vcfutils.o vcfutils.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_codecs.o cram/cram_codecs.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_decode.o cram/cram_decode.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_encode.o cram/cram_encode.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_external.o cram/cram_external.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_index.o cram/cram_index.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:60:18: error: lzma.h: No such file or directory
cram/cram_io.c: In function ‘lzma_mem_deflate’:
cram/cram_io.c:865: warning: implicit declaration of function ‘lzma_stream_buffer_bound’
cram/cram_io.c:871: error: ‘LZMA_OK’ undeclared (first use in this function)
cram/cram_io.c:871: error: (Each undeclared identifier is reported only once
cram/cram_io.c:871: error: for each function it appears in.)
cram/cram_io.c:871: warning: implicit declaration of function ‘lzma_easy_buffer_encode’
cram/cram_io.c:871: error: ‘LZMA_CHECK_CRC32’ undeclared (first use in this function)
cram/cram_io.c: In function ‘lzma_mem_inflate’:
cram/cram_io.c:881: error: ‘lzma_stream’ undeclared (first use in this function)
cram/cram_io.c:881: error: expected ‘;’ before ‘strm’
cram/cram_io.c:887: error: ‘LZMA_OK’ undeclared (first use in this function)
cram/cram_io.c:887: warning: implicit declaration of function ‘lzma_stream_decoder’
cram/cram_io.c:887: error: ‘strm’ undeclared (first use in this function)
cram/cram_io.c:887: warning: implicit declaration of function ‘lzma_easy_decoder_memusage’
cram/cram_io.c:902: warning: implicit declaration of function ‘lzma_code’
cram/cram_io.c:902: error: ‘LZMA_RUN’ undeclared (first use in this function)
cram/cram_io.c:903: error: ‘LZMA_STREAM_END’ undeclared (first use in this function)
cram/cram_io.c:915: error: ‘LZMA_FINISH’ undeclared (first use in this function)
cram/cram_io.c:924: warning: implicit declaration of function ‘lzma_end’
make[1]: *** [cram/cram_io.o] Error 1
make[1]: Leaving directory `/apps/gau/vt_versions/vt_20170413/vt/lib/htslib'
make: *** [lib/htslib/libhts.a] Error 1
@galaxyrise
Copy link
Author

Answering my own question for posterity: Make completed successfully after I ran 'yum install xz-devel'.

@ACEnglish
Copy link

Note for others... On Ubuntu 14.04.5 LTS with apt-get, use the command:
apt-get install liblzma-dev

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