Haskell 每当我尝试通过自制加载ghci时,它在尝试加载integer gmp包时崩溃
这正是我得到的错误。请注意,我使用的是OS X 10.9(Mavericks),使用的是通过自制安装的gcc版本4.9Haskell 每当我尝试通过自制加载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
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