Skip to content

Instantly share code, notes, and snippets.

@youqingkui
Forked from selfboot/centos_python.sh
Created March 24, 2017 21:42
Show Gist options
  • Select an option

  • Save youqingkui/b32573f289b2b2a4dc0a9b0961e26d60 to your computer and use it in GitHub Desktop.

Select an option

Save youqingkui/b32573f289b2b2a4dc0a9b0961e26d60 to your computer and use it in GitHub Desktop.

Revisions

  1. @selfboot selfboot renamed this gist Jun 20, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @selfboot selfboot revised this gist Jun 20, 2016. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion centos.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,16 @@

    # According to:
    # How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
    # https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
    # https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
    yum -y update
    yum groupinstall -y 'development tools'
    yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
    yum install xz-libs
    wget http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz
    xz -d Python-2.7.10.tar.xz
    tar -xvf Python-2.7.10.tar
    cd Python-2.7.10
    ./configure --prefix=/usr/local
    make
    make altinstall
    export PATH="/usr/local/bin:$PATH"
  3. @selfboot selfboot renamed this gist Jun 20, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions centos_6.8 install python env → centos.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #!/bin/bash

    # According to:
    # How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
  4. @selfboot selfboot created this gist Jun 20, 2016.
    4 changes: 4 additions & 0 deletions centos_6.8 install python env
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@

    # According to:
    # How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
    # https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4