• CentOS 5.8 安装python 和 yum


    centos 5.8  资源路径:

    http://vault.centos.org/5.8/os/x86_64/CentOS/

    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/python-2.4.3-46.el5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/libxml2-2.6.26-2.1.12.el5_7.2.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.12.el5_7.2.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
    rpm --nodeps -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
    rpm --nodeps -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/rpm-4.4.2.3-27.el5.x86_64.rpm
    rpm --nodeps -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/rpm-python-4.4.2.3-27.el5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
    rpm --nodeps -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
    rpm -Uvh http://vault.centos.org/5.8/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm

    yum -y update

    总站镜像路径:https://www.centos.org/download/mirrors/

    rpm参数:

    -ivh:就是用來安裝 RPM 的參數
    --nodeps:不考慮相依屬性的關係,給他強制的安裝下去;
    --force当然是强制了

    /usr/bin/python2.4: error while loading shared libraries: libpython2.4.so.1.0: cannot open shared object file: No such file or directory

    解决方案:

    下载:https://www.python.org/ftp/python/2.4/Python-2.4.tgz

    tar -xzvf Python-2.4.tgz

    ./configure --prefix=/user/local/python24 --enable-shared

    make && make altinstall

    sudo ln -s /usr/local/python24/lib/libpython2.4.so.1.0  /usr/lib/libpython2.4.so.1.0

  • 相关阅读:
    洛谷 1996——约瑟夫问题(线性数据结构)
    洛谷 1219——[USACO 1.5] 八皇后(深度优先搜索)
    洛谷 1162——填涂颜色(广度优先搜索)
    洛谷 1803——凌乱的yy(贪心)
    洛谷 1094——纪念品分组(贪心)
    洛谷 1223——排队接水(贪心)
    洛谷 1028——[USACO 1.3]混合牛奶 Mixing Milk
    洛谷 1181——数列分段Section I(贪心)
    洛谷 1090——合并果子(贪心)
    洛谷 1012——拼数(字符串处理)
  • 原文地址:https://www.cnblogs.com/ThinkVenus/p/7428746.html
Copyright © 2020-2023  润新知