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

Mac install, Homebrew failing, make failing on lzma.h #83

Open
MartinPersida opened this issue Mar 1, 2018 · 5 comments
Open

Mac install, Homebrew failing, make failing on lzma.h #83

MartinPersida opened this issue Mar 1, 2018 · 5 comments

Comments

@MartinPersida
Copy link

Hello,

I tried to install vt on Mac through homebrew and source and I ran into problem with both.
According to the wiki documentation the classic use on mac is using homebrew as: brew install homebrew/science/vt
However this results into the following message error: "Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated."
It seems that homebrew deleted the science branch and I didn't find the alternative one for vt.
So cloned vt from github and run the makefile and got this error:

"cd lib/htslib; /Applications/Xcode.app/Contents/Developer/usr/bin/make libhts.a || exit 1;
make[1]: ./version.sh: Command not found
make[1]: ./version.sh: Command not found
gcc -g -Wall -O2 -I. -c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:61:10: fatal error: 'lzma.h' file not found"

This is a similar problem which somehow has been raised previously and with other program installation on mac like samtools. So the problem come I think from the fact that I installed xcode with hombrew and that path is not in the include path (I try to add it in the makefile but without success). I solved it by copying lzma folder and .h directly into vt/lib/htslib.
Is there something that should be done specificlly to install this lzma package before installing vt?
It would be nice to have it mentionned in the installation paragraph of the wiki, as well as the new location of the homebrew branch for vt.

Regards

@atks
Copy link
Owner

atks commented Mar 1, 2018

@MartinPersida

Please pull down a new copy of vt. It should work now.

For the time being, we will still have to install the xz package via homebrew. I've updated the wiki to reflect that.

The htslib folks have solved this problem before but I am not sure why it has came back. It might be because of the new updates for OSX? I'm checking with them. samtools/htslib#628

The science branch for homebrew has unfortunately been deprecated so I have no control over that. The person who set it up originally was another user.

@sbridel
Copy link

sbridel commented Jul 11, 2018

brew install Brewsci/science/vt
nstead of
brew install Homebrew/science/vt

and vt is finally magically installed and working

@tseemann
Copy link

brew install brewsci/bio/vt

is the correct way now.

@jmarshall
Copy link

To activate HTSlib's workaround for macOS not having lzma.h, you need to run the configure script. Does this vt build process run HTSlib's configure?

@atks
Copy link
Owner

atks commented Oct 23, 2019

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

5 participants