[Hackage] #601: cabal setup doesn't respect --prefix

Hackage trac at galois.com
Fri Oct 23 23:27:56 EDT 2009


#601: cabal setup doesn't respect --prefix
----------------------------+-----------------------------------------------
  Reporter:  zooko          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.6.0.1
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  unknown
Ghcversion:                 |     Platform:         
----------------------------+-----------------------------------------------
Comment (by zooko):

 Saizan on IRC told me about the {{{--package-db}}} option.  I tried it
 like this:

 {{{
 ./Setup configure --prefix=/usr/local/stow/Cabal --package-
 db=/usr/local/stow/Cabal/var/lib/package.conf
 Configuring Cabal-1.6.0.2...
 Setup: ghc-pkg dump failed
 }}}

 then I wondered if I needed to mkdir the path for it first, so I did:

 {{{
 mkdir -p /usr/local/stow/Cabal/var/lib/
 ./Setup configure --prefix=/usr/local/stow/Cabal --package-
 db=/usr/local/stow/Cabal/var/lib/package.conf
 Configuring Cabal-1.6.0.2...
 Setup: ghc-pkg dump failed
 }}}

 Then Saizan suggested touching it or echoing [] into it:

 That did it!

 {{{
 touch /usr/local/stow/Cabal/var/lib/package.conf
 ./Setup configure --prefix=/usr/local/stow/Cabal --package-
 db=/usr/local/stow/Cabal/var/lib/package.conf
 Configuring Cabal-1.6.0.2...
 Setup: ghc-pkg dump failed
 echo "[]" >> /usr/local/stow/Cabal/var/lib/package.conf
 ./Setup configure --prefix=/usr/local/stow/Cabal --package-
 db=/usr/local/stow/Cabal/var/lib/package.conf
 Configuring Cabal-1.6.0.2...
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/601#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list