【发布时间】:2018-09-16 02:56:17
【问题描述】:
当我尝试使用 Stack 编译我的 Haskell 程序时,我收到以下错误:
Building executable 'fractal' for fractal-0.1.0.0..
[1 of 2] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.2.0.1/build/fractal/fractal-tmp/Main.o )
<command line>: can't load .so/.DLL for: /usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../lib/libtinfo.so (-lncursesw: cannot open shared object file: No such file or directory)
-- While building custom Setup.hs for package fractal-0.1.0.0 using:
/home/lorxu/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.2.0.1 build lib:fractal exe:fractal --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
当我直接使用 GHC 编译时,它工作正常,并且 libncursesw.so 存在于 /usr/lib 中。我在 Void Linux 上。 Stack 正在寻找的任何想法?
【问题讨论】:
-
您使用的是哪个操作系统/发行版?
标签: haskell haskell-stack