Difference between revisions of "Diagrams/Install"

From HaskellWiki
Jump to navigation Jump to search
(installation info)
 
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
XXX add general installation instructions here
+
= Default installation =
   
  +
The first step is to install the [http://haskell.org/platform Haskell Platform], if you don't already have it. Then it should be enough to simply run
== Installing on Linux/Unix ==
 
   
  +
cabal install diagrams
As far as we know there are currently no issues installing diagrams on Linux/Unix systems.
 
   
  +
By default this will give you <code>diagrams-core</code> (core data structures), <code>diagrams-lib</code> (standard library), <code>diagrams-contrib</code> (user-contributed modules), and <code>diagrams-svg</code> (native Haskell backend outputting SVG files).
== Installing on Windows ==
 
   
  +
The <code>diagrams-rasterific</code> backend is also fully-featured and can output various raster formats; if you run
Cairo can unfortunately be difficult to install on Windows.
 
   
  +
cabal install -frasterific diagrams
[http://jystic.com/2010/10/20/installing-gtk2hs-on-windows/ Here are instructions] for installing gtk2hs on Windows. They work with the exception of the [http://hackage.haskell.org/trac/gtk2hs/ticket/1203 issue described here], which can be circumvented by passing the --global option to 'cabal install cairo' (if you don't mind installing cairo in the global package database).
 
   
  +
it will be installed as well.
[http://www.haskell.org/pipermail/haskell-cafe/2011-May/091656.html Here is a discussion] about the most recent difficulties.
 
   
  +
There are also some [[/Install-cairo|very old installation instructions for the cairo backend]]; YMMV.
== Installing on Mac OS X ==
 
 
Many people have reported problems installing cairo on OS X. Please add any information, workarounds, error messages etc. here.
 

Latest revision as of 01:44, 19 April 2015

Default installation

The first step is to install the Haskell Platform, if you don't already have it. Then it should be enough to simply run

 cabal install diagrams

By default this will give you diagrams-core (core data structures), diagrams-lib (standard library), diagrams-contrib (user-contributed modules), and diagrams-svg (native Haskell backend outputting SVG files).

The diagrams-rasterific backend is also fully-featured and can output various raster formats; if you run

 cabal install -frasterific diagrams

it will be installed as well.

There are also some very old installation instructions for the cairo backend; YMMV.