docs: mention C libs in the cabal install instructions
This commit is contained in:
parent
7fc1ceb8f9
commit
8111a71246
13
INSTALL.md
13
INSTALL.md
@ -40,7 +40,15 @@ use the troubleshooting tips below if needed.
|
|||||||
|
|
||||||
Ensure you have [GHC](http://hackage.haskell.org/ghc/) or
|
Ensure you have [GHC](http://hackage.haskell.org/ghc/) or
|
||||||
the [Haskell Platform](http://hackage.haskell.org/platform/) installed.
|
the [Haskell Platform](http://hackage.haskell.org/platform/) installed.
|
||||||
hledger currently requires GHC 7.2 or greater, and hledger-web requires GHC 7.4 or greater.
|
hledger requires GHC 7.2 or greater, and hledger-web requires GHC 7.4 or greater.
|
||||||
|
|
||||||
|
Also note that some Haskell packages depend on C packages, and cabal
|
||||||
|
currently isn't able to install or identify those for you. A common
|
||||||
|
issue is not having all the ncurses C libraries installed. A quick way
|
||||||
|
to ensure you have all required C libs is to
|
||||||
|
[install hledger once with your system package manager](#install-with-your-system-package-manager)
|
||||||
|
before installing the latest version with cabal.
|
||||||
|
|
||||||
Then install the hledger command-line tool:
|
Then install the hledger command-line tool:
|
||||||
|
|
||||||
$ cabal update
|
$ cabal update
|
||||||
@ -78,6 +86,8 @@ To download and build the latest development version of hledger, ensure you have
|
|||||||
$ cabal update
|
$ cabal update
|
||||||
$ cabal install ./hledger-lib ./hledger [./hledger-web]
|
$ cabal install ./hledger-lib ./hledger [./hledger-web]
|
||||||
|
|
||||||
|
The same [notes about C libs etc.](#install-from-hackage-with-cabal) apply.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
There are a lot of ways things can go wrong. Here are
|
There are a lot of ways things can go wrong. Here are
|
||||||
@ -190,4 +200,3 @@ or get help.
|
|||||||
|
|
||||||
#. **hledger-chart requires GTK-related libraries**
|
#. **hledger-chart requires GTK-related libraries**
|
||||||
On Ubuntu, eg, install the `libghc6-gtk-dev` package. See also [Gtk2Hs installation notes](http://code.haskell.org/gtk2hs/INSTALL).
|
On Ubuntu, eg, install the `libghc6-gtk-dev` package. See also [Gtk2Hs installation notes](http://code.haskell.org/gtk2hs/INSTALL).
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user