Chinaunix首页 | 论坛 | 博客
  • 博客访问: 138164
  • 博文数量: 20
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 247
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-12 22:24
个人简介

学霸

文章分类

全部博文(20)

文章存档

2016年(1)

2015年(11)

2014年(8)

我的朋友

分类: LINUX

2015-04-21 18:39:22

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
阅读(3417) | 评论(0) | 转发(0) |
0

上一篇:open pegasus install

下一篇:c++ 字符串使用

给主人留下些什么吧!~~