Solaris 10u11 安装python2.7.10

##检查GCC版本

-bash-3.2# gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.

##下载python编译程序

-bash-3.2# wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz  \
--no-check-certificate

##解压缩Python

-bash-3.2# gunzip Python-2.7.10.tgz 
-bash-3.2# tar xvf Python-2.7.10.tar

##编译安装Python

-bash-3.2# cd Python-2.7.10
-bash-3.2# ./configure --prefix=/opt/python2.7.10
-bash-3.2# make
-bash-3.2# make install

##安装完成

-bash-3.2# /opt/python2.7.10/bin/python --version
Python 2.7.10


你可能感兴趣的:(Solaris,10u11,安装python2.7.10)