Python-2.4.2をインストールします。
Python ProgrammingからPython-2.4.2.tar.bz2を任意のディレクトリ ここでは、/usr/local/srcにダウンロードします。
次に、ダウンロードしたファイルを展開しコンパイル、インストールします。
# tar xvfj Python-2.4.2.tar.bz2 # cd Python-2.4.2 # ./configure
ところが、私の環境ではエラーが発生したためconfig.logを確認すると gcc: installation problem, cannot exec `cc1plus': No such file or directory と出ていたのでGNU C++を追加しました。
# installpkg g++-3.3.6-i586-P1.tgz # ./configure # make # make install
GNU C++を追加したのでもう一度インストールしてみます。
# ./configure # make # make install
今度は、正常にインストールできました。
Copyright 1997-2010 BBB All rights reserved.