somalier icon indicating copy to clipboard operation
somalier copied to clipboard

Static OSX binary?

Open ssadedin opened this issue 4 years ago • 6 comments

We deploy things with linux but most developers are using OSX. It would be very convenient to have a somalier binary compiled for OSX.

I tried to do it myself but it invoked quite a large chain of installs to bring a lot of the nim ecosystem onto my laptop and then it failed with a linker error.

Would be happy to try and sort that out but the issues might be specific to me (old XCode, etc) - I feel like getting a binary available for OSX might be a more generally useful option for others in the same position.

ssadedin avatar Dec 19 '20 21:12 ssadedin

NB: I see that the linker error I got was identical to this:

https://github.com/brentp/slivar/issues/13

So I guess perhaps this request is probably dependent on sorting that out.

ssadedin avatar Dec 19 '20 21:12 ssadedin

With the upstream Darwin fixes for minizip and slivar - the OS X build of somalier now proceeds further! (it still fails though.. will add some more comments here about those workarounds)

andrewpatto avatar Feb 10 '22 21:02 andrewpatto

I managed to produce a working mac binary.

I deleted --d:openmp from the nim.cfg as openmp is not present in my os x compiler (though apparently this is fixable).

I brew installed openblas and set the ld library path in my shell to use it

export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/opt/openblas/lib

I have now got a somalier on mac that at least prints the help messages..

(not saying these are the right workarounds - am going to keep playing and see how things go)

andrewpatto avatar Feb 10 '22 21:02 andrewpatto

excellent! out of curiosity, Are you, or someone you're working with doing a lot of genomics processing on Mac?

brentp avatar Feb 11 '22 06:02 brentp

No, just needing to do some dev work - and wanted to be able to run some simple test cases on my Mac dev machine. I guess I probably should have just been able to use the docker image

andrewpatto avatar Feb 11 '22 06:02 andrewpatto

@brentp Just saw this issue, coming from a sliver issue, and yes, I do lots of genomic processing in Macs.

nuin avatar Aug 24 '22 15:08 nuin