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

Build errors on Mac #48

Open
mrkite92 opened this issue Jan 31, 2018 · 6 comments · May be fixed by #50
Open

Build errors on Mac #48

mrkite92 opened this issue Jan 31, 2018 · 6 comments · May be fixed by #50

Comments

@mrkite92
Copy link

Hi Healpix gurus,

I got this on my Mac under macOS 10.12.6 with julia 0.6.2, x86_64-apple-darwin14.5.0:

Pkg.build("LibHealpix")
INFO: Building Homebrew
Already up-to-date.
INFO: Building FITSIO
INFO: Building LibHealpix
Error: No available formula with the name "homebrew/science/healpix"
Error: No available formula with the name "homebrew/science/healpix"
=====================================================[ ERROR: LibHealpix ]=====================================================

LoadError: None of the selected providers can install dependency libchealpix.
Use BinDeps.debug(package_name) to see available providers

while loading /Users/marquett/.julia/v0.6/LibHealpix/deps/build.jl, in expression starting on line 143

This is likely connected to that deprecated formula.

Thanks for your help,
Cheers,
JB

@mweastwood
Copy link
Owner

Huh, it looks like homebrew-science has been discontinued and healpix didn't quite make the cut for migration to homebrew-core.

As a quick fix, you can try commenting out this line in deps/build.jl:

provides(Homebrew.HB, "homebrew/science/healpix", [libchealpix, libhealpix_cxx], os=:Darwin)

I can't 100% guarantee that this will work though. I will hopefully have time to look into a longer term solution this evening.

@mrkite92
Copy link
Author

mrkite92 commented Jan 31, 2018 via email

@mweastwood
Copy link
Owner

Oh, right. It's been a while since I wrote the build.jl file and there was quite a bit of pain involved with making it work across a variety of platforms.

You can try setting this line (link below) from false to true. That will ensure that we at least try to build Healpix from source. You might need to make sure libtool is installed on your system though.

I don't have access to a Mac at the moment, but I'll borrow one from a friend this evening and then I can give more specific instructions.

@mweastwood
Copy link
Owner

Even better, Googling a little more it looks like the homebrew-science formulae were moved to a different (although now unmaintained location).

Can you try (starting over fresh), just replacing

provides(Homebrew.HB, "homebrew/science/healpix", [libchealpix, libhealpix_cxx], os=:Darwin)

with

provides(Homebrew.HB, "brewsci/science/healpix", [libchealpix, libhealpix_cxx], os=:Darwin)

@mrkite92
Copy link
Author

mrkite92 commented Jan 31, 2018 via email

@mweastwood
Copy link
Owner

Great, glad to see it's working! The version mismatch warning is, I believe, harmless and an artifact of the fact that homebrew healpix was built against an earlier version of fitsio. The ORDERING keyword warning is just part of the tests.

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

Successfully merging a pull request may close this issue.

2 participants