Giter Site home page Giter Site logo

elm-server: Seg fault about elm-platform HOT 10 CLOSED

elm-lang avatar elm-lang commented on May 17, 2024
elm-server: Seg fault

from elm-platform.

Comments (10)

marklar avatar marklar commented on May 17, 2024

Same problem (i.e. Seg fault) for elm-repl, elm-doc, and elm-get.

from elm-platform.

evancz avatar evancz commented on May 17, 2024

Do you have bash or some alternative command line interface?

Also, if you get literally that error both times, it appears that the results of the Mac installer are shadowing the results of cabal. If you remove all of the Elm stuff from /usr/local/bin and /usr/local/share/elm (iirc) then you'll be dealing only with the results of cabal.

from elm-platform.

marklar avatar marklar commented on May 17, 2024

Thanks for your prompt reply!

I use bash.

It now works. Here's what I did:

  • Removed all the Elm stuff from /usr/local/bin and /usr/local/share/elm.

  • Since the cabal stuff appears to be in ~/Library/Haskell/ghc-7.6.3/lib, I added the following to my .bashrc:

    export PATH=$PATH:~/Library/Haskell/ghc-7.6.3/lib/Elm-0.12.1.3/bin
    export PATH=$PATH:~/Library/Haskell/ghc-7.6.3/lib/elm-server-0.11/bin
    export PATH=$PATH:~/Library/Haskell/ghc-7.6.3/lib/elm-get-0.1.1.3/bin
    export PATH=$PATH:~/Library/Haskell/ghc-7.6.3/lib/elm-repl-0.2.2.1/bin

I suspect there is a much more elegant/concise solution.

from elm-platform.

evancz avatar evancz commented on May 17, 2024

I believe Haskell places symlinks to all executables in ~/Library/Haskell/bin, so you can just add that to your path instead of all the individual ones. Does that work?

from elm-platform.

marklar avatar marklar commented on May 17, 2024

Yes! Terrific, thanks!

from elm-platform.

evancz avatar evancz commented on May 17, 2024

Cool :) The initial problem is still pretty weird. Can you say more about your system? Is there anything odd that it'd be good to know about?

from elm-platform.

marklar avatar marklar commented on May 17, 2024

Yes, the initial problem is strange. ...It's difficult for me to guess what, if anything, about my system might be the cause.

I'll attempt to re-install using the Mac installer to see whether the problem re-manifests.

from elm-platform.

marklar avatar marklar commented on May 17, 2024

I'm sorry to say that the problem with the Mac installer persists for me:

$ elm-server
/usr/local/bin/elm-server: line 6: 33305 Segmentation fault: 11  /usr/local/bin/elm-server-unwrapped $*

from elm-platform.

evancz avatar evancz commented on May 17, 2024

Oh, now that I look with fresh eyes, this reminds me of an issue I have seen before. I created the binaries on OSX 10.10 and I recall hearing of issues running binaries on 10.7 or something like that.

The two solutions are (1) I need to compile on an older machine (which I don't have easy access to) or (2) you can try to go through the "platform agnostic" install.

from elm-platform.

evancz avatar evancz commented on May 17, 2024

Alright, elm-sever no longer exists, so I'm gonna close this one!

from elm-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.