wizzi
wizzi

Reputation: 21

cant install cabal package

I have a problem with installing quickcheck from cabal on ubuntu 14.4 LTS. I have updated cabal, but when i try to install quickcheck an error comes up:

:~$ cabal install quickcheck
Resolving dependencies...
Configuring primitive-0.6.1.0...
Building primitive-0.6.1.0...
Preprocessing library primitive-0.6.1.0...
ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.
Failed to install primitive-0.6.1.0
Configuring random-1.1...
Building random-1.1...
Preprocessing library random-1.1...
ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.
Failed to install random-1.1
cabal: Error: some packages failed to install:
QuickCheck-2.8.1 depends on random-1.1 which failed to install.
primitive-0.6.1.0 failed during the building phase. The exception was:
ExitFailure 1
random-1.1 failed during the building phase. The exception was:
ExitFailure 1
tf-random-0.5 depends on random-1.1 which failed to install.

I am pretty new ubuntu so I still dont know what to do in a situation like this. i really hope someone can help because it is for a school project which is do soon.

Upvotes: 1

Views: 829

Answers (2)

Harsh Donga
Harsh Donga

Reputation: 31

After spending hours on installing/removing, the best way to install and configure latest cabal, ghc...

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Upvotes: 1

sclv
sclv

Reputation: 38893

This error occurs when you have a very old cabal binary compared to your version of ghc.

You could jump through the package manager routes, or you could use the linux binary download from https://www.haskell.org/cabal/download.html

That should suffice to get you off the ground...

Upvotes: 0

Related Questions