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

lzma.h file missing on Mac OSx High Sierra v.10.13.6 #79

Open
SabriJamal opened this issue Sep 25, 2018 · 1 comment
Open

lzma.h file missing on Mac OSx High Sierra v.10.13.6 #79

SabriJamal opened this issue Sep 25, 2018 · 1 comment

Comments

@SabriJamal
Copy link

Hi,

I was installing Bio-DB-HTS package and run into an issue with the lzma.h header file. I apparently have the LZMA library installed but don't have the lzma.h header file. I installed the XZ library in order to get the lzma.h header file although then it got saved in...

/usr/local/Cellar/xz/5.2.4/include/lzma.h

I got around this by adding the following in bold to a line in the INSTALL.pl file

-e '/usr/include/lzma.h' || '/usr/local/Cellar/xz/5.2.4/include/lzma.h' or die <<END;

I made a post in stackoverflow regarding issues installing Bio:Perl where another user mentioned that on his Mac OSx High Sierra he had the lzma.h file located in /usr/local/include and not as required, /usr/include (see post below)

https://stackoverflow.com/questions/52468476/issues-installing-perl-module-bioperl?noredirect=1#comment91917414_52468476

I have seen quite a few post with similar issue but concerning different problems, all relating to the missing lzma.h header file.

Kind regards
Sabri

@jmarshall
Copy link
Contributor

Since version 1.7, HTSlib contains a workaround for macOS having liblzma.dylib but no lzma.h.
(See samtools/htslib@78dbcce.)

So this is really a deficiency in Bio-DB-HTS's INSTALL.pl: if it ran HTSlib's configure script and removed this test (the configure script checks more carefully for the same things) then it would build on macOS without needing extra XZ libraries to be installed.

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