configure:error: Package requirements (libffi >= 3.0.0) were not met(转)

在安装glib过程中遇到配置错误,提示缺少libffi(版本需大于3.0.0)包。解决方法是通过yum或apt-get安装libffi-devel,对于银河麒麟系统,使用sudoapt-getinstalllibffi-devel命令。确保环境变量正确设置,如PKG_CONFIG_PATH、LIBFFI_CFLAGS和LIBFFI_LIBS,以避免pkg-config的使用需求。

安装glib包,在编译的时候出现错误:

configure: error: Package requirements (libffi >= 3.0.0) were not met:

No package 'libffi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

原因:很多原因就是缺少开发包,例如这里的环境变量的定义

解决:

# yum install libffi-devel  -y
-----------------------------------
©著作权归作者所有:来自51CTO博客作者Jeremiahc的原创作品,请联系作者获取转载授权,否则将追究法律责任
configure:error: Package requirements (libffi >= 3.0.0) were not met
https://blog.51cto.com/jeremiahc/1332556

ps:如果是银河麒麟,命令是sudo apt-get install libffi-devel

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值