22 yum install sqlite-devel -y python
23 wget -c http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 linux
24 tar zxvf thrift-0.8.0.tar.gz >/dev/nullsql
25 cd thrift-0.8.0vim
26 llruby
27 ./configure --with-ruby=no >> /dev/nullide
28 ./configure --with-ruby=no ui
29 cd ..orm
30 llsqlite
31 tar jxvf Python-2.6.6.tar.bz2 get
32 cd Python-2.6.6
33 ll
34 ./configure
35 make && make install
36 mv h/usr/bin/python /usr/bin/python.back
37 mv /usr/bin/python /usr/bin/python.bak
38 ln -s /usr/local/bin/python2.6 /usr/local/python
[root@localhost Python-2.6.6]# python
Python 2.6.6 (r266:84292, Nov 29 2012, 22:43:34)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>>
KeyboardInterrupt
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit()
[root@localhost Python-2.6.6]# vim /usr/bin/yum
#!/usr/bin/python2.4