开发者

Missing Haskell package dependency: ffi

开发者 https://www.devze.com 2023-03-05 09:10 出处:网络
I\'m using Linux Mint (Ubuntu derivat) a开发者_JAVA技巧nd want to install libClang with Cabal. The problem is, that I always get the message: \"requires ffi\" and then it stops.

I'm using Linux Mint (Ubuntu derivat) a开发者_JAVA技巧nd 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:

  • Haskel-Platform 2010.1.0.0.1
  • libffi5
  • libffi-dev

what is missing?

edit

i just make cabal install libClang

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号