Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing dependencies in haskell

Tags:

haskell

cabal

I was trying to install cabal-dev in my mac. After cloing, I tried to run ./bin/build. to get this error message.

cabal: cannot configure cabal-dev-0.9.1. It requires MonadRandom ==0.1.*, tar
==0.3.*, test-framework >=0.3 && <0.6 and test-framework-hunit >=0.2
There is no available version of MonadRandom that satisfies ==0.1.*
There is no available version of tar that satisfies ==0.3.*
There is no available version of test-framework that satisfies >=0.3 && <0.6
There is no available version of test-framework-hunit that satisfies >=0.2

What's wrong with this? How do I install the dependency files in Haskell? I downloaded and installed from Haskell platform.

like image 435
prosseek Avatar asked Apr 17 '12 04:04

prosseek


2 Answers

You don't have to use that build script; you can install cabal-dev just by running cabal install cabal-dev, which will automatically download and install cabal-dev and its dependencies.

But if you do want to use it, try cabal install --only-dependencies in cabal-dev's source directory first (the one with cabal-dev.cabal in it). That script's purpose is to avoid avoid installing into the global and user package databases — basically, it uses the same sandboxing cabal-dev itself does. It's probably not worth the effort, since cabal-dev installs just fine like every other program.

like image 158
ehird Avatar answered Nov 01 '22 01:11

ehird


Issue the command cabal install cabal-dev. It will resolve the dependencies for you, assuming you have the standard cabal dist.

like image 45
rotskoff Avatar answered Oct 31 '22 23:10

rotskoff