Difference between revisions of "Gentoo/HaskellPlatform"

From HaskellWiki
Jump to navigation Jump to search
(Add haskell-updater to p.unmask file)
(added information about overlay, as people did not know about it)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Gentoo supports the Haskell Platform!
 
Gentoo supports the Haskell Platform!
   
  +
==Setup==
==Unmasking GHC 6.10.4 and the Haskell Platform==
 
   
  +
There are two ways to install haskell-platform, from the main portage tree or the overlay. The version in portage isn't the latest, so some work must be done to set this up. To use the overlay, we just need to add it. The overlay is recommended.
Currently (2009-08-02) GHC 6.10.4 and a few libraries are hard masked, meaning you will have to p.unmask yourself before installing. This is because we're still updating the portage packages to get full GHC 6.10.4 support.
 
   
  +
===Overlay===
<code>
 
echo dev-lang/ghc >> /etc/portage/package.unmask
 
echo dev-haskell/parallel >> /etc/portage/package.unmask
 
echo dev-haskell/haddock >> /etc/portage/package.unmask
 
echo app-admin/haskell-updater >> /etc/portage/package.unmask
 
</code>
 
   
  +
To get the latest version use the overlay. If you haven't already, [http://www.gentoo.org/proj/en/overlays/userguide.xml install layman] (this is used to setup overlays). Then run 'layman -a haskell' to install the haskell overlay. Now you are ready to [[#Install|install]].
As the haskell-platform depends on this recent GHC version, you'll need to unmask it too;
 
   
  +
===Portage Setup===
<code>
 
  +
echo dev-haskell/haskell-platform >> /etc/portage/package.unmask
 
  +
To use the version in the portage tree, some work must be done. On 64 bit systems the ebuilds is not stable yet, so they need to be enabled by adding these entries to /etc/portage/package.keywords
</code>
 
  +
  +
<pre>
 
dev-haskell/haskell-platform
  +
dev-haskell/fgl
  +
dev-haskell/haskell-src
  +
dev-haskell/html
  +
dev-haskell/network
  +
dev-haskell/zlib
  +
dev-haskell/mtl
  +
dev-haskell/cabal-install
  +
dev-haskell/stm
  +
dev-haskell/parsec
  +
dev-haskell/regex-posix
  +
dev-haskell/happy
  +
dev-haskell/xhtml
  +
dev-haskell/editline
  +
dev-haskell/cgi
  +
dev-haskell/parallel
  +
dev-haskell/time
  +
dev-haskell/quickcheck
  +
dev-lang/ghc
  +
dev-haskell/glut
  +
dev-haskell/http
  +
dev-haskell/regex-base
  +
app-admin/haskell-updater
  +
dev-haskell/haddock
 
</pre>
  +
  +
Furthermore, because the ebuild for haskell-platform (dev-haskell/haskell-platform-2009.2.0.2) uses the old version of ghc (dev-lang/ghc-6.10.4), it will conflict with newer ebuilds that use newer versions such as ghc-6.12.3. In order to resolve this conflict the newer ebuilds that uses ghc-6.12.3 need to be masked by adding these entries to /etc/portage/package.mask
   
  +
<pre>
Don't forget that these packages are also ~keyworded.
 
  +
=dev-lang/ghc-6.12.3
 
=app-admin/haskell-updater-1.1.3.0
  +
=dev-haskell/stm-2.1.2.2
  +
=dev-haskell/haddock-2.6.1
 
</pre>
   
 
==Install==
 
==Install==
Line 25: Line 54:
   
 
<code>
 
<code>
emerge haskell-platform
+
emerge haskell-platform
 
</code>
 
</code>
   
This will pull the GHC compiler, and all the libraries included in HP. If you want haddock documentation, set your <code>USE="doc"</code>. If you also want profiling libraries, set <code>USE="profile"</code>.
+
This will pull the GHC compiler, Cabal, and all the libraries included in HP. If you want haddock documentation, set your <code>USE="doc"</code>. If you also want profiling libraries, set <code>USE="profile"</code>.
   
 
==Feedback==
 
==Feedback==

Revision as of 11:45, 29 September 2011

Gentoo supports the Haskell Platform!

Setup

There are two ways to install haskell-platform, from the main portage tree or the overlay. The version in portage isn't the latest, so some work must be done to set this up. To use the overlay, we just need to add it. The overlay is recommended.

Overlay

To get the latest version use the overlay. If you haven't already, install layman (this is used to setup overlays). Then run 'layman -a haskell' to install the haskell overlay. Now you are ready to install.

Portage Setup

To use the version in the portage tree, some work must be done. On 64 bit systems the ebuilds is not stable yet, so they need to be enabled by adding these entries to /etc/portage/package.keywords

dev-haskell/haskell-platform  
dev-haskell/fgl  
dev-haskell/haskell-src
dev-haskell/html
dev-haskell/network
dev-haskell/zlib
dev-haskell/mtl
dev-haskell/cabal-install
dev-haskell/stm
dev-haskell/parsec
dev-haskell/regex-posix
dev-haskell/happy
dev-haskell/xhtml
dev-haskell/editline
dev-haskell/cgi
dev-haskell/parallel
dev-haskell/time
dev-haskell/quickcheck
dev-lang/ghc
dev-haskell/glut
dev-haskell/http
dev-haskell/regex-base
app-admin/haskell-updater
dev-haskell/haddock

Furthermore, because the ebuild for haskell-platform (dev-haskell/haskell-platform-2009.2.0.2) uses the old version of ghc (dev-lang/ghc-6.10.4), it will conflict with newer ebuilds that use newer versions such as ghc-6.12.3. In order to resolve this conflict the newer ebuilds that uses ghc-6.12.3 need to be masked by adding these entries to /etc/portage/package.mask

=dev-lang/ghc-6.12.3
=app-admin/haskell-updater-1.1.3.0
=dev-haskell/stm-2.1.2.2
=dev-haskell/haddock-2.6.1

Install

Now, to install, run:

emerge haskell-platform

This will pull the GHC compiler, Cabal, and all the libraries included in HP. If you want haddock documentation, set your USE="doc". If you also want profiling libraries, set USE="profile".

Feedback

Got any feedback for the packages above? Let us know!

You'll find us in #gentoo-haskell @ freenode, or send your comments to haskell@gentoo.org.