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

haskell-platform haskell-platform at projects.haskell.org
Fri Oct 23 19:51:24 EDT 2009


#98: ./configure doesn't fully respect --prefix
------------------------------+---------------------------------------------
 Reporter:  zooko             |       Owner:           
     Type:  defect            |      Status:  new      
 Priority:  major             |   Milestone:           
Component:  (none-specified)  |    Keywords:  packaging
------------------------------+---------------------------------------------
 I tried to follow these instructions to install the Haskell platform on my
 Linux system.  I have a policy that packages do not get to run an
 installer with sudo power -- instead I use GNU stow to symlink a package
 into the system after it has installed itself into a specific
 {{{--prefix}}} which is just for that one package.

 The unix src bundle seems to be not fully prespecting the {{{--prefix}}}
 option to {{{./configure}}}:

 {{{
 wget http://hackage.haskell.org/platform/2009.2.0.2/haskell-
 platform-2009.2.0.2.tar.gz
 tar -xzf haskell-platform-2009.2.0.2.tar.gz
 cd haskell-platform-2009.2.0.2
 ./configure --prefix=/usr/local/stow/haskell-platform-2009.2.0.2
 make
 sudo mkdir -p /usr/local/stow/haskell-platform-2009.2.0.2
 sudo chown `whoami` /usr/local/stow/haskell-platform-2009.2.0.2
 make install
 }}}

 This fails with:

 {{{
 scripts/install.sh
 Installing mtl-1.1.0.2...
 Installing library in
 /usr/local/stow/haskell-platform-2009.2.0.2/lib/mtl-1.1.0.2/ghc-6.10.4
 Writing package registration file: mtl-1.1.0.2.conf for mtl-1.1.0.2...
 Reading package info from "mtl-1.1.0.2.conf" ... done.
 Writing new package config file... ghc-pkg:
 /var/lib/ghc-6.10.4/./package.conf: you don't have permission to modify
 this file

 Error:
 Registering the package mtl-1.1.0.2 failed
 make: *** [install] Error 2
 }}}

 Is there a different {{{./configure}}} option I could use to tell it to
 use a different location of {{{package.conf}}}?  In any case, it seems
 like the location of that file, like all files, should be controlled by
 {{{--prefix}}}.

 Thanks!

-- 
Ticket URL: <http://trac.haskell.org/haskell-platform/ticket/98>
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