glib - 由于未满足的依赖关系,无法通过 MIPS 安装 rrdtool-1.7.2
问题描述
我正在尝试通过基于 MIPS 的设置在 debian 上安装 rrdtool-1.7.2,并不断收到缺少库的错误,其中一些库实际上已经安装在系统中。
例如
# ldd --version
**ldd (Debian EGLIBC 2.11.3-4) 2.11.3**
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
显示以下错误。
configure: 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
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of glib-2.0 is 2.28.7.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking whether we need to include gthreads for g_thread_init... checking for g_thread_init in -lgthread-2.0... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no gthread-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 gthread-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 libgthread-2.0 and its header files. If
you have not installed gthread-2.0, you can get it either from its original home on
""
You can find also find an archive copy on
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of gthread-2.0 is x.x.x.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
yes
checking for g_regex_new... no
checking if pcre is available to supply the missing regex support in glib... checking now ...
checking for pcre_compile in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile... yes
checking for png_access_version_number in -lpng... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libpng.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 libpng. 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 libpng and its header files. If
you have not installed libpng, you can get it either from its original home on
ftp://ftp.simplesystems.org/pub/libpng/png/src/
You can find also find an archive copy on
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of libpng is 1.4.8.
LIBS=-lpcre -lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no pangocairo.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 pangocairo. 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 libpangocairo-1.0 and its header files. If
you have not installed pangocairo, you can get it either from its original home on
http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
You can find also find an archive copy on
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of pangocairo is 1.28.4.
LIBS=-lpcre -lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for g_object_unref in -lgobject-2.0... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no gobject-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 gobject-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 libgobject-2.0 and its header files. If
you have not installed gobject-2.0, you can get it either from its original home on
https://download.gnome.org/sources/glib/2.58/
You can find also find an archive copy on
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of gobject-2.0 is 2.58.1.
LIBS=-lpcre -lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for pango_font_map_create_context... no
checking for xmlParseFile in -lxml2... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libxml-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 libxml-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 libxml2 and its header files. If
you have not installed libxml-2.0, you can get it either from its original home on
http://xmlsoft.org/downloads.html
You can find also find an archive copy on
https://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of libxml-2.0 is 2.7.8.
LIBS=-lpcre -lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
configure: error: Please fix the library issues listed above and try again.
我已经检查了以下线程,但问题仍然存在。我无法找到 glibc-2.0 的任何 .pc 文件
解决方案
您需要安装更多的库。
利用 :
sudo apt-get install libglib2.0-0 libglib2.0-bin libpng-dev libpangocairo-1.0-0 libxml2 libxml2-dev
这应该会在 debian/ubuntu 下为您安装必要的库包。
推荐阅读
- vue.js - Vue.js 如何链接两个属性?
- reactjs - 如何在 React with Redux ASP.NET Core 应用程序中更改侧边栏的状态?
- kubernetes - 如何在 kubernetes CLI 上使用多个参数?
- c# - 将相同的行和列添加到数据表
- javascript - 如何制作 7 天 xAxes 标签并在其中绘制 1000 个数据?
- ios - glog-0.3.5 在 iOS 中找不到 logging.h
- ios - 在 html 中为 UILabel 属性文本设置字体不起作用
- mysql - 将唯一选择值分配给唯一一个变量
- nativescript-plugin - NativeScript 插件种子演示不运行
- c# - LINQ to SQL (NHibernate):OrderBy 与 OrderByDescending 抽象