Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:


Ticket #164 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Installing packages using cabal fails on Haskell Platform 2011.2.0 on Mac OS X

Reported by: mvanier Owned by: MtnViewMark
Priority: major Milestone: 2011.4.0.0
Component: (none-specified) Keywords:
Cc: gale@…

Description

I just installed the Haskell Platform (2011.2.0) on my Mac. I've done this on every previous release with few or no problems. Now, however, trying to use cabal to install a package fails for almost all packages. I'm attaching the result of trying to install the latest version of cabal-install, but the same kind of errors result from installing many other packages (agda, haskeline, xmobar, etc.).

Attachments

failed_install.out (20.2 kB) - added by mvanier 4 years ago.
check.out (9.0 kB) - added by mvanier 4 years ago.
Output of ghc-pkg check

Change History

Changed 4 years ago by mvanier

Changed 4 years ago by dons

Errors due to Cabal-1.8.0.6 dependencies? What's the output of ghc-pkg ? and ghc-pkg check

Changed 4 years ago by mvanier

Output of ghc-pkg check

Changed 4 years ago by mvanier

I've attached the output of ghc-pkg check.

Changed 4 years ago by YitzGale

  • cc gale@… added

Changed 4 years ago by MtnViewMark

  • owner set to MtnViewMark

My suspicion is that the "cabal" command on your $PATH is old cabal, not new. If you run "cabal --version" you should see:

>: cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library 

If you don't see that, try running "/usr/bin/cabal --version" -- and I suspect that will show the newer one.

In this case, if you have nothing precious there, just "rm -rf ~/.cabal" -- and ensure there is no cabal executable (or symlink) lurking in ~/bin or /usr/local/bin. Finally, on the next execution of cabal, you'll get new cabal, and the new package install locations for --user (under ~/Library/Haskell)

Changed 4 years ago by mvanier

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

You're correct -- that was the problem and your fix works. Thanks!

Changed 4 years ago by mvanier

One more thing: I had to delete my ~/.ghc directory for everything to work properly.

Note: See TracTickets for help on using tickets.