mawhidby
mawhidby

Reputation: 301

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?

Upvotes: 6

Views: 2110

Answers (1)

Heatsink
Heatsink

Reputation: 7761

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.

Upvotes: 7

Related Questions