安装glib依赖问题一例(libffi>=3.0.0)

部署过程中遇到的各种操蛋问题不少,记录在此


在configure配置glib的时候,会有如下报错

[13:45:44]checking for LIBFFI... no

[13:45:44]configure: error: Package requirements (libffi >= 3.0.0) were not met:

[13:45:44]No package 'libffi' found

[13:45:44]Consider adjusting the PKG_CONFIG_PATH environment variable if you

[13:45:44]installed software in a non-standard prefix.

[13:45:44]Alternatively, you may set the environment variables LIBFFI_CFLAGS

[13:45:44]and LIBFFI_LIBS to avoid the need to call pkg-config.

[13:45:44]See the pkg-config man page for more details.


实际检查发现libffi已经安装,版本为3.0.5

采用配置PKG_CONFIG_PATH 的方法并无法解决该问题

解决方法为:

安装 libffi-devel

yum install libffi-devel

其他glib安装的问题,参考此文档

glib部署中各项问题解决方案

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容