[Haskell-beginners] Re: Haskell, Ray Tracing, Parallel Computation

Christian Maeder Christian.Maeder at dfki.de
Fri Jan 15 13:13:17 EST 2010

Jon Harrop schrieb:
> On Friday 15 January 2010 15:17:38 Tom Davie wrote:
>> You should be able to get it just by running cabal update & cabal install
>> AC-Vector.


AC-Vector is a simple (single source) package only requiring the base
package, so even without "cabal-install" (that installs the "cabal"
binary) you should be able to download and unpack it:

  cd AC-Vector-1.1.1
  ghc --make Setup.hs
  ./Setup install --user
  ./Setup build
  ./Setup install

> When I run "cabal install" it says:
> $ cabal update
> Downloading the latest package list from hackage.haskell.org
> Note: there is a new version of cabal-install available.
> To upgrade, run: cabal install cabal-install

I wonder which "cabal" binary was used? (from an old installation?)

> If I run "cabal install cabal-install" as it suggests then it appears to do a 
> lot of work, ending with this:
> ...
> [33 of 34] Compiling Distribution.Client.List ( Distribution/Client/List.hs, 
> dist/build/cabal/cabal-tmp/Distribution/Client/List.o )
> [34 of 34] Compiling Main             ( Main.hs, 
> dist/build/cabal/cabal-tmp/Main.o )
> Linking dist/build/cabal/cabal ...
> Installing executable(s) in /home/jdh30/.cabal/bin

So a new binary was installed in /home/jdh30/.cabal/bin. Check if

  /home/jdh30/.cabal/bin/cabal --version


  cabal-install version 0.8.0
  using version of the Cabal library

and replace your older cabal version (in your PATH).

If you still see an older version (of the Cabal library) you may need to
bootstrap cabal-install-0.8.0 and manually install parsec- and
network (i.e. version before (as described above for AC-Vector).

Cheers Christian

P.S. If you add "--global" to "cabal install" binaries will be installed
under /usr/local/bin (and libraries in the global package.conf file)

More information about the Beginners mailing list