improve cabal instructions to handle installing c2hs

This commit is contained in:
Joey Hess 2012-12-09 11:51:45 -04:00
parent 42bb811c5b
commit 0a52db2ea9
2 changed files with 8 additions and 4 deletions

View file

@ -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:

View file

@ -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