在Max OS X 10.9上配置Cabal [英] Configuring cabal on Max OS X 10.9

查看:82
本文介绍了在Max OS X 10.9上配置Cabal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 cabal install Cabal cabal-install 时,我收到以下警告:

 警告:
目录/Users/arthurfayzrakhmanov/Library/Haskell/ghc-7.6.3/lib/cabal-install-1.18.0.2/bin
不在系统搜索路径中。

好像配置错误,因为安装后我看到了类似的消息,但它指向 /Users/arthurfayzrakhmanov/Library/Haskell/ghc-7.6.3/lib/happy ... 。 p>

如何在OS X 10.9.1上配置cabal,我的意思是PATH等。

解决方案


  1. 使用您喜欢的任何编辑器打开〜/ .bash_profile

  2. 将此操作附加到文件: export PATH = $ HOME / Library / Haskell / ghc-7.6.3 / lib / cabal-install-1.20.0.0 / bin:$ PATH

  3. 保存文件并关闭编辑器

  4. 在终端输入 source〜/ .bash_profile

然后进行测试,在终端输入其中,,您应该看到它指向新路径。


When I run cabal install Cabal cabal-install I have this warning:

Warning: The directory
/Users/arthurfayzrakhmanov/Library/Haskell/ghc-7.6.3/lib/cabal-install-1.18.0.2/bin
is not in the system search path.

Looks like something misconfigured, because I saw similar message when I've installed happy, but it pointed to /Users/arthurfayzrakhmanov/Library/Haskell/ghc-7.6.3/lib/happy....

How should I configure cabal on OS X 10.9.1, I mean PATH and etc.

解决方案

  1. Open your ~/.bash_profile with any editor you're comfortable with
  2. Append this to the file: export PATH="$HOME/Library/Haskell/ghc-7.6.3/lib/cabal-install-1.20.0.0/bin:$PATH"
  3. Save file and close editor
  4. In terminal type source ~/.bash_profile

Then to test, in Terminal type which cabal, and you should see it pointing to the new path.

这篇关于在Max OS X 10.9上配置Cabal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆