
Hi all. I'm having some issues setting up cabal on EC2. I've installed ghc 7.0.2, however, the bootstrap.sh script for cabal-install is complaining about missing dependencies:
Linking Setup ... Configuring Cabal-1.8.0.2... Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2 Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
ghc-pkg tells me that I have base and filepath installed:
/usr/local/lib/ghc-7.0.2/package.conf.d base-4.3.1.0
/usr/local/lib/ghc-7.0.2/package.conf.d filepath-1.2.0.0
Could there be an environment variable I need to set somewhere?

On Saturday 02 April 2011 11:10:42, Lyndon Maydwell wrote:
Hi all.
I'm having some issues setting up cabal on EC2.
I've installed ghc 7.0.2, however, the bootstrap.sh script for
cabal-install is complaining about missing dependencies:
Linking Setup ... Configuring Cabal-1.8.0.2...
That looks wrong. ghc-7 comes with Cabal-1.10, so you should better build cabal-install with that, that would be cabal-install-0.10. Which cabal-install package have you?
Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
That's a weird constraint. Impossible to fulfill, >= 4 && < 3.
Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
ghc-pkg tells me that I have base and filepath installed:
/usr/local/lib/ghc-7.0.2/package.conf.d
base-4.3.1.0
/usr/local/lib/ghc-7.0.2/package.conf.d
filepath-1.2.0.0
Could there be an environment variable I need to set somewhere?
Try downloading and unpacking cabal-install-0.10.* and run the bootstrap script from that. If that doesn't work, report again.

Thanks Daniel!
The version of cabal-install on this page seems to be out of date:
http://www.haskell.org/cabal/download.html
Luckily the other releases are listed at http://www.haskell.org/cabal/release.
This seems to have solved my issue.
On Sat, Apr 2, 2011 at 5:21 PM, Daniel Fischer
On Saturday 02 April 2011 11:10:42, Lyndon Maydwell wrote:
Hi all.
I'm having some issues setting up cabal on EC2.
I've installed ghc 7.0.2, however, the bootstrap.sh script for
cabal-install is complaining about missing dependencies:
Linking Setup ... Configuring Cabal-1.8.0.2...
That looks wrong. ghc-7 comes with Cabal-1.10, so you should better build cabal-install with that, that would be cabal-install-0.10. Which cabal-install package have you?
Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
That's a weird constraint. Impossible to fulfill, >= 4 && < 3.
Setup: At least the following dependencies are missing: base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
ghc-pkg tells me that I have base and filepath installed:
/usr/local/lib/ghc-7.0.2/package.conf.d
base-4.3.1.0
/usr/local/lib/ghc-7.0.2/package.conf.d
filepath-1.2.0.0
Could there be an environment variable I need to set somewhere?
Try downloading and unpacking cabal-install-0.10.* and run the bootstrap script from that. If that doesn't work, report again.

On Saturday 02 April 2011 11:51:03, Lyndon Maydwell wrote:
The version of cabal-install on this page seems to be out of date: http://www.haskell.org/cabal/download.html
So-so. Probably the majority of users are still on ghc-6.*, for them, 0.8.2 is the right choice. The page should have two links, one for ghc-6 and one for ghc-7, but I guess the Cabal cabal is too busy doing more important things (like writing code) to always think of updating the web-page.
Luckily the other releases are listed at http://www.haskell.org/cabal/release.
This seems to have solved my issue.
Good. Just a tip, generally, it's easier to get stuff from hackage, http://hackage.haskell.org/package/cabal-install in this case. You can see the dependencies listed there, and see what version fits best with what you have. If something depends on an older version of a library than you have, that's a bad sign. If something depends on a newer version of time, process, directory, random (a couple of others, basically what ghc itself was built with), that's a bad sign too. When in doubt, $ cabal install whatever --dry-run If that says it would install a library you already have, be careful, that may introduce the dreaded diamond dependency problem.

Many thanks to the Cabal devs :-)
On Sat, Apr 2, 2011 at 7:12 PM, Daniel Fischer
On Saturday 02 April 2011 11:51:03, Lyndon Maydwell wrote:
The version of cabal-install on this page seems to be out of date: http://www.haskell.org/cabal/download.html
So-so. Probably the majority of users are still on ghc-6.*, for them, 0.8.2 is the right choice. The page should have two links, one for ghc-6 and one for ghc-7, but I guess the Cabal cabal is too busy doing more important things (like writing code) to always think of updating the web-page.
Luckily the other releases are listed at http://www.haskell.org/cabal/release.
This seems to have solved my issue.
Good. Just a tip, generally, it's easier to get stuff from hackage, http://hackage.haskell.org/package/cabal-install in this case. You can see the dependencies listed there, and see what version fits best with what you have. If something depends on an older version of a library than you have, that's a bad sign. If something depends on a newer version of time, process, directory, random (a couple of others, basically what ghc itself was built with), that's a bad sign too. When in doubt, $ cabal install whatever --dry-run If that says it would install a library you already have, be careful, that may introduce the dreaded diamond dependency problem.
participants (2)
-
Daniel Fischer
-
Lyndon Maydwell