2006-10-29 20:58:20 +01:00
|
|
|
% Installing Pandoc
|
|
|
|
|
|
|
|
# Installing GHC
|
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
To compile Pandoc, you'll need [GHC] version 6.4 or greater. If
|
|
|
|
you don't have GHC already, you can get it from the [GHC Download]
|
|
|
|
page.
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
[GHC]: http://www.haskell.org/ghc/
|
|
|
|
[GHC Download]: http://www.haskell.org/ghc/download.html
|
|
|
|
|
2006-11-19 22:24:33 +01:00
|
|
|
You'll also need standard build tools: [GNU `make`], `sed`, `bash`,
|
2006-11-07 07:17:56 +01:00
|
|
|
and `perl`. These are standard on unix systems (including MacOS
|
|
|
|
X). If you're using Windows, you can install [Cygwin].
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
[Cygwin]: http://www.cygwin.com/
|
2006-11-19 22:24:33 +01:00
|
|
|
[GNU `make`]: http://www.gnu.org/software/make/
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
# Installing Pandoc
|
|
|
|
|
|
|
|
1. Change to the directory containing the Pandoc distribution.
|
|
|
|
|
|
|
|
2. Compile:
|
|
|
|
|
|
|
|
make
|
|
|
|
|
2006-11-19 22:24:33 +01:00
|
|
|
If you get "Unknown modifier" errors, it is probably because `make`
|
|
|
|
on your system is not [GNU `make`]. Try using `gmake` instead.
|
|
|
|
|
2006-10-29 20:58:20 +01:00
|
|
|
3. See if it worked (optional, but recommended):
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
4. Install:
|
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
sudo make install
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
Note: This installs `pandoc`, together with its wrappers and
|
2006-11-07 07:17:56 +01:00
|
|
|
documentation, into the `/usr/local` directory. If you don't
|
|
|
|
have root privileges or would prefer to install `pandoc` and
|
|
|
|
the associated wrappers into your `~/bin` directory, type
|
|
|
|
this instead:
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
PREFIX=~ make install-exec
|
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
5. Build and install the Haskell libraries and library
|
|
|
|
documentation (optional):
|
2006-10-29 20:58:20 +01:00
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
make build-all
|
|
|
|
sudo make install-all
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
# Removing Pandoc
|
|
|
|
|
|
|
|
Each of the installation steps described above can be reversed:
|
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
sudo make uninstall
|
2006-10-29 20:58:20 +01:00
|
|
|
|
|
|
|
PREFIX=~ make uninstall-exec
|
|
|
|
|
2006-11-07 07:17:56 +01:00
|
|
|
sudo make uninstall-all
|
2006-10-29 20:58:20 +01:00
|
|
|
|