我正在尝试安装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软件包是在较新的MacOS版本上使用ghc
构建的。尝试使用自己的UNIX软件包的构建。