mweastwood / LibHealpix.jl

A Julia wrapper of the Healpix library.
http://mweastwood.info/LibHealpix.jl/stable/
Other
11 stars 7 forks source link

Build errors on Mac #48

Open mrkite92 opened 6 years ago

mrkite92 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Hi Michael,

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mweastwood/LibHealpix.jl/issues/48#issuecomment-361993828, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1a-dK1cTKWhH9Yfe_bPPeJ8RhRLU_nks5tQJjUgaJpZM4R0N-d.

Thanks for your answer. I tried to comment that line, but the build fails again:

INFO: Building LibHealpix ==========================================================================================================[ 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

Cheers, JB

mweastwood commented 6 years ago

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.

https://github.com/mweastwood/LibHealpix.jl/blob/2a034950a8173ee0bfea41437c1787e237a77aeb/deps/build.jl#L23

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 commented 6 years ago

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 commented 6 years ago

Hi Michael,

Bingo!

julia> Pkg.test("LibHealpix") INFO: Testing LibHealpix

WARNING: version mismatch between CFITSIO header (v3.39) and linked library (v3.42).

WARNING: version mismatch between CFITSIO header (v3.39) and linked library (v3.42).

WARNING: the ORDERING keyword does not exist, assuming RING Test Summary: | Pass Broken Total LibHealpix Tests | 657 1 658 INFO: LibHealpix tests passed

Thanks again!!

Cheers, JB

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) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mweastwood/LibHealpix.jl/issues/48#issuecomment-362076231, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1a-frBEV1b7i11HDByONyLR_gDZdxdks5tQNrEgaJpZM4R0N-d.

mweastwood commented 6 years ago

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.