3
Я получаю эту ошибку, когда я пытаюсь установить Cabal-1.20.0.2:Не удалось установить Кабал-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
)
Мне нужно установить этот пакет, потому что заговорщики-установки зависит от него.
В чем может быть проблема? Спасибо!
Вот подсказка: '/ USR/бен/л.д.: не может найти -lgmp' - GHC не может найти libgmp. Какую ОС вы используете? Как вы установили ghc? Вы используете платформу Haskell? – ErikR
Я использую Ubuntu 14.04 для новой версии, Haskell Platform 2014.2.0.0 для Linux, 64bit $/usr/bin/ld /usr/bin/ld: нет файлов ввода – yonutix
вы можете попробовать: 'sudo apt-get install libgmp -dev' - Я бы не удивился, если по умолчанию у ванильного Ubuntu-дистрибутива нет libgmp. – ErikR