Quantcast
Channel: Hackage: Ticket #541: bootstrap.sh ignores PREFIX environment variable
Viewing all articles
Browse latest Browse all 4

comment added; resolution set; status changed

$
0
0
  • status changed from new to closed
  • resolution set to fixed

Thanks. It turns out this has been fixed in the dev version already:

Sun Mar 15 12:54:07 GMT 2009  Duncan Coutts <duncan@haskell.org>
  * Clarify the instructions in the README and bootstrap.sh
  Addresses the complaint in ticket #523.

See #523 for the improved wording of the README about doing update before the config file gets created.

Also, the PREFIX/HOME mistake was fixed in the same patch:

    hunk ./bootstrap.sh 135
    -  ./Setup configure --user "--prefix=${HOME}/.cabal" \
    +  ./Setup configure --user "--prefix=${PREFIX}" \

However I do not understand the problem about no config file existing. When I remove the config file and the cached package index and try to install something I get:

$ cabal install graphmod
Config file /home/duncan/.cabal/config not found.
Writing default configuration to /home/duncan/.cabal/config
Warning: The package list for 'hackage.haskell.org' does not exist. Run
'cabal update' to download it.
cabal: There is no package named graphmod

It sounds like you've got a partial config file rather than none at all.

We cannot create the config file at install time because global installs cannot create per-user config files. The best we can do is to improve things so that the config file is always created on the first run and explained appropriately.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images