「Linux/pythonインストール」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==pythonインストール== cd /usr/local/src wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz tar zxvf Python-2.4.6.tgz cd Python-2.4.6 ./configure ma...」) |
(→pythonインストール) |
||
| 行1: | 行1: | ||
| − | == | + | ==python2.4インストール== |
cd /usr/local/src | cd /usr/local/src | ||
wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz | wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz | ||
| 行5: | 行5: | ||
cd Python-2.4.6 | cd Python-2.4.6 | ||
./configure | ./configure | ||
| + | make | ||
| + | make install | ||
| + | |||
| + | ==python2.6インストール== | ||
| + | wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz | ||
| + | tar zxvf Python-2.6.2.tgz | ||
| + | cd Python-2.6.2 | ||
| + | ./configure --prefix=/usr/local/python --enable-shared | ||
make | make | ||
make install | make install | ||
2018年3月9日 (金) 11:56時点における版
python2.4インストール
cd /usr/local/src wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz tar zxvf Python-2.4.6.tgz cd Python-2.4.6 ./configure make make install
python2.6インストール
wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz tar zxvf Python-2.6.2.tgz cd Python-2.6.2 ./configure --prefix=/usr/local/python --enable-shared make make install
実行
$ /usr/local/src/Python-2.4.6/python
