Ticket #358 (closed defect: fixed)

Opened 5 years ago

Last modified 17 months ago

cabal-install bootstrap.sh missing some dependencies

Reported by: Araneidae Owned by:
Priority: normal Milestone: cabal-install-0.6
Component: cabal-install tool Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: very easy (<1 hour)
GHC Version: 6.8.2 Platform:

Description

The following dependencies are not checked for or installed by bootstrap.sh: network, parsec, mtl.

On a fresh install of ghc 6.8.2 on Ubuntu 8.04 these packages are missing and need to be installed manually.

Attachments

bootstrap.sh.patch Download (2.4 KB) - added by rnicholson 4 years ago.

Change History

Changed 5 years ago by duncan

  • milestone set to cabal-install-0.6

Changed 4 years ago by rnicholson

Had the same problem as Araneidae (although was using GHC 6.8.3 on MacOS X; which probably doesn't matter). Attaching patch of changes I made to bootstrap.sh to get it to work.

Changed 4 years ago by rnicholson

Changed 4 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed

I think the bootstrap.sh should not be installing mtl, parsec or network. However it should check that they are already installed and if not advise the user to install them. One reason is that it's not that easy to know which versions to install, it depends on the version of ghc you are using (eg 6.6, 6.8 or 6.10).

Anyone who uses a GHC installer will have them already, anyone who uses a native OS package can get the corresponding OS packages for mtl etc. Anyone who manages to build ghc from source can also build the other packages.

I have, I hope, made significant improvements to the bootstrap script however:

Thu Jan 15 10:22:10 GMT 2009  Duncan Coutts <duncan@haskell.org>
  * Rewrite the bootstrap.sh script
  Hopefully more useful and more robust. In particular it does not
  download and install packages where suitable versions are already
  installed. It also checks for deps.

Thu Jan 15 11:06:12 GMT 2009  Duncan Coutts <duncan@haskell.org>
  * More improvments to the bootstrap.sh script

Thu Jan 15 11:32:27 GMT 2009  Duncan Coutts <duncan@haskell.org>
  * Traditional /bin/sh portability fixes for bootstrap.sh

One particular problem I'm trying to avoid with this is users of ghc-6.10, who already have Cabal-1.6.0.1, re-installing that package in the per-user package db, since that only causes problems.

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.