title |
---|
Distribution packages |
The OS-specific packages (eg. RPMs on Linux) are generally a better bet
than the vanilla .tar.bz2
binary bundles, because they will check for
dependencies and allow the package to be uninstalled at a later date.
While they may lag behind the latest GHC release, we recommend using them anyway for the above reasons, unless you have a particular need for new features or bug fixes.
Packages are available for the following systems:
- Arch Linux (i386, amd64)
- Debian (alpha, amd64, arm, hppa, i386, ia64, mips, mipsel, powerpc, s390, sparc)
- Fedora (i386, ppc, x86_64)
- FreeBSD (x86)
- Gentoo (alpha, amd64, hppa, ia64, ppc, ppc64, sparc, x86, x86 fbsd)
- MacOS X (Intel, PowerPC)
- NetBSD (x86)
- Nix/NixOS (amd64, x86)
- OpenBSD (x86)
- openSUSE (i586, x86_64)
- Ubuntu (amd64, i386, powerpc)
GHC packages are in the Arch Linux "extra" repository.
The packages are maintained by Vesa Kaihlavirta and Don Stewart. For more information on Arch Haskell packaging, see the Haskell package guidelines.
All Debian platforms have ghc6 packages in the main Debian archive. Use
apt-get update && apt-get install ghc6 ghc6-prof ghc6-doc
to install
them as normal; you can also get the library sources in the
ghc6-libsrc
package.
The extralibs, as well as various other libraries, are available as
libghc6-library-dev
. You may also want libghc6-library-prof
and
libghc6-library-doc
for the profiling libraries and documentation
respectively, but sometimes this will be included in the main package.
The packages are maintained by Kari Pahula. Debian Haskell packaging is coordinated on the Debian Haskell mailing list.
Fedora users can install with
yum install ghc
. The packages are maintained by the Fedora Haskell
SIG.
Jens Petersen also maintains a set of COPR packages, which are typically more up-to-date than the official repository paackages.
GHC is in the FreeBSD ports tree as
lang/ghc
.
To install a binary package, try pkg_add -r ghc
provided the package
exists on whatever mirror site your system is set up to use.
To install from source instead, make sure your copy of /usr/ports
is
up to date, and say cd /usr/ports/lang/ghc && make install
.
The packages are maintained by [email protected]. For more information on FreeBSD Haskell packaging, see the Haskell FreeBSD Effort.
GHC is available as an ebuild. Run emerge dev-lang/ghc
to get the
latest version Gentoo considers stable; later versions may be available
but masked.
The packages are maintained by the Gentoo Haskell team.
For macOS we provide binary tarballs, available on the download page for each release. We recommend using these installers rather than using the alternatives below.
GHC is also available via the MacPorts and Homebrew systems.
GHC 7.6 is in the NetBSD package tree as lang/ghc7
. No newer releases are
available.
To install a binary package, try pkg_add -r ghc
provided the package
exists on whatever mirror site your system is set up to use. To install
from source instead, make sure your copy of /usr/pkgsrc
is up to date,
and say cd /usr/pkgsrc/lang/ghc && make install
.
GHC is included in nixpkgs
as the ghc
derivation.
GHC is included in the OpenBSD ports tree as lang/ghc
. Make sure your ports
tree is up to date, and say cd /usr/ports/lang/ghc && make install
.
The packages are maintained by Don Stewart.
RPMs are available from openSUSE.
Ubuntu has GHV packages in its
universe repository. Enable the universe repository in Synaptics, and
then install the ghc
, ghc-prof
and ghc-doc
packages.
The extralibs, as well as various other libraries, are available as
libghc-library-dev
. You may also want libghc-library-prof
and
libghc-library-doc
for the profiling libraries and documentation
respectively. You can also get the library sources in the ghc-libsrc
package.
Alternatively, you can install from the command line: use
apt-get update && apt-get install ghc ghc-prof ghc-doc
to install GHC.
Finally, a variety of older and newer releases are available in hvr
's
PPA. This can be
enabled with,
Ubuntu generally gets its Haskell packages from Debian. See also the Ubuntu Haskell page.