Python 2.7.2 をインスコ




とりあえず Python を入れようと、ターッ して ./configure したらエラーになってしまった

[root@localhost Python-2.7.2]# ./configure
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/Python-2.7.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@localhost Python-2.7.2]#

どうも下をみると gcc を入れればいいっぽい
http://labs.agenda-style.jp/blog/2010/01/linux-tips---configure-error-no-acceptable-c-compiler-found-in-path--.html

ヘタレなのでパッケージマネージャから gcc を入れる



再び ./configure して、こんどはよさげだ
Makefile が作られてた

〜省略〜
checking for build directories... done
configure: creating ./config.status
config.status: creating Makefile.pre
config.status: creating Modules/Setup.config
config.status: creating Misc/python.pc
config.status: creating Modules/ld_so_aix
config.status: creating pyconfig.h
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
[root@localhost Python-2.7.2]#

make と make install をして...
よし入ったっぽい

[root@localhost Python-2.7.2]# python
Python 2.7.2 (default, Oct 23 2011, 17:18:39)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>