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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top