由于未满足的依赖关系,无法通过 MIPS 安装 rrdtool-1.7.2

Posted

技术标签:

【中文标题】由于未满足的依赖关系,无法通过 MIPS 安装 rrdtool-1.7.2【英文标题】:Unable to install rrdtool-1.7.2 over MIPS due to unmet dependencies 【发布时间】:2021-11-05 02:32:44 【问题描述】:

我正在尝试通过基于 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 文件

PKG_CONFIG_PATH variable, how to set LDFLAGS and CPPFLAGS when compiling RRDtool

【问题讨论】:

你缺少glib,这与glibc不同。 【参考方案1】:

你需要安装更多的库。

使用:

sudo apt-get install libglib2.0-0 libglib2.0-bin libpng-dev libpangocairo-1.0-0 libxml2 libxml2-dev

这应该会在 debian/ubuntu 下为您安装必要的库包。

【讨论】:

以上是关于由于未满足的依赖关系,无法通过 MIPS 安装 rrdtool-1.7.2的主要内容,如果未能解决你的问题,请参考以下文章

由于“未满足的依赖项”,无法在 Ubuntu 上安装 SQL Server 命令行工具

错误记录Ubuntu 安装软件报错 ( 下列软件包有未满足的依赖关系:E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。 )

由于未满足的依赖性,无法在Ubuntu 18上安装PHP7.2-dev

安装GTK开发环境,未满足依赖关系,如何解决

由于未解决的依赖关系,grails install plugin blazeds 失败

由于未解决的依赖关系,无法使用 Winforms 控件