Comments (6)
Thanks for this error report. Can you include more information about what the actual error is? This line
While building package magic-1.1 (scroll up to its section to see the error) using:
seems to indicate an issue with the magic
package. If you want to work around this, you can comment out the following line in stack.yaml
:
Line 16 in af37a01
from ihaskell.
@vaibhavsagar Thanks for the information. After struggling for a few hours, I found that the solution was to add path variables in the stack install --fast
. For Apple Silicon and HomeBrew users, the brew directory locates at /opt/homebrew/ and for stack to see pkg-config or libmagic, we need to add additional flags into the stack install command. This instruction was clearly stated on the Github page --extra-include-dirs ${HOMEBREW_PREFIX}/include --extra-lib-dirs ${HOMEBREW_PREFIX}/lib
but I did not change the variable name ${HOMEBREW_PREFIX}
. After changing it back to /opt/homebrew
to works fine.
from ihaskell.
Hi, I'm running into a similar issue running on an Apple silicon macbook, with brew installed at /opt/homebrew.
I've ran:
stack install --fast --extra-include-dirs $/opt/homebrew/include --extra-lib-dirs $/opt/homebrew/lib
and got the following error:
Progress 9/43
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the following errors:
[S-7011]
While building package zeromq4-haskell-0.8.0 (scroll up to its section to see the
error) using:
/Users/atopos/.stack/setup-exe-cache/aarch64-osx/Cabal-simple_SvXsv1f__3.6.3.0_ghc-9.2.7 --verbose=1 --builddir=.stack-work/dist/aarch64-osx/Cabal-3.6.3.0 configure --with-ghc=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc --with-ghc-pkg=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc-pkg-9.2.7 --user --package-db=clear --package-db=global --package-db=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/pkgdb --libdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/lib --bindir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/bin --datadir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/share --libexecdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/libexec --sysconfdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/etc --docdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/zeromq4-haskell-0.8.0 --htmldir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/zeromq4-haskell-0.8.0 --haddockdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/zeromq4-haskell-0.8.0 --dependency=async=async-2.2.4-KzhLbRYpCCLJ5d8bnXQLq3 --dependency=base=base-4.16.4.0 --dependency=bytestring=bytestring-0.11.4.0 --dependency=containers=containers-0.6.5.1 --dependency=exceptions=exceptions-0.10.4 --dependency=monad-control=monad-control-1.0.3.1-IfG0yl5JjlF5rUQ5Dk3FIi --dependency=semigroups=semigroups-0.20-Ataa94eSftS9PXhef7F53I --dependency=transformers=transformers-0.5.6.2 --dependency=transformers-base=transformers-base-0.4.6-GkOrjcRVqoPGiyQnv0GZK0 --extra-include-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/include --extra-lib-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/lib --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
[S-7011]
While building package glib-0.13.8.2 (scroll up to its section to see the error)
using:
/private/var/folders/m0/g9brxl8x7v11dl52g5l_m6c80000gn/T/stack-92d60fcb248edceb/glib-0.13.8.2/.stack-work/dist/aarch64-osx/Cabal-3.6.3.0/setup/setup --verbose=1 --builddir=.stack-work/dist/aarch64-osx/Cabal-3.6.3.0 configure --with-ghc=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc --with-ghc-pkg=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc-pkg-9.2.7 --user --package-db=clear --package-db=global --package-db=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/pkgdb --libdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/lib --bindir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/bin --datadir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/share --libexecdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/libexec --sysconfdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/etc --docdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/glib-0.13.8.2 --htmldir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/glib-0.13.8.2 --haddockdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/glib-0.13.8.2 --dependency=Cabal=Cabal-3.6.3.0 --dependency=base=base-4.16.4.0 --dependency=bytestring=bytestring-0.11.4.0 --dependency=containers=containers-0.6.5.1 --dependency=gtk2hs-buildtools=gtk2hs-buildtools-0.13.8.3-KSQ2LZPZjIS6m0yKzEHPDL --dependency=text=text-1.2.5.0 --dependency=utf8-string=utf8-string-1.0.2-KOPUXETbFeRLoWT9IcwQzV -fclosure_signals --extra-include-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/include --extra-lib-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/lib --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
[S-7011]
While building package cairo-0.13.8.2 (scroll up to its section to see the error)
using:
/private/var/folders/m0/g9brxl8x7v11dl52g5l_m6c80000gn/T/stack-92d60fcb248edceb/cairo-0.13.8.2/.stack-work/dist/aarch64-osx/Cabal-3.6.3.0/setup/setup --verbose=1 --builddir=.stack-work/dist/aarch64-osx/Cabal-3.6.3.0 configure --with-ghc=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc --with-ghc-pkg=/Users/atopos/.ghcup/ghc/9.2.7/bin/ghc-pkg-9.2.7 --user --package-db=clear --package-db=global --package-db=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/pkgdb --libdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/lib --bindir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/bin --datadir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/share --libexecdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/libexec --sysconfdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/etc --docdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/cairo-0.13.8.2 --htmldir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/cairo-0.13.8.2 --haddockdir=/Users/atopos/.stack/snapshots/aarch64-osx/276d6fe4dcd43880c05d29684f703559eec833b700fc7d322b2f7b6a131bf249/9.2.7/doc/cairo-0.13.8.2 --dependency=Cabal=Cabal-3.6.3.0 --dependency=array=array-0.5.4.0 --dependency=base=base-4.16.4.0 --dependency=bytestring=bytestring-0.11.4.0 --dependency=gtk2hs-buildtools=gtk2hs-buildtools-0.13.8.3-KSQ2LZPZjIS6m0yKzEHPDL --dependency=mtl=mtl-2.2.2 --dependency=text=text-1.2.5.0 --dependency=utf8-string=utf8-string-1.0.2-KOPUXETbFeRLoWT9IcwQzV -fcairo_pdf -fcairo_ps -fcairo_svg --extra-include-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/include --extra-lib-dirs=/Users/atopos/Software/IHaskell/$/opt/homebrew/lib --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
from ihaskell.
This seems to be an issue with your dependencies. Can you include the output that actually shows the build error?
from ihaskell.
@renzocom Could you try stack install --fast --extra-include-dirs /opt/homebrew/include --extra-lib-dirs /opt/homebrew/lib
? I guess that correct command does not include $ symbol.
from ihaskell.
@rickypang0219 not including the $ led to a similar error, but removing and reinstalling everything did it for some reason, thanks.
Now running stack exec jupyter -- notebook
succesfully opens jupyter from within the IHaskell dir, but the kernel is not responding and I can't run cells. If I try to open jupyter from outside the dir I get the following error:
stack exec jupyter -- notebook Error: [S-9443] No setup information found for ghc-8.10.4 on your platform. This probably means a GHC bindist has not yet been added for OS key 'macosx-aarch64'. Supported versions: ghc-8.10.5, ghc-8.10.6, ghc-8.10.7, ghc-9.0.2, ghc-9.2.1, ghc-9.2.2, ghc-9.2.3, ghc-9.2.4, ghc-9.2.5, ghc-9.2.6, ghc-9.2.7, ghc-9.4.1, ghc-9.4.2, ghc-9.4.3, ghc-9.4.4, ghc-9.4.5, ghc-9.6.1
I now suspect it is because I have ghc-9.2.7 installed. I'll reinstall ghc, either 8.0 or 9.0, and retry again.
from ihaskell.
Related Issues (20)
- Package not include: Failed to Build
- HLS for GHC 9 HOT 4
- nix run github:IHaskell/IHaskell#ihaskell -- install HOT 2
- ihaskell-diagrams-0.3.2.1 fails to build HOT 4
- Adding packages HOT 1
- Update `IHaskell.IPython.EasyKernel.installKernelspec` to use `jupyter` instead of `ipython` HOT 1
- New ghc-parser release? HOT 3
- Nix instructions seem wildly out of date HOT 1
- Cannot install because of missing file on GitHub HOT 6
- Jupyter cannot connect to kernel from outside IHaskell folder. HOT 2
- Tests run "forever" HOT 5
- Notebooks don't correctly update the status of input cells HOT 3
- `jupyterlab-ihaskell` does not support JupyterLab 4.x HOT 1
- When installing from nix flake the ihaskell kernel does not become available in jupyter HOT 2
- IHaskell.Display.Widgets not available when using Nix packages HOT 3
- `nix/release.nix` doesn't work after #1425 HOT 1
- IHaskell not building on macOS HOT 2
- No persistent command history in jupyter console HOT 1
- Running on Docker: iHaskell.Display not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ihaskell.