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