在RHEL 5中,yum找不到一个包(python-devel)

在工作中,我需要在一台特定的服务器上使用红帽企业Linux(RHEL)版本5。 我对Linux有经验,但对于RHEL(在Debian和Ubuntu中更多)则不多。

我想安装gitosis,但是gitosis的EPEL包依赖于python-setuptools; 而python-setuptools依次取决于python-devel。

百胜无法findpython-devel。

python-devel似乎并不存在于EPEL中。 这使我相信它可能直接在RHEL 5中得到支持; 也许EPEL不提供它,因为它是RHEL的一部分?

用pbone.net上的RPMsearch检查,我发现Centos有一个python-devel软件包,这又让我觉得python-devel应该由RHEL提供。

服务器上的yum.conf文件中有一个[main]条目,其中包含“distroverpkg = redhat-release”行。 目录“yum.repos.d”有这些库文件:epel.repo epel-testing.repo rhel-debuginfo.repo

python-devel应该在“redhat-release”版本库中吗? 是否有其他官方的RHEL知识库,我应该包括在我的yumconfiguration?

谢谢你的帮助。


附加信息:这里是命令yum repolist all的输出:


 # yum repolist all Loaded plugins: rhnplugin, security repo id repo name status epel Extra Packages for Enterprise Linux 5 - i3 enabled: 3,423 epel-debuginfo Extra Packages for Enterprise Linux 5 - i3 disabled epel-source Extra Packages for Enterprise Linux 5 - i3 disabled epel-testing Extra Packages for Enterprise Linux 5 - Te disabled epel-testing-debuginfo Extra Packages for Enterprise Linux 5 - Te disabled epel-testing-source Extra Packages for Enterprise Linux 5 - Te disabled rhel-debuginfo Red Hat Enterprise Linux 5Client - i386 - disabled rhel-i386-client-5 Red Hat Enterprise Linux Desktop (v. 5 for enabled: 5,025 repolist: 8,448 

我觉得这台电脑似乎没有rhel-i386-server-5作为回购。 python-devel被认为是一个服务器包? 谁能告诉我如何启用服务器回购?

我查找了一些设置来启用这个function,而我所能find的是/etc/yum/pluginconf.d/rhnplugin.conf文件,其中包含以下内容:


 [main] enabled = 1 gpgcheck = 1 [rhel-i386-server-5] enabled = 1 

编辑添加其他信息:


 # yum install gitosis Loaded plugins: rhnplugin, security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gitosis.noarch 0:0.2-6.20080825git.el5 set to be updated --> Processing Dependency: python-setuptools for package: gitosis --> Running transaction check ---> Package python-setuptools.noarch 0:0.6c7-1.el5 set to be updated --> Processing Dependency: python-devel for package: python-setuptools --> Finished Dependency Resolution python-setuptools-0.6c7-1.el5.noarch from epel has depsolving problems --> Missing Dependency: python-devel is needed by package python-setuptools-0.6c7-1.el5.noarch (epel) Error: Missing Dependency: python-devel is needed by package python-setuptools-0.6c7-1.el5.noarch (epel) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest 

既然有人要求, yum search python | grep -i devel输出就是yum search python | grep -i devel yum search python | grep -i devel


 # yum search python | grep -i devel TurboGears.noarch : Back-to-front web development in Python kobo.noarch : Python modules for tools development nettle-devel.i386 : Development headers for a low-level cryptographic library postgresql-python.i386 : Development module for Python code to access a python-cherrypy.noarch : A pythonic, object-oriented web development framework python-tools.i386 : A collection of development tools included with Python. python-tunepimp.i386 : Python bindings for developing programs that will use wxPython-devel.i386 : Development files for wxPython add-on modules 

好的,我们联系了红帽支持,并得到了答案。

python-devel软件包位于RHEL Desktop Workstation子通道(“rhel-i386-client-workstation-5”)中,该软件未启用。

默认情况下,主通道(“核心组件”,“rhel-i386-client-5”)已启用,但没有子通道。 通过使用networking浏览器并login到您的红帽networking帐户,您可以为您的系统提取logging并启用子渠道。 这个过程在这个知识库页面描述: http : //kbase.redhat.com/faq/docs/DOC-11313

看来您已经安装了RHEL Desktop,而不是Server版本。 存储库包含在RHN中。 检查我的服务器中的“yum repolist all”的输出:

 rhel-x86_64-server-5 Red Hat Enterprise Linux (v. 5 for 64-bi enabled: 

但是,python-devel软件包必须包含在桌面版本中 。 有什么结果来自:

 yum search python | grep -i devel