2008/3/25 zopeのインストール
提供:ServerSetting
目次 |
残念なことに
fedoraの標準パッケージは用意されていないみたい。自力でインストールすることに。
zopeインストール1回目(失敗)
ダウンロード
# cd /tmp
# wget http://www.zope.org/Products/Zope3/3.3.1/Zope-3.3.1.tgz
--22:58:29-- http://www.zope.org/Products/Zope3/3.3.1/Zope-3.3.1.tgz
=> `Zope-3.3.1.tgz'
www.zope.org をDNSに問いあわせています... 63.240.213.171
www.zope.org|63.240.213.171|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 6,594,248 (6.3M) [application/x-tar]
100%[=================================>] 6,594,248 46.68K/s ETA 00:00
23:23:47 (4.25 KB/s) - `Zope-3.3.1.tgz' を保存しました [6594248/6594248]
展開
- cd /usr/local/src
- tar zxvf /tmp/Zope-3.3.1.tgz
インストール
- cd /usr/local/src/Zope-3.3.1
- ./configure
Configuring Zope installation Testing for an acceptable Python interpreter... Python version 2.5.1 found at /usr/bin/python Python version 2.5.1 found at /usr/bin/python2 No suitable Python version found. You should install Python version 2.4.3 before continuing. Versions 2.4.7 2.4.6 2.4.5 2.4.4 2.4.2 2.4.1 also work, but not as optimally.
自宅のpythonは、バージョンが新しすぎる様子。 そこで、前のバージョンのpythonを手動でインストールすることにする。
pythonインストール
ダウンロード
# cd /tmp
# wget http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tgz
--22:53:43-- http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tgz
=> `Python-2.4.5.tgz'
www.python.org をDNSに問いあわせています... 82.94.237.218
www.python.org|82.94.237.218|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 9,625,509 (9.2M) [application/x-tar]
100%[======================================>] 9,625,509 667.83K/s ETA 00:00
22:54:01 (568.35 KB/s) - `Python-2.4.5.tgz' を保存しました [9625509/9625509]
=== '''展開''' ===
# cd /usr/local/src/
# tar zxvf /tmp/Python-2.4.5.tgz
=== '''インストール''' ===
# cd /usr/local/src/Python-2.4.5/
# ./configure
<pre>
:
:
:
creating Setup
creating Setup.local
creating Makefile
エラーもなく完了。
- make
: : : running build_scripts creating build/scripts-2.4 copying and adjusting /usr/local/src/Python-2.4.5/Tools/scripts/pydoc -> build/scripts-2.4 copying and adjusting /usr/local/src/Python-2.4.5/Tools/scripts/idle -> build/scripts-2.4 copying and adjusting /usr/local/src/Python-2.4.5/Lib/smtpd.py -> build/scripts-2.4 changing mode of build/scripts-2.4/pydoc from 644 to 755 changing mode of build/scripts-2.4/idle from 644 to 755 changing mode of build/scripts-2.4/smtpd.py from 644 to 755
問題なく完了。
- make install
running install_scripts
copying build/scripts-2.4/smtpd.py -> /usr/local/bin
copying build/scripts-2.4/pydoc -> /usr/local/bin
copying build/scripts-2.4/idle -> /usr/local/bin
changing mode of /usr/local/bin/smtpd.py to 755
changing mode of /usr/local/bin/pydoc to 755
changing mode of /usr/local/bin/idle to 755
if test -f /usr/local/bin/python -o -h /usr/local/bin/python; \
then rm -f /usr/local/bin/python; \
else true; \
fi
(cd /usr/local/bin; ln python2.4 python)
Creating directory /usr/local/man
Creating directory /usr/local/man/man1
/usr/bin/install -c -m 644 ./Misc/python.man \
/usr/local/man/man1/python.1
インストール完了
zopeインストール2回目(失敗)
- cd /usr/local/src/Zope-3.3.1/
- ./configure
Configuring Zope installation Testing for an acceptable Python interpreter... Python version 2.4.5 found at /usr/local/bin/python Python version 2.4.5 found at /usr/local/bin/python2.4 Python version 2.5.1 found at /usr/bin/python Python version 2.5.1 found at /usr/bin/python2 An acceptable, but non-optimal Python version (2.4.5) was found at '/usr/local/bin/python'. This may be because you have an older or a newer Python version than the optimal version, 2.4.3. If it's an older version, consider installing 2.4.3 and run 'configure' again. If you're not happy with the choice 'configure' made, you can always manually specify a Python interpreter by rerunning the 'configure' script with the '--with--python' option.
--with-pythonオプションで、手動でインストールした古いバージョンのpythonの場所を指定する必要があるみたい。
zopeインストール3回目(成功)
- cd /usr/local/src/Zope-3.3.1/
- ./configure --with-python /usr/local/bin/python
Configuring Zope installation Using Python interpreter at /usr/local/bin/python
- make
/usr/local/bin/python install.py -q build
- make install
/usr/local/bin/python install.py -q build /usr/local/bin/python install.py -q install --skip-build --home "/usr/local/Zope-3.3.1"
何とかインストール完了。インストール先は、「/usr/local/Zope-3.3.1」になるらしい。