当我试图安装Cabal-1.20.0.2时,会出现这个错误:
$ cabal install Cabal-1.20.0.2.tar.gz
Resolving dependencies...
Configuring Cabal-1.20.0.2...
Failed to install Cabal-1.20.0.2
Last 10 lines of the build log ( /home/yonutix/.cabal/logs/Cabal-1.20.0.2.log ):
cabal: Error: some packages failed to install:
Cabal-1.20.0.2 failed during the configure step. The exception was:
user error (
/tmp/Cabal-1.20.0.2-11804/Cabal-1.20.0.2/Distribution/Simple/Utils.hs:386:31:
Warning:
In the use of ‘runGenProcess_’
(imported from System.Process.Internals):
Deprecated: "Please do not use this anymore, use the ordinary
'System.Process.createProcess'. If you need the SIGINT handling, use
delegate_ctlc = True (runGenProcess_ is now just an imperfectly emulated stub
that probably duplicates or overrides your own signal handling)."
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
)我需要安装这个软件包,因为阴谋集团安装取决于它。
有什么问题吗?谢谢!
发布于 2014-11-30 18:15:56
日志文件的这一部分指出了这个问题:
/usr/bin/ld: cannot find -lgmpghc找不到libgmp。最有可能的修复方法是安装libgmp-dev包,例如在Ubuntu下面:
sudo apt-get install libgmp-devhttps://stackoverflow.com/questions/27215878
复制相似问题