Linux构建包 - 配置脚本引发错误,但它错了

时间:2015-12-18 20:28:31

标签: linux dependencies package configure suse

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

所以我正在尝试构建一个src包,当我运行&#34; ./ configure&#34; 脚本时,它会抛出一些需要包丢失的错误。因为它的x86_64我想添加&#34; - libdir = / usr / lib64&#34; &#34; - libdir = / lib64&#34; < / em>会帮助它找到它正在寻找的软件包,但无论如何都会出现同样的错误。

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

..........
...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.

我检查确保我确实拥有这些包,看起来好像我做了。所以我不确定它是不是找不到它们或者是什么......而且似乎我有这些包的版本&gt; = 他们要求的是什么,所以我有点难过......

我的已安装软件包是:

# 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

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

先谢谢,
马特

1 个答案:

答案 0 :(得分:1)

嗯,我无法直接通过编译来解决这些错误...但是,我们有另一台具有相同操作系统的服务器以及已经安装了该软件包的所有内容(这增加了我的困惑,为什么它不是&#39 ;工作)所以试试我将该服务器的目录&#34; / usr / lib64 / gedit-2 / plugins&#34; 复制到一个我正在努力,现在一切似乎工作得很好。所有的插件都可以被激活,它们似乎有效。!

我复制的目录的内容是:

/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

由于所有这些插件似乎都没有任何问题,我觉得配置脚本错误的缺少了我的想法......

非常感谢....!