源码编译rrdtool提示找不到xxx.pc类问题处理
来源:互联网 发布:淘宝卖家免费打折软件 编辑:程序博客网 时间:2024/05/29 15:29
1. 问题现象
在Centos源码编译rrdtool 出现一系列错误信息,使用命令及报错如下图:
./configure --prefix=/usr/local/rrdtool
checking dbi/dbi.h usability... nochecking dbi/dbi.h presence... nochecking for dbi/dbi.h... nochecking rados/librados.h usability... nochecking rados/librados.h presence... nochecking for rados/librados.h... nochecking tcpd.h usability... nochecking tcpd.h presence... nochecking for tcpd.h... nochecking for glib_check_version in -lglib-2.0... nochecking for pkg-config... pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no glib-2.0.pc file around. You may want to set the PKG_CONFIG_PATH variable to point to its location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of glib-2.0. Check config.log for hints on why this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately so that compiler and the linker can find libglib-2.0 and its header files. If you have not installed glib-2.0, you can get it either from its original home on ftp://ftp.gtk.org/pub/glib/2.28/ You can find also find an archive copy on http://oss.oetiker.ch/rrdtool/pub/libs The last tested version of glib-2.0 is 2.28.7. LIBS=-lm LDFLAGS=-Wl,--rpath -Wl,/usr/local/rrdtool/lib CPPFLAGS=---------------------------------------------------------------------------- checking for g_regex_new... nochecking if pcre is available to supply the missing regex support in glib... checking now ...checking for pcre_compile in -lpcre... nochecking for pkg-config... (cached) pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no pcre.pc file around. You may want to set the PKG_CONFIG_PATH variable to point to its location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of pcre. Check config.log for hints on why this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately so that compiler and the linker can find libpcre and its header files. If you have not installed pcre, you can get it either from its original home on get a newer glib and you will not need pcre at all You can find also find an archive copy on http://oss.oetiker.ch/rrdtool/pub/libs The last tested version of pcre is x.x.x. LIBS=-lm LDFLAGS=-Wl,--rpath -Wl,/usr/local/rrdtool/lib CPPFLAGS=---------------------------------------------------------------------------- checking for pcre_compile... noconfigure: error: you need either glib with g_regex support or libpcre to compile rrdtool.
2. 原因分析
编译时从pkg-config目录中没有找到xxx.pc文件,应该是相应xxx-devel 包没有安装
3. 处理办法
使用yum命令安装好相应devel包即可
yum install glib2-devel pcre-devel libpng-devel pango-devel cairo-devel libxml2-devel
阅读全文
0 0
- 源码编译rrdtool提示找不到xxx.pc类问题处理
- rrdtool系列1---源码编译
- aidl 源码编译提示找不到import
- 系统提示“找不到xxx.dll ”或“xxx.dll 丢失” 或者“xxx.dll 错误”的问题
- vc++6源码在VC2010中编译提示iostream.h库找不到问题的解决办法
- 编译android源码时错误提示:"duplicate entry: xxx.xx"
- 编译时找不到xxx.pch
- android c++ 调用java 提示“xxx class 找不到”的处理方法
- java命令行编译时提示找不到或无法加载主类的问题
- 解决vc2008编译提示找不到msvcr90d.dll的问题
- 编译出现找不到xxx.h错误解决方法
- VS2010编译Qt5.3项目,出现Moc'ing xxx.h,系统找不到指定路径问题
- 编译时提示找不到资源
- PHP源码安装后找不到配置文件的问题处理
- Keil编译时,提示“error:conflicting types for XXX”错误及处理方法
- eclipse 提示框很慢 computing additional info 找不到源码 提示等问题
- 拷贝的Android源码不能单独编译mmm命令提示找不到
- arduio IED 在进行编译时老是出错,提示:找不到bcm2835.h文件,如何处理?
- 微信支付集成
- vs2008 the operation could not be completed. 未指定的错误
- Spring--->IOC(DI)使用方式
- 微信支付网络监控工具部署指引
- java中的多态
- 源码编译rrdtool提示找不到xxx.pc类问题处理
- 模块和包.深入Celery之应用配置/独立模块配置实践
- 避免主线程访问网络操作UI以及解析XMLDemo
- 目录
- Eclipse在高分辨率下图标变小的解决方法
- python自然语言处理之加载本地语料库
- 协议tcp/http常见问题&知识点
- 直连sde出错解决方案——通过创建sde文件连接
- java发送http的get、post请求工具类