GLib编译错误(ffi.h),但安装了libffi [英] GLib compile error (ffi.h), but libffi is installed

查看:1431
本文介绍了GLib编译错误(ffi.h),但安装了libffi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在成功完成配置后,使用退出

After a succesful configure, make exits with snipped

gclosure.c:29:17: fatal error: ffi.h: No such file or directory
compilation terminated.

我已经安装了libffi,并且找到ffi.h给出了:

I have libffi installed, and locate ffi.h gives:

/home/luca/gcc4.6/gcc-4.6.0/libffi/include/ffi.h.in
/usr/include/x86_64-linux-gnu/ffi.h
/usr/share/doc/ghc-doc/html/users_guide/ffi.html
/usr/share/doc/libffi5/html/Using-libffi.html


推荐答案

如果您有一个基于Debian的Linux操作系统, c $ c> apt-get :

If you have a Debian-based Linux OS with apt-get:

sudo apt-get install libffi-dev

使用基于Redhat的操作系统:

With a Redhat-base OS:

yum install libffi-devel

这篇关于GLib编译错误(ffi.h),但安装了libffi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆