[haskell-platform] #98: ./configure doesn't fully respect --prefix

haskell-platform haskell-platform at projects.haskell.org
Sun Oct 25 15:42:56 EDT 2009

#98: ./configure doesn't fully respect --prefix
 Reporter:  zooko             |        Owner:         
     Type:  defect            |       Status:  closed 
 Priority:  major             |    Milestone:         
Component:  (none-specified)  |   Resolution:  wontfix
 Keywords:  packaging         |  
Changes (by duncan):

  * status:  new => closed
  * resolution:  => wontfix


 The problem is that we must register the packages you install with ghc.
 That is done by modifying a package database. This file does not generally
 live under the prefix you specify. Therefore we cannot fully respect the
 prefix you specify (at least if we want it to work).

 There are two standard package databases. One is the global one. This is
 the default one that the ./configure script will use. The other one is the
 per-user package database. The ./configure script will use this one if you
 specify --enable-user-install.

 The ./configure script usually auto-detects if it should use the global or
 user package db by checking if the prefix you're using is under `$HOME/`.
 However that simple test obviously does not work for your use case.

 You will either have to register the package only in the per-user package
 db, or you will need to do the install step as root so that the global
 package db can be modified.

Ticket URL: <http://trac.haskell.org/haskell-platform/ticket/98#comment:3>
haskell-platform <http://trac.haskell.org/haskell-platform>
The Haskell Platform: a comprehensive and robust collection of Haskell libraries

More information about the Haskell-platform mailing list