Cannot install the Haskell Platform on GNU/Linux (possible Cabal issue)

Hello guys, I cannot install the Haskell Platform 2014.2.0.0 on my GNU/Linux system: $ ./platform.sh \ > --prefix=/opt/haskell-platform/haskell-platform-2014.2.0.0 \ > ../ghc-7.8.3/ghc-7.8.3-i386-unknown-linux.tar.bz2 Warning: The following packages are likely to be broken by the reinstalls: haskell-platform-2013.2.0.0 Use --force-reinstalls if you want to install anyway. === pre-requisite packages for hptool are not installed run the following: cd hptool ; cabal install --only-dependencies However, the dependencies for *hptool* are already installed: $ cd hptool ; cabal install --only-dependencies Resolving dependencies... All the requested packages are already installed: Use --reinstall if you want to reinstall anyway. The existing Haskell system: - GHC 7.6.3 - Haskell Platform 2013.2.0.0 - cabal-install 1.16.0.2 (using Cabal library 1.16.0) Any help? Thank you.

On Thu, Aug 14, 2014 at 2:00 PM, egarrulo
I cannot install the Haskell Platform 2014.2.0.0 on my GNU/Linux system:
$ ./platform.sh \ > --prefix=/opt/haskell-platform/haskell-platform-2014.2.0.0 \ > ../ghc-7.8.3/ghc-7.8.3-i386-unknown-linux.tar.bz2 Warning: The following packages are likely to be broken by the reinstalls: haskell-platform-2013.2.0.0 Use --force-reinstalls if you want to install anyway. === pre-requisite packages for hptool are not installed
You can't have two versions of the Platform installed into the same ghc; ghc will become extremely confused. This is essentially a ghc shortcoming that the Platform can't work around. The hptool issue is likely that you have an older version installed than the new Platform requires, and the newer one is not compatible with the older Platform. Again, installing a separate ghc for the new Platform should resolve this. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

2014-08-14 20:10 GMT+02:00, Brandon Allbery
You can't have two versions of the Platform installed into the same ghc; ghc will become extremely confused. This is essentially a ghc shortcoming that the Platform can't work around.
However, the README says: The machine doing the build needs to have a working Haskell setup: Usually, GHC (7.4 or later), Cabal (1.16 or later), and haddock and HsColour must be on the $PATH. This is what I am trying to do: I have a working installation of the old GHC plus the old Platform, and I am using it to build the new Platform. Otherwise, where am I supposed to get Cabal? AFAIK, Cabal comes with the Platform. Am I missing anything?
The hptool issue is likely that you have an older version installed than the new Platform requires, and the newer one is not compatible with the older Platform.
Is `hptool' an executable? If so, then there is no `hptool' in the path.
Again, installing a separate ghc for the new Platform should resolve this.
I have a working installation of the new GHC, but `platform.sh' requires a tarball, and Cabal. Thanks for your help.

On Thu, Aug 14, 2014 at 2:48 PM, egarrulo
However, the README says:
The machine doing the build needs to have a working Haskell setup: Usually, GHC (7.4 or later), Cabal (1.16 or later), and haddock and HsColour must be on the $PATH.
This is what I am trying to do: I have a working installation of the old GHC plus the old Platform, and I am using it to build the new Platform. Otherwise, where am I supposed to get Cabal? AFAIK, Cabal comes with the Platform. Am I missing anything?
You need to install a base ghc from haskell.org/ghc, minus the Platform. HsColour from the old installation can be used as is, since it is a program and not (used as) a library here. Cabal refers to the Cabal library, which is part of ghc, *not* cabal-install which is the "cabal" command and which is part of the Platform. (The library predates cabal-install by the better part of a decade, hence the unfortunate naming.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 14/08/14 21:35, Brandon Allbery wrote:
You need to install a base ghc from haskell.org/ghc http://haskell.org/ghc, minus the Platform. HsColour from the old installation can be used as is, since it is a program and not (used as) a library here. Cabal refers to the Cabal library, which is part of ghc, *not* cabal-install which is the "cabal" command and which is part of the Platform. (The library predates cabal-install by the better part of a decade, hence the unfortunate naming.)
But `platform.sh' needs the `cabal' command: $ ./platform.sh \
--prefix=/opt/haskell-platform/haskell-platform-2014.2.0.0 \ ../ghc-7.8.3/ghc-7.8.3-i386-unknown-linux.tar.bz2 ./platform.sh: 24: cabal: not found
*** Building hptool *** ./platform.sh: 29: cabal: not found Thanks.

On Thu, Aug 14, 2014 at 5:33 PM, egarrulo
$ ./platform.sh \
--prefix=/opt/haskell-platform/haskell-platform-2014.2.0.0 \ ../ghc-7.8.3/ghc-7.8.3-i386-unknown-linux.tar.bz2 ./platform.sh: 24: cabal: not found
That strikes me as slightly off, I'd expect it to install an appropriate one from the bootstrap. If not, you'll need http://www.haskell.org/cabal/release/cabal-install-1.20.0.3/cabal-install-1.... and use the bootstrap install method (bootstrap.sh from the install package). The complication here is that it might pull in dependencies that differ from the Platform, which is why I would expect the Platform install script to do this itself so it can manage the dependencies appropriately. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 14/08/14 23:41, Brandon Allbery wrote:
./platform.sh: 24: cabal: not found
That strikes me as slightly off, I'd expect it to install an appropriate one from the bootstrap. If not, you'll need http://www.haskell.org/cabal/release/cabal-install-1.20.0.3/cabal-install-1.... and use the bootstrap install method (bootstrap.sh from the install package). The complication here is that it might pull in dependencies that differ from the Platform, which is why I would expect the Platform install script to do this itself so it can manage the dependencies appropriately.
`cabal' is the first program that `platform.sh' calls[1]. If the installation script does not work and I am not doing anything wrong , then I would rather file a bug report. Thanks for your help. [1] https://github.com/haskell/haskell-platform/blob/2014.2.0.0/platform.sh

On 2014年08月15日 03:00, egarrulo wrote:
I cannot install the Haskell Platform 2014.2.0.0 on my GNU/Linux system: <SNIP> Any help? Thank you.
With the new Haskell Platform release, my development environment is even further from standard, but here is how I do it: http://www.extellisys.com/articles/haskell-on-debian-wheezy Cheers, Travis
participants (3)
-
Brandon Allbery
-
egarrulo
-
Travis Cardwell