我一直尝试在我的红帽机器上安装 python 开发包,但是在任何地方都找不到该包。
我的服务器是 Red Hat Enterprise Linux Server 版本 6.8 (Santiago)( x86_64 GNU/Linux),搭载了 python 2.6.6
该 repo 列表不包含所需的包,而且我也没有权限修改它。
我尝试执行“yum install python-devel”和“yum search ..”但没有成功。
我从哪里可以获取此包?有可用的外部链接吗?
答案1
1.-> yum 安装 epel-release
在那之后 ;
[root@srv1 ~]# yum search python-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.daniel-jost.net
* epel: mirror.daniel-jost.net
* epel-debuginfo: mirror.daniel-jost.net
* epel-source: mirror.daniel-jost.net
* extras: mirror.daniel-jost.net
* remi-safe: mirror.23media.de
* updates: mirror.daniel-jost.net
============================================================= N/S matched: python-devel ==============================================================
+dbus-python-devel.i686 : Libraries and headers for dbus-python
+dbus-python-devel.x86_64 : Libraries and headers for dbus-python
+gstreamer-python-devel.i686 : Headers for developing programs that will use gstreamer-python
+gstreamer-python-devel.x86_64 : Headers for developing programs that will use gstreamer-python
+nemo-python-devel.x86_64 : Python bindings for Nemo
+ ---->>>>> python-devel.x86_64 : The libraries and header files needed for Python development
+qscintilla-python-devel.noarch : Development files for QScintilla PyQt4 bindings
+wxPython-devel.x86_64 : Development files for wxPython add-on modules