如何在Mac OSX上为Haskell 7.6.1安装Haskell cabal工具? [英] How to install Haskell cabal tool for Haskell 7.6.1 on Mac OSX?
问题描述
我根据本页上的说明在MAC OSX上安装了Haskell。
版本7.6.1
http://www.haskell.org/ghc/download_ghc_7_6_1
然而,它如何安装cabal?
从那一页开始:
停止!
对于大多数用户,我们建议安装 Haskell Platform 而不是GHC。目前的Haskell平台版本包括最近的GHC版本以及一些其他工具(如cabal)以及已知可协同工作的更大的一组库。 b
因此,遵循该链接可以获得您想要的结果: Haskell平台是GHC加上所需的软件包和工具,包括Cabal(库)和cabal-install(命令行工具)。由于您使用的是OS X,因此您可以使用 Homebrew 获取GHC和Cabal:
brew install ghc cabal-install
。I installed Haskell on MAC OSX according to the instructions on this page.
Version 7.6.1 http://www.haskell.org/ghc/download_ghc_7_6_1
However, it does not install the cabal tool which I need for installing packages.
How can I install cabal?
解决方案From the top of that page:
Stop!
For most users, we recommend installing the Haskell Platform instead of GHC. The current Haskell Platform release includes a recent GHC release as well as some other tools (such as cabal), and a larger set of libraries that are known to work together.
So following that link will get you what you want: the Haskell Platform is GHC plus the packages and tools you want, including Cabal (the library) and cabal-install (the command-line tool). Since you're on OS X, you can also use Homebrew to get the GHC and Cabal if you want:
brew install ghc cabal-install
.这篇关于如何在Mac OSX上为Haskell 7.6.1安装Haskell cabal工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!