python3 yum源_安装python时,遇到的关于yum 源的解决

python install

tar -xvf Python-2.5.2.tar.bz2

cd Python-2.5.2

./configure  "no acceptable C compiler found in $PATH"

/* found that this phenomenon is caused due to no compiler */

yum install gcc "No package gcc available"

/* found that this phenomenon is caused due to yum source */

rpm -qa |grep yum /* display all the yum source on the local system */

rpm -qa|grep yum|xargs rpm -e --nodeps /* delete rpm package without check dependency */

/* install rpm package as below */

1.put iso into the cd

2.mount /dev/cdrom /mnt

3.cd /mnt/Packages

rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

rpm -ivh yum-3.2.29-60.el6.noarch.rpm

/* put below insert to /etc/yum.repos.d/rhel-debuginfo.repo */

[rhel-source]

name=Red Hat Enterprise Linux Server

baseurl=file:///mnt

enabled=1

gpgcheck=0

gpgkey=file:///mnt/RPM-GPG-KEY-RedHat-release

/* clear the original cache */

yum clean all

/* get yum list,please wait a few minites which is sweet */

yum makecache

/* now you can install python Smoothly */

./configure

make && make install

阅读(2110) | 评论(0) | 转发(0) |

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值