I would like to install the latest release of the Haskell platform on Debian wheezy. By executing
sudo apt-get install haskell-platform
I get ghc
version 7.4.1 (released in 2012) whereas the current version is 7.8.3.
So I have downloaded the current ghc
version source and built it: everything went fine and I can now execute ghc
.
I then downloaded the source distribution of the Haskell platform from here and in the README
file I find the instructions
REQUIREMENTS FOR BUILDING
You need the platform build files, either from the source repo or the source tarball. Build instructions are the same for either.
You need a GHC bindist that matches the OS you are compiling on. It must also match the GHC version used by the platform, currently 7.8.3. You can get this from: http://www.haskell.org/ghc/download_ghc_7_8_3
I actually do not want to use this, I would like to use the ghc
I have just built because, in the ghc documentation I read:
NOTE: If you have too old a version of libc, then you will get an error like "floating point exception" from the binaries in these bindists. You will need to either upgrade your libc (we're not sure what the minimum version required is), or use a binary package built for your distribution instead.
So, in order to be sure, I would prefer to use my build. But, the README
that
comes with haskell-platform-2014.2.0.0
does not say anything about such an option.
The only option that it offers is to run:
./platform.sh $PATH_TO_GHC_BINDIST_TARBALL
So: is there a way to build the Haskell platform using a ghc
binary that I have built
locally?
Check this Building and installing a system package
If you don't have a cabal binary (
which cabal
) you can build it from the platform packages.option 1: get it from your distribution
apt-get install cabal-install
option 2: build it from the platform packages, but you will need to build/install also the missing package dependencies, that must be present in the platform
cd
to the platform base folderThen to install the rest
cd
to the platform base folderYou may have to add
sudo
to install lines, depending on where you installed ghc