I would like to say that I am still facing the issue. I am trying to install a tool known as samtools and it has the problem with this lzma.h, so going through the forums, I downloaded the xz utils from this link (https://tukaani.org/xz/) , downloaded source *.tar.gz and build it , compiled. It ran smoothly but then again when am trying to complile the samtools it shows the same error below
samtools-1.5 vdas$ make
cd htslib-1.5 && /Applications/Xcode.app/Contents/Developer/usr/bin/make lib-static
gcc -g -Wall -O2 -I.
-c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:60:10: fatal error: 'lzma.h' file not found
#include <lzma.h>
^
1 error generated.
make[1]: *** [cram/cram_io.o] Error 1
make: *** [htslib-1.5/libhts.a] Error 2
Now having tried to see where the lzma files are I tried
sudo find /usr -name lzma.h -print
Password:
/usr/local/Cellar/xz/5.2.3/include/lzma.h
/usr/local/include/lzma.h
/usr/local/octave/3.8.0/include/lzma/lzma.h
/usr/local/octave/3.8.0/include/lzma.h
I also tried the below command:
host009:samtools-1.5 vdas$ gcc -g -Wall -O2 -I. -I/usr/local/include -c -o cram/cram_io.o cram/cram_io.c
clang: error: no such file or directory: 'cram/cram_io.c'
clang: error: no input files
Now am not sure how to get rid of this error. It would be nice to have some pointers.