Stop! Tickets are now managed at GitHub.
Please enter new tickets, and find and edit existing tickets there:
Ticket #98 (closed defect: wontfix)
./configure doesn't fully respect --prefix
|Reported by:||zooko||Owned by:|
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-126.96.36.199... Installing library in /usr/local/stow/haskell-platform-2009.2.0.2/lib/mtl-188.8.131.52/ghc-6.10.4 Writing package registration file: mtl-184.108.40.206.conf for mtl-220.127.116.11... Reading package info from "mtl-18.104.22.168.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-22.214.171.124 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.