elm-bin icon indicating copy to clipboard operation
elm-bin copied to clipboard

How are the binaries built?

Open evancz opened this issue 10 years ago • 13 comments

  • I see there is a .tar.gz of linux things, but how are they made?
  • Should I make these as part of the build process?
  • Is there any reason to build 64-bit ones? I've heard from folks having trouble running them on 32-bit machines.
  • Are the binaries for mac and windows taken from the installers I make?

evancz avatar Jun 29 '15 19:06 evancz

  • Currently, @passy is building them manually.
  • Yes, ideally
  • I've no idea, probably not
  • I don't know, @passy?

kevva avatar Jul 13 '15 15:07 kevva

@evancz If you could provide linux binaries, that would be massively helpful.

Yes, I've built them myself so far and yup, they're 64bit only. Haven't personally come across any 32 bit machines for years, but if there's demand sure.

The Mac binaries are extracted from the pkg, Windows came from a PR. /cc @jvoigtlaender

passy avatar Jul 13 '15 16:07 passy

The Windows binaries I took from the official installer (https://github.com/kevva/elm-bin/pull/24).

jvoigtlaender avatar Jul 13 '15 16:07 jvoigtlaender

Yes, I've built them myself so far and yup, they're 64bit only. Haven't personally come across any 32 bit machines for years, but if there's demand sure.

@passy, me neither, but my experience from imagemin is that it seems there's always some edge case.

kevva avatar Jul 13 '15 18:07 kevva

Hi everyone, I would really appreciate if I could install 32bit version via npm. I run Debian (Crunchbang) on my t42 and I spent last 3 days trying to install the elm-platform. I followed all the possible recommendations suggested in the elm-platform repo and on the other sites as well, but actually none of them worked. I really hope I will be able to run elm on my machine one day.

dusky3 avatar Oct 04 '15 16:10 dusky3

@dusky3, I haven't seen you asking questions or reporting problems on https://github.com/elm-lang/elm-platform.

jvoigtlaender avatar Oct 05 '15 07:10 jvoigtlaender

@jvoigtlaender that's true, I haven't asked on https://github.com/elm-lang/elm-platform, beacuse I gave up and I don't want to go through that painfull process anymore. It's 2015 and IMHO no one should install any platform or framework by building it from source.

I demanded an installer here because I think that ELM is great and it should really have an npm installer for 32bit linux and as @passy claimed, if there's a demand he'll build it.

Anyway thank you everyone for all the hard work you've done so far.

dusky3 avatar Oct 05 '15 08:10 dusky3

Sorry I'm not in the business of building Linux binaries.

But I feel some responsibility for the build-from-source script. Think of it like that: Some people do need to be able from source. For example developers that contribute to the Elm compiler etc., and people that build installers for different distributions.

So it would have been really good to see your failed attempts. When you say that all methods suggested on elm-platform don't work for you, I'm troubled. Any information from your three days trying this might have helped us to provide a fix for you (it could be a very simple thing, who knows), but also helped us to improve the process for other people.

So it's a lost opportunity for us that you suffered in silence instead of sharing. But of course you are under no obligation to open GitHub issues etc. It's just a pity.

jvoigtlaender avatar Oct 05 '15 17:10 jvoigtlaender

Totally agree with @jvoigtlaender. Unfortunately I'm tied up in too many other things and don't have a lot of time I can dedicate to this. And I have no idea how to cross-compile with GHC, so I won't be able to help out with the 32bit binaries, I'm afraid. :(

passy avatar Oct 05 '15 19:10 passy

I'm planning to build all the binaries for 0.16 and I'll do 32-bit ones for Linux.

evancz avatar Oct 05 '15 19:10 evancz

@evancz That's excellent news! Thanks! :)

passy avatar Oct 05 '15 20:10 passy

Thank you @evancz, that's the news of the year! I will patiently wait for that.

@jvoigtlaender I know that the developers need to install from source, I was writing about regular users/programmers. Just to let you know - I just followed the newest instructions from here https://github.com/elm-lang/elm-platform/issues/63#issuecomment-145401034 , but again I had no luck. I will rather reply there.

dusky3 avatar Oct 05 '15 21:10 dusky3

Thanks, I'll take a look.

jvoigtlaender avatar Oct 06 '15 07:10 jvoigtlaender