macos - 架构 x86_64 : "_utimensat", 的 undefined symbol 引用自 : _cazW_info in libHSdirectory-1. 3.3.0.a(Posix.o)

标签 macos haskell haskell-stack haskell-platform

我正在尝试安装 haskell-ide-engine。下面是命令

git clone https://github.com/haskell/haskell-ide-engine --recursive
cd haskell-ide-engine 
./install.hs build-all

最后一条命令 ./install.hs build-all因以下错误而失败 -
    [146 of 150] Compiling Distribution.Client.Sandbox ( Distribution/Client/Sandbox.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal-tmp/Distribution/Client/Sandbox.o )
    [147 of 150] Compiling Distribution.Client.Reconfigure ( Distribution/Client/Reconfigure.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal-tmp/Distribution/Client/Reconfigure.o )
    [148 of 150] Compiling Distribution.Client.Exec ( Distribution/Client/Exec.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal-tmp/Distribution/Client/Exec.o )
    [149 of 150] Compiling Distribution.Client.CmdLegacy ( Distribution/Client/CmdLegacy.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal-tmp/Distribution/Client/CmdLegacy.o )
    [150 of 150] Compiling Main             ( main/Main.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal-tmp/Main.o )
    Linking .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/cabal/cabal ...
    Undefined symbols for architecture x86_64:
      "_utimensat", referenced from:
          _cazW_info in libHSdirectory-1.3.3.0.a(Posix.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    `gcc' failed in phase `Linker'. (Exit code: 1)
)

我的 mac os Sierra 版本 10.12.6。

我该如何解决这个问题?

最佳答案

我相信罪魁祸首是 Unix 包是用 ghc 构建的。在较新的 macOS 版本上。尝试使用您自己构建的 Unix 包。

关于macos - 架构 x86_64 : "_utimensat", 的 undefined symbol 引用自 : _cazW_info in libHSdirectory-1. 3.3.0.a(Posix.o),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56029761/

相关文章:

ios - 单独线程上基于网络的 NSStream 的好例子?

haskell - Haskell 中的字符串连接和不需要的引号

haskell - Haskell 中的递归类型同义词 - 'cycle in type synonym declarations'

haskell - 如何诊断 "Perhaps you need to add xxx to the build-depends in your .cabal file",当它已经在 cabal 文件中时?

haskell - cabal + 堆栈 : specifying the packages version in the cabal file

haskell-stack - 'stack haddock' 在哪里放置它生成的文档?

macos - 如何使用 automator 在 mac osx 上制作 droplet?

objective-c - CABasicAnimation 不起作用

c++ - eclipse : How to hide a file from Project Explorer?

haskell - putStrLn 不打印到控制台