Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell 每当我尝试通过自制加载ghci时,它在尝试加载integer gmp包时崩溃_Haskell_Homebrew_Ghci - Fatal编程技术网

Haskell 每当我尝试通过自制加载ghci时,它在尝试加载integer gmp包时崩溃

Haskell 每当我尝试通过自制加载ghci时,它在尝试加载integer gmp包时崩溃,haskell,homebrew,ghci,Haskell,Homebrew,Ghci,这正是我得到的错误。请注意,我使用的是OS X 10.9(Mavericks),使用的是通过自制安装的gcc版本4.9 shermmac:bin brandonsherman$ ghci GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... <command lin

这正是我得到的错误。请注意,我使用的是OS X 10.9(Mavericks),使用的是通过自制安装的gcc版本4.9

shermmac:bin brandonsherman$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... <command line>: can't load .so/.DLL for: libgmp.dylib     
(dlopen(libgmp.dylib, 9): image not found)
shermmac:bin brandonsherman$ghci
GHCi,7.6.3版:http://www.haskell.org/ghc/  :? 求救
正在加载程序包ghc prim。。。链接。。。完成。
正在加载包整型gmp…:无法为libgmp.dylib加载.so/.DLL
(dlopen(libgmp.dylib,9):未找到图像)

我该如何着手解决这个问题?我已经卸载并重新安装了ghc和haskell平台。

这最终对我有效。我认为不卸载
gmp
是导致卸载和重新安装出现故障的原因

brew uninstall ghc
brew uninstall haskell-platform
brew uninstall gmp
brew update
brew upgrade
brew install ghc
brew install haskell-platform