【问题标题】:Linux Build Package - Configure Script Throws Error, But it's WrongLinux 构建包 - 配置脚本抛出错误,但它是错误的
【发布时间】:2016-03-25 15:00:28
【问题描述】:

服务器: SLES v11 sp3
内核: 3.0.101-0.47.71-default
Arch: x86_64

所以我正在尝试构建一个 src 包,当我运行 "./configure" 脚本时,它会抛出一些所需包丢失的错误。由于它是 x86_64,我认为添加 "--libdir=/usr/lib64""--libdir=/lib64" 会帮助它找到它正在寻找的包,但我无论哪种方式都会出现相同的错误。

配置脚本失败并出现以下错误:

..........
...SNIP...
..........
checking for xgettext... (cached) /usr/bin/xgettext
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GEDIT... configure: error: Package requirements (
    glib-2.0 >= 2.13.0
    gio-2.0 >= 2.16.0
    gtk+-2.0 >= 2.13.0
    gconf-2.0 >= 1.1.11
    gtksourceview-2.0 >= 2.5.1
    gedit-2.20 >= 2.25.4
) were not met:

No package 'glib-2.0' found
No package 'gio-2.0' found
No package 'gtk+-2.0' found
No package 'gconf-2.0' found
No package 'gtksourceview-2.0' found
No package 'gedit-2.20' 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 GEDIT_CFLAGS
and GEDIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我检查以确保我确实有这些包,而且好像我有。所以我不确定是找不到它们还是什么......而且似乎我有这些包的版本 >= 他们要求什么,所以我有点难过...

我安装的包是:

# rpm -qa | grep -i glib-2
libglib-2_0-0-2.22.5-0.8.14.1

# rpm -qa | grep -i 'gtk2'
gtk2-32bit-2.18.9-0.35.1
gtk2-2.18.9-0.35.1
gtk2-engines-2.16.1-4.26
gtk2-branding-SLES-for-VMware-11.1-0.5.99
gtk2-engines-32bit-2.16.1-4.26
gtk2-themes-0.1-737.22
gtk2-lang-2.18.9-0.35.1
gtk2-theme-SLES-for-VMware-11.1-0.7.95

# rpm -qa | grep -i 'gio'
libgio-2_0-0-32bit-2.22.5-0.8.14.1
libgio-2_0-0-2.22.5-0.8.14.1

# rpm -qa | grep -i 'gconf2'
gconf2-2.28.0-1.8.1
gconf2-lang-2.28.0-1.8.1

# rpm -qa | grep -i 'gtksource'
gtksourceview-lang-2.8.2-0.1.195
libgtksourceview-2_0-0-2.8.2-0.1.195
python-gtksourceview-2.4.0-1.32

# rpm -qa | grep -i 'gedit'
gedit-2.28.3-0.8.1
gedit-lang-2.28.3-0.8.1

有人知道这里可能出现什么问题吗?我不确定还能尝试什么..?

我也曾尝试安装基于 RPM 的软件包,但因缺少软件包而出现类似错误。请参阅下面的 RPM 安装错误...

warning: gedit-plugins-2.28.0-2.el6.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID c105b9de
error: Failed dependencies:
    GConf2 is needed by gedit-plugins-2.28.0-2.el6.x86_64
    pygobject2 is needed by gedit-plugins-2.28.0-2.el6.x86_64
    pygtk2 is needed by gedit-plugins-2.28.0-2.el6.x86_64
    pygtksourceview is needed by gedit-plugins-2.28.0-2.el6.x86_64
    rpmlib(FileDigests) <= 4.6.0-1 is needed by gedit-plugins-2.28.0-2.el6.x86_64

如果有人有任何想法或建议,请随时回复,我们将不胜感激!

提前致谢,
马特

【问题讨论】:

    标签: linux dependencies package configure suse


    【解决方案1】:

    好吧,我无法通过编译直接解决这些错误...但是,我们有另一台服务器具有相同的操作系统,并且所有已经安装了该软件包的所有东西(这让我更加困惑为什么它不是工作) 所以为了试一试,我将该服务器的目录 "/usr/lib64/gedit-2/plugins" 复制到我正在处理的目录中,现在一切似乎都是工作得很好。所有插件都能够被激活并且它们似乎可以工作。!

    我复制过来的目录内容是:

    /usr/lib64/gedit-2/plugins # ll
    total 700
    drwxr-xr-x 4 root root   4096 Apr 28  2015 advancedfind
    -rwxr-xr-x 1 root root    216 Apr 28  2015 advancedfind.gedit-plugin
    -rw-r--r-- 1 root root   9856 Nov 13  2012 changecase.gedit-plugin
    -rw-r--r-- 1 root root   6970 Apr 17  2014 codecomment.gedit-plugin
    -rw-r--r-- 1 root root   9563 Mar 18  2014 codecomment.py
    -rw-r--r-- 1 root root   8850 Apr 16  2014 codecomment.pyc
    -rw-r--r-- 1 root root   8745 Mar 18  2014 codecomment.pyo
    -rw-r--r-- 1 root root  18084 Nov 13  2012 docinfo.gedit-plugin
    drwxr-xr-x 2 root root   4096 Jul  2  2013 externaltools
    -rw-r--r-- 1 root root   9243 Nov 13  2012 externaltools.gedit-plugin
    -rw-r--r-- 1 root root   8579 Nov 13  2012 filebrowser.gedit-plugin
    -rw-r--r-- 1 root root    179 Apr 17  2014 gpdefs.py
    -rw-r--r-- 1 root root    317 Apr 17  2014 gpdefs.pyc
    -rw-r--r-- 1 root root    315 Apr 17  2014 gpdefs.pyo
    -rw-r--r-- 1 root root   9654 Nov 13  2012 indent.gedit-plugin
    -rwxr-xr-x 1 root root  18936 Nov 13  2012 libchangecase.so
    -rwxr-xr-x 1 root root  19032 Nov 13  2012 libdocinfo.so
    -rwxr-xr-x 1 root root 170256 Nov 13  2012 libfilebrowser.so
    -rwxr-xr-x 1 root root  14816 Nov 13  2012 libindent.so
    -rwxr-xr-x 1 root root  27320 Nov 13  2012 libmodelines.so
    -rwxr-xr-x 1 root root  23248 Nov 13  2012 libsort.so
    -rwxr-xr-x 1 root root  82168 Nov 13  2012 libspell.so
    -rwxr-xr-x 1 root root  36104 Nov 13  2012 libtaglist.so
    -rwxr-xr-x 1 root root  35840 Nov 13  2012 libtime.so
    -rw-r--r-- 1 root root   9177 Nov 13  2012 modelines.gedit-plugin
    drwxr-xr-x 2 root root   4096 Jul  2  2013 pythonconsole
    -rw-r--r-- 1 root root   8602 Nov 13  2012 pythonconsole.gedit-plugin
    drwxr-xr-x 2 root root   4096 Jul  2  2013 quickopen
    -rw-r--r-- 1 root root   5719 Nov 13  2012 quickopen.gedit-plugin
    drwxr-xr-x 2 root root   4096 Mar 20  2015 sessionsaver
    -rw-r--r-- 1 root root   6035 Mar 20  2015 sessionsaver.gedit-plugin
    drwxr-xr-x 2 root root   4096 Jul  2  2013 snippets
    -rw-r--r-- 1 root root   8805 Nov 13  2012 snippets.gedit-plugin
    -rw-r--r-- 1 root root   9235 Nov 13  2012 sort.gedit-plugin
    -rw-r--r-- 1 root root   9416 Nov 13  2012 spell.gedit-plugin
    -rw-r--r-- 1 root root  16794 Nov 13  2012 taglist.gedit-plugin
    -rw-r--r-- 1 root root  11861 Nov 13  2012 time.gedit-plugin
    

    而且由于所有这些插件似乎都可以正常工作,我猜配置脚本对缺少的要求是错误的,正如我所想的那样......

    还是谢谢....!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多