develhevel
develhevel

Reputation: 3281

Missing Haskell package dependency: ffi

I'm using Linux Mint (Ubuntu derivat) and want to install libClang with Cabal.

The problem is, that I always get the message: "requires ffi" and then it stops.

I have installed on my system:

what is missing?

edit

i just make cabal install libClang

and then get: cabal: cannot configure LibClang-0.0.9. It requires ffi -any

Upvotes: 1

Views: 405

Answers (1)

Don Stewart
Don Stewart

Reputation: 137957

Indeed, the libclang package depends on the Haskell ffi package, a primitive package that ships with GHC 7.x compilers.

You can check if you have the package:

$ ghc-pkg list ffi
/home/dons/lib/ghc-7.0.3/package.conf.d
   ffi-1.0

Solution 1: This package ships with GHC 7, so you will need to upgrade to the Haskell Platform 2011.2.0.1, to get the ffi package.

Solution 2: You maybe instead can download the libclang package, and remove the ffi dep:

$ cd LibClang-0.0.9 
$ vim *.cabal       -- remove the ffi depend.
$ cabal install

and it should build fine.

Upvotes: 1

Related Questions