diff options
author | Joey Hess <joey@kitenet.net> | 2012-12-09 11:51:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-12-09 11:51:45 -0400 |
commit | 7d9b6c7665a9cc9f0cc2efd3f1274b5495723bb8 (patch) | |
tree | 08b2fd12af302f7884cff26925732d3abc04a95e | |
parent | 5bdf96c2160a80e6e9c18629e9fd2ba82cdc5d25 (diff) |
improve cabal instructions to handle installing c2hs
-rw-r--r-- | doc/install/OSX.mdwn | 8 | ||||
-rw-r--r-- | doc/install/cabal.mdwn | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/doc/install/OSX.mdwn b/doc/install/OSX.mdwn index 2f08190c6..b91f8353b 100644 --- a/doc/install/OSX.mdwn +++ b/doc/install/OSX.mdwn @@ -16,7 +16,8 @@ sudo brew update sudo brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre libgsasl gnutls libidn libgsasl pkg-config libxml2 sudo brew link libxml2 cabal update -cabal install git-annex --bindir=$HOME/bin +PATH=$HOME/bin:$PATH +cabal install c2hs git-annex --bindir=$HOME/bin </pre> ## using MacPorts @@ -31,14 +32,15 @@ sudo port install git-core ossp-uuid md5sha1sum coreutils pcre sudo ln -s /opt/local/include/pcre.h /usr/include/pcre.h # This is hack that allows pcre-light to find pcre sudo cabal update -cabal install git-annex --bindir=$HOME/bin +PATH=$HOME/bin:$PATH +cabal install c2hs git-annex --bindir=$HOME/bin </pre> ## PATH setup Do not forget to add to your PATH variable your ~/bin folder. In your .bashrc, for example: <pre> -PATH=$HOME/bin:/usr/bin/local:$PATH +PATH=$HOME/bin:$PATH </pre> See also: diff --git a/doc/install/cabal.mdwn b/doc/install/cabal.mdwn index c4c388e0d..942ee60cd 100644 --- a/doc/install/cabal.mdwn +++ b/doc/install/cabal.mdwn @@ -1,7 +1,8 @@ As a haskell package, git-annex can be installed using cabal. For example: cabal update - cabal install c2hs git-annex --bindir=$HOME/bin + PATH=$HOME/bin:$PATH + cabal install c2hs git-annex --bindir=$HOME/bin The above downloads the latest release and installs it into a ~/bin/ directory, which you can put in your PATH. @@ -10,6 +11,7 @@ But maybe you want something newer (or older). Then [[download]] the version you want, and use cabal as follows inside its source tree: cabal update + PATH=$HOME/bin:$PATH cabal install c2hs --bindir=$HOME/bin cabal install --only-dependencies cabal configure |