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-188.8.131.52... Installing library in /usr/local/stow/haskell-platform-2009.2.0.2/lib/mtl-184.108.40.206/ghc-6.10.4 Writing package registration file: mtl-220.127.116.11.conf for mtl-18.104.22.168... Reading package info from "mtl-22.214.171.124.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-126.96.36.199 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.