Giter Club home page Giter Club logo

Comments (2)

wstomv avatar wstomv commented on June 2, 2024

So, a few hours later, with the help of some web searches, I managed to fix this.

  1. Use --extra-... flags (shown in the README; my bad for not doing that in the first place):

    stack install --fast --extra-include-dirs ${HOMEBREW_PREFIX}/include --extra-lib-dirs ${HOMEBREW_PREFIX}/lib
  2. In stack.yaml, I bumped the version of Chart-cairo-1.9.3 to 1.9.4.

    This was needed, because stack.yaml is configured (out-of-the-box) with resolver: lts-21.21
    (with GHC 9.4.7), which includes lens-5.2.3,
    which exceeds the requirements for Chart-cairo-1.9.3, but lens-5.2.3 will work with 1.9.4.

    I suggest to fix this on the IHaskell side. (How did it work for others?)

  3. Update my XCode command-line tools, which is a bit more complicated nowadays.

    See: https://developer.apple.com/forums/thread/677124

  4. Install libmagic (./ihaskell-display/ihaskell-magic seems to need this):

    brew install libmagic

And now building (see the command under Step 1 above) worked (took a while, though, with 157 things to build).

I did get a warning after the build that ihaskell is linked to ~/.local/bin/ihaskell,
which is good to know, since after the build, you then need to run

~/.local/bin/ihaskell install --stack

Finally, after starting a Jupyter server with

stack exec jupyter -- notebook

I could open a notebook with an IHaskell language kernel, and everything worked again!

from ihaskell.

vaibhavsagar avatar vaibhavsagar commented on June 2, 2024
  1. As you noted, this is mentioned in our README.

  2. That's strange that it works in CI for us but not for you. I've updated the version of Chart-cairo we pull in with #1436.

  3. This is macOS-specific, nothing we can do about it here.

  4. Same as 3.

I did get a warning after the build that ihaskell is linked to ~/.local/bin/ihaskell

That's a Stack feature.

It sounds like you got everything working in the end, so I will go ahead and close this. Please reopen if necessary.

from ihaskell.

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.