Configuring cabal on Max OS X 10.9

最后都变了- 提交于 2020-01-03 02:21:32

问题


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:


  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.




回答2:


After few attempts to solve prior issue with OS X Mavericks I've reinstalled entire platform with Homebrew, and issue dismissed. If you need help with that see mentioned answer.



来源:https://stackoverflow.com/questions/20785358/configuring-cabal-on-max-os-x-10-9

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!