Closed ulidtko closed 3 years ago
@ulidtko Thanks for reporting the problem! I'm afraid, the root of the problem is not ideal Haskell support on Arch Linux. But I'm not using Arch Linux personally, so I can't provide a solution for this problem.
The following blog post describes some details and gives some solutions on how you can solve your issue:
I summon @fosskers and @dixonary who are more experienced Arch users. Maybe they can advise you on this :slightly_smiling_face:
Interesting! I'm afraid that I can't really help debug this precise error, as my primary advice is to bypass the dynamic-by-default approach of Arch, and grab cabal-static
from the AUR and ghc-static
from Community instead.
You rang?
Yes, Haskell on Arch isn't so good if you're mixing cabal
usage with native packages from pacman
. It's one of the reasons I do all my Haskelling with stack
, and that's what I recommend here too. stan
does have a stack.yaml
, so getting it working is just a stack install
away. That's how I personally got stan
running just fine on my own machine the day it was announced.
To install stack
on Arch I recommend stack-static.
Hi!
I've tried installing Stan — but on my system, it does not want to :(
The build error is like this:
This is happening both with
cabal install stan
,cabal v2-install stan
, and also withcabal v2-build exe:stan
from git master.I do build with global
ghc-options: -dynamic
. Thecabal-doctest
package is installed correctly, despite what the error message claims — which I demonstrate by importing it fromghci
(which works fine).System: Arch Linux. GHC 8.10.1. Cabal 3.2.0.0.