Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with dependencies when trying to configure Setup.hs despite having dependencies installed

I've been provided with a Setup.hs file, along with another .hs file that contains the source code. Whenever I try to configure the install by the following:

runhaskell Setup.hs configure

I get the error:

Setup: At least the following dependencies are missing: binary >=0.4.0 && <0.6.0, haskeline ==0.6.*

I've since installed these dependencies using cabal, but when I try to run the Setup configure command again, I get the same error. I'm completely new to Haskell - is there another step I'm missing after doing a cabal install before trying to run Setup again?

like image 804
mawhidby Avatar asked Dec 10 '10 03:12

mawhidby


1 Answers

How did you install the packages? If you installed them with the --userflag, then you also need to configure with the --user flag.

You can verify that the packages are installed by running ghc-pkg list binary and ghc-pkg list haskeline. It will list the installed package versions matching that name along with where they are installed.

like image 140
Heatsink Avatar answered Oct 31 '22 11:10

Heatsink