我正在尝试为Mac安装Haskell和Yesod following this guide。一切顺利,直到最后一步,当我收到此错误消息。我试图手动安装hfsevebts-0.1.4
,但它给了我同样的错误。
gcc-4.8: error: language objective-c not recognized
gcc-4.8: error: language objective-c not recognized
cabal: Error: some packages failed to install:
fsnotify-0.0.11 depends on hfsevents-0.1.4 which failed to install.
hfsevents-0.1.4 failed during the building phase. The exception was:
ExitFailure 1
yesod-bin-1.2.3.4 depends on hfsevents-0.1.4 which failed to install.
如何安装Yesod?
答案 0 :(得分:2)
我认为这为我解决了这个问题:
$ brew uninstall gcc48
$ brew install gcc48 --enable-all-languages
据推测,默认的gcc48不包括Objective-C。
答案 1 :(得分:0)
我遇到了同样的错误 - 许多其他人 - 试图在10.8.5上安装yesod。我有幸从Haskell卸载软件包并通过Homebrew安装Haskell。我升级到10.9并且一切仍然有效(但我必须重新安装Xcode命令行工具)
如果您需要详细信息,我会在我的网站上记录installing yesod on os x。