Ticket #551 (closed defect: fixed)

Opened 4 years ago

Last modified 17 months ago

cabal-install config file lacking

Reported by: guest Owned by:
Priority: high Milestone: cabal-install-0.6
Component: cabal-install tool Version: 1.6.0.1
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform: Mac OS

Description (last modified by guest) (diff)

1. cabal-install can't work without a remote package server address.
2. this server should be specified in the ~/.cabal/config file.
3. cabal-install 0.6.2 does not provide such a file.
4. instructions on cabal-install page say that this file will be downloaded through a "cabal update" command.
5. however as no server is provided, "cabal update" can't download anything...
6. Goto step 2...

So now I have cabal-install, but it just does not do its work... Hence the "high" prority.

Change History

Changed 4 years ago by guest

  • description modified (diff)

Changed 4 years ago by duncan

At some point in that process you must have created a ~/.cabal/config file (but one that does not specify any servers). When the file is missing completely then indeed cabal update will create a ~/.cabal/config containing all defaults.

Try this:

$ rm ~/.cabal/config
$ cabal update

Changed 4 years ago by guest

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

Sorry, I am so ashamed... I forgot I added a custom config file. Really sorry to have presented this as a "bug", I should have asked before. It now all works perfectly.

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.