ページ更新: 2007-01-08 (月) (4331日前)

関連: Linux/Vine

(2006-12-27 新規作成)

Vine Linux 4.0 に trac-0.10.3-ja-1.zip をインストールしてみる。

目次

[編集]

必要なソフトウェアを用意する (2006-12-28) #

今回は稼働させることを目標にするので、とりあえず多少はバージョンが古くてもよい、と考えた。

そこで、Trac インストールガイド を見ながら、 Vine 4.0に用意されているソフトウェアパッケージを検索し、用意されていればそれを使い、 存在しないときだけtarballを使うことにした。

また、Tracの稼働に必須ではないソフトウェアがいくつかあるが、この機会についでに探しておく。

Vine Linux 4.0 をインストールしたときの手順や選択したパッケージは Linux/Vine を参照のこと。

[編集]

Python #

Python ... バージョンは2.4.4-0vl1。python, python-develを入れれば良さそう。

$ apt-cache search python | grep ^python
python - オブジェクト指向言語 Python インタプリタ
python-devel - Python での開発に必要なライブラリやヘッダファイル
python-docs - Python プログラミング言語のドキュメント
python-pyrex - A compiler/language for writing Python extension modules.
python-tools - Python に含まれる開発ツール一式
python-PyGreSQL - PostgreSQL DB にアクセスするための Python モジュール
python-cdb - A python interface to constant database files (cdb)
python-egenix-mx-base - eGenix 配布 Python DateTime ライブラリ
python-imaging - Python イメージ処理ライブラリ
python-kconv - Python 漢字コードコンバータ
python-numeric - Numerical Extension to Python
python-numeric-devel - Development files for Python numerical facilities
python-psycopg - PostgreSQL の Python データベースアダプタ
python-psycopg-doc - psycopg ドキュメント
python-pykf - Python 漢字コード変換モジュール
python-pyxml - Python XML ライブラリ
python-zopeedit - ExternalEditorヘルパーアプリケーション.

$ apt-cache show python | grep ^Version
Version: 2.4.4-0vl1
[編集]

SQLite #

sqlite (SQLite 2.X) か sqlite3 (SQLite 3.X) ... 両方ある。sqlite3 3.3.6-0vl3 を使うことにする。sqlite3-devel も念のため入れる。

$ apt-cache search sqlite | grep ^sqlite
sqlite3 - SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
sqlite3-devel - sqlite3の開発用ヘッダファイル及びライブラリ
sqlite3-tcl - SQLiteのTclクライアントライブラリ
sqlite - SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
sqlite-devel - SQLiteを使ってアプリを開発するためのヘッダファイルやライブラリ
sqlite-static-devel - SQLiteライブラリのstaticな開発用ライブラリ
sqlite-tools - SQLiteライブラリを管理するコマンドラインツール

$ apt-cache show sqlite3 | grep ^Version
Version: 3.3.6-0vl3

SQLite home page
http://www.sqlite.org/

[編集]

Apache2 #

Apache2 ... 2.2.3-0vl3 がある。apache2, apache2-devel, apache2-apr, apache2-apr-devel あたりが必要かな?

$ apt-cache search apache | grep ^apache2
apache2 - Apache HTTP Server
apache2-devel - Development tools for the Apache HTTP server.
apache2-manual - Documentation for the Apache HTTP server.
apache2-apr - Apache Portable Runtime library
apache2-apr-devel - APR library development kit

$ apt-cache show apache2 | grep ^Version
Version: 2.2.3-0vl3
[編集]

enscript #

enscript ... あり。1.6.1-27vl1。

$ apt-cache search enscript
enscript - A plain ASCII to PostScript converter.

$ apt-cache show enscript | grep ^Version
Version: 1.6.1-27vl1
[編集]

Subversion #

Subversion ... あり。ちょっと古いが (2006-12-28 時点の最新版は 1.4.2)、とりあえずそのまま使うことにする

$ apt-cache search subversion | grep ^subversion
subversion - 優れたコンカレントバージョニングシステム
subversion-devel - Development package for Subversion developers.
subversion-mod_dav_svn - Apache server module for Subversion server.
subversion-perl - Perl bindings to the Subversion libraries
subversion-python - Python bindings to the Subversion libraries
subversion-ruby - Ruby bindings to the Subversion libraries
subversion-tools - Tools for Subversion

$ apt-cache show subversion | grep ^Version
Version: 1.3.2-0vl1
[編集]

Ruby #

ruby ... Subversionのフックで、Rubyで書かれたスクリプトをいくつか見かけたことがあるので、ついでに入れておく。 ruby, ruby-develがあればよいかな?

$ apt-cache search ruby | grep ^ruby
ruby-amstd - あおきみねろう氏によるRuby用ユーティリティコレクション
ruby-bdb - Berkeley DB の Ruby バインディング
ruby-bsearch - a binary search library for Ruby
ruby-eb - Ruby extention library to use EB
ruby-gettext-package - gettext extention for Ruby
ruby-gnome2 - Ruby から gnome2 を使う為のライブラリ
ruby-gnome2-devel - ruby-gnome2 用のヘッダーファイル群
ruby-gtk2 - Ruby から GTK+2 を使う為のライブラリ
ruby-gtkglext - Ruby から GtkGLExt を使う為のライブラリ
ruby-gtkmozembed - Ruby から mozilla-gtkmozembed を使う為のライブラリ
ruby-intl - Ruby から GNU gettext を扱うためのライブラリ
ruby-ldap - Ruby 用の LDAP ライブラリへのインタフェース
ruby-libglade2 - Ruby から Libglade2 を使う為のライブラリ
ruby-mecab - MeCabのRubyバインディング
ruby-narray - NArray is a class of Numerical N-dimensional Array for ruby.
ruby-rica - Ruby Internet relay Chat Agents (based on RFC1459)
ruby-romkan - a Romaji <-> Kana conversion library for Ruby
ruby-uconv - UTF-8/16, UCS-4とEUC-JP/Shift_JISを相互変換するRubyライブラリ
ruby-v4l - ruby/V4L is simple wapper of v4l(Video for Linux).
ruby-xmlparser - Ruby用のexpatインタフェース
rubysdl - Ruby/SDLはRubyからSDLを使うための拡張ライブラリ
ruby - オブジェクト指向言語 Ruby インタプリタ
ruby-devel - A Ruby development environment.
ruby-docs - Ruby のマニュアルと FAQ
ruby-mode - Emacs-lisp ruby-mode for the scripting language Ruby
ruby-openssl - OpenSSL interface for scripting language Ruby.
ruby-tcltk - Tcl/Tk interface for scripting language Ruby.

$ apt-cache show ruby | grep ^Version
Version: 1.8.5-0vl1.1
Version: 1.8.5-0vl1
[編集]

ClearSilver #

ClearSilver ... なし。

$ apt-cache search clearsilver

よって、tarballを使う。 http://www.clearsilver.net/ から http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz を入手。

[編集]

PySQLite #

PySQLite ... なし。

$ apt-cache search sqlite | grep python
$ apt-cache search sqlite | grep -i py

tarballを使う。 http://initd.org/tracker/pysqlite から http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.tar.gz を入手。

[編集]

SilverCity #

SilverCity ... なし。

$ apt-cache search silvercity

tarballを使う。 http://silvercity.sourceforge.net/ から http://downloads.sourceforge.net/silvercity/SilverCity-0.9.7.tar.gz?modtime=1164245466&big_mirror=0 を入手。

[編集]

setuptools #

setuptools ... なし。

$ apt-cache search setuptools

tarballを使う。 http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions を見て、 http://cheeseshop.python.org/pypi/setuptools から http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-0.6c3.tar.gz を入手。 (ez_setup.py で認証付きHTTPプロキシを経由する方法がわからなかったので)

[編集]

mod_python #

mod_python ... なし。

$ apt-cache search python | grep mod
gnome-python - The sources for the PyGNOME Python extension module.
python-pyrex - A compiler/language for writing Python extension modules.
gnome-python-extras - The sources for additional. PyGNOME Python extension modules.

tarballを使う。 http://www.modpython.org/ から http://www.meisei-u.ac.jp/mirror/apache/dist/httpd/modpython/mod_python-3.2.10.tgz を入手。

[編集]

インストール (2006-12-28) #

[編集]

ソフトウェアパッケージのインストール (2006-12-28) #

メモ:

  • 出来る限り、Vine Linux 4.0 に用意されているパッケージを使うことにした。
  • 開発用パッケージ(ヘッダファイル、ライブラリ) *-devel も合わせてインストールしておく。
    • zlib-devel を入れるのを忘れた。後で追加しておく。少なくともSubversion,ClearSilverはconfigureの結果を消して、1からやり直しになる。(2007-01-08)
# apt-get install python-devel python-tools python-egenix-mx-base sqlite3-devel \
apache2-devel enscript subversion subversion-devel subversion-mod_dav_svn \
subversion-perl subversion-python subversion-ruby subversion-tools ruby-devel
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
以下の追加パッケージがインストールされます:
  apr-devel apr-util-devel cyrus-sasl-devel db4-devel expat-devel openldap-devel thread tix tkinter
以下のパッケージが新たにインストールされます:
  apache2-devel apr-devel apr-util-devel cyrus-sasl-devel db4-devel enscript expat-devel 
  openldap-devel python-devel python-egenix-mx-base python-tools ruby-devel sqlite3-devel subversion 
  subversion-devel subversion-mod_dav_svn subversion-perl subversion-python subversion-ruby 
  subversion-tools thread tix tkinter
アップグレード: 0 個, 新規インストール: 23 個, 削除: 0 個, 保留: 0 個
13.6MB のアーカイブを取得する必要があります。
展開後に 50.1MB のディスク容量が追加消費されます。
続行しますか? [Y/n]
取得:1 http://updates.vinelinux.org 4.0/i386/main apr-devel 1.2.7-0vl1 [787kB]
取得:2 http://updates.vinelinux.org 4.0/i386/main cyrus-sasl-devel 2.1.18-0vl6 [550kB]
取得:3 http://updates.vinelinux.org 4.0/i386/updates openldap-devel 2.3.27-0vl2.3 [1600kB]
取得:4 http://updates.vinelinux.org 4.0/i386/main db4-devel 4.2.52-6vl6 [1936kB]
取得:5 http://updates.vinelinux.org 4.0/i386/main expat-devel 1.95.8-0vl5 [119kB]
取得:6 http://updates.vinelinux.org 4.0/i386/main apr-util-devel 1.2.7-0vl2 [290kB]
取得:7 http://updates.vinelinux.org 4.0/i386/main apache2-devel 2.2.3-0vl3 [146kB]
取得:8 http://updates.vinelinux.org 4.0/i386/plus enscript 1.6.1-27vl1 [361kB]
取得:9 http://updates.vinelinux.org 4.0/i386/main python-devel 2.4.4-0vl1 [1895kB]
取得:10 http://updates.vinelinux.org 4.0/i386/plus thread 2.6.2-0vl2 [78.1kB]
取得:11 http://updates.vinelinux.org 4.0/i386/plus tix 8.2.0-0vl5 [529kB]
取得:12 http://updates.vinelinux.org 4.0/i386/main tkinter 2.4.4-0vl1 [278kB]
取得:13 http://updates.vinelinux.org 4.0/i386/main python-tools 2.4.4-0vl1 [88.6kB]
取得:14 http://updates.vinelinux.org 4.0/i386/updates ruby-devel 1.8.5-0vl1.1 [540kB]
取得:15 http://updates.vinelinux.org 4.0/i386/main sqlite3-devel 3.3.6-0vl3 [454kB]
取得:16 http://updates.vinelinux.org 4.0/i386/plus subversion 1.3.2-0vl1 [1414kB]
取得:17 http://updates.vinelinux.org 4.0/i386/plus subversion-devel 1.3.2-0vl1 [187kB]
取得:18 http://updates.vinelinux.org 4.0/i386/plus subversion-mod_dav_svn 1.3.2-0vl1 [59.2kB]
取得:19 http://updates.vinelinux.org 4.0/i386/plus subversion-perl 1.3.2-0vl1 [726kB]
取得:20 http://updates.vinelinux.org 4.0/i386/plus subversion-python 1.3.2-0vl1 [502kB]
取得:21 http://updates.vinelinux.org 4.0/i386/plus subversion-ruby 1.3.2-0vl1 [313kB]
取得:22 http://updates.vinelinux.org 4.0/i386/plus python-egenix-mx-base 2.0.6-0vl3 [566kB]
取得:23 http://updates.vinelinux.org 4.0/i386/plus subversion-tools 1.3.2-0vl1 [151kB]
13.6MB を 35s 秒で取得しました (383kB/s)
変更を適用しています...
  :
完了
[編集]

clearsilver-0.10.4.tar.gz (2006-12-28) #

$ tar zxvf clearsilver-0.10.4.tar.gz
  :
$ cd clearsilver-0.10.4
$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for ar... ar
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for Neotonic Paths... not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for wait3 that fills in rusage... yes
checking for gettimeofday... yes
checking for mktime... yes
checking for putenv... yes
checking for strerror... yes
checking for strspn... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for random... yes
checking for rand... yes
checking for drand48... yes
checking for lockf... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for snprintf... yes
checking for vsnprintf... yes
checking for localtime_r... yes
checking whether localtime_r is declared... yes
checking for gmtime_r... yes
checking whether gmtime_r is declared... yes
checking for strtok_r... yes
checking whether strtok_r is declared... yes
checking for mkstemp... yes
checking for regexec... yes
checking for deflate in -lz... no           ★
checking for apache apxs... found /usr/bin/apxs
checking for apache 1.3.x... ./configure: line 1: /usr/bin/httpd: No such file or directory
found  - disabling module build
checking for python includes... found /usr/include/python2.4
checking for perl >= 5.006... found /usr/bin/perl
checking for ruby... found /usr/bin/ruby
checking for j2sdk path... not found
checking for csharp path... not found
configure: creating ./config.status
config.status: creating rules.mk
config.status: creating cs_config.h

★で-lz が使われていない。調べたところzlib-develがインストールされていない。これが原因だと思う。

# apt-cache search zlib | grep ^zlib
zlib - zlib 圧縮/展開ライブラリ
zlib-devel - zlib を使ったプログラム開発に必要なヘッダファイル/ライブラリ

$ rpm -qa zlib zlib-devel
zlib-1.2.3-0vl5
$ make
  :
# make install
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/util' に入ります
make[1]: `everything' に対して行うべき事はありません。
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/util' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cs' に入ります
make[1]: `everything' に対して行うべき事はありません。
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cs' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cgi' に入ります
make[1]: `everything' に対して行うべき事はありません。
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cgi' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/python' に入ります
make[1]: `everything' に対して行うべき事はありません。
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/python' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/perl' に入ります
rm -f blib/arch/auto/ClearSilver/ClearSilver.so
gcc  -shared -L/usr/local/lib ClearSilver.o  -o blib/arch/auto/ClearSilver/ClearSilver.so   -L/home/admin/src/clearsilve
r-0.10.4/perl/../libs -lneo_cgi -lneo_cs -lneo_utl -lz
/usr/bin/ld: cannot find -lz
collect2: ld はステータス 1 で終了しました
make[1]: *** [blib/arch/auto/ClearSilver/ClearSilver.so] エラー 1
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/perl' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/ruby' に入ります
Running ruby test
Passed ruby test
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/ruby' から出ます
./mkinstalldirs /usr/local/include/ClearSilver
mkdir /usr/local/include/ClearSilver
./mkinstalldirs /usr/local/bin
./mkinstalldirs /usr/local/lib
./mkinstalldirs /usr/local/man/man3
mkdir /usr/local/man
mkdir /usr/local/man/man3
/usr/bin/install -c -m 644 ClearSilver.h /usr/local/include/ClearSilver/
/usr/bin/install -c -m 644 cs_config.h /usr/local/include/ClearSilver/
/usr/bin/install -c -m 644 man/man3/*.3 /usr/local/man/man3/
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/util' に入ります
../mkinstalldirs /usr/local/include/ClearSilver/util
mkdir /usr/local/include/ClearSilver/util
/usr/bin/install -c -m 644 neo_err.h neo_files.h neo_misc.h neo_rand.h ulist.h neo_hdf.h 
neo_str.h neo_date.h wildmat.h
neo_hash.h ulocks.h rcfs.h skiplist.h dict.h filter.h neo_net.h neo_server.h 
/usr/local/include/ClearSilver/util
/usr/bin/install -c -m 644 ../libs/libneo_utl.a /usr/local/lib
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/util' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cs' に入ります
../mkinstalldirs /usr/local/include/ClearSilver/cs
mkdir /usr/local/include/ClearSilver/cs
/usr/bin/install -c -m 644 cs.h /usr/local/include/ClearSilver/cs
/usr/bin/install -c -m 644 ../libs/libneo_cs.a /usr/local/lib
/usr/bin/install -c cstest /usr/local/bin
/usr/bin/install -c cs /usr/local/bin
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cs' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cgi' に入ります
../mkinstalldirs /usr/local/include/ClearSilver/cgi
mkdir /usr/local/include/ClearSilver/cgi
/usr/bin/install -c -m 644 cgi.h /usr/local/include/ClearSilver/cgi
/usr/bin/install -c -m 644 cgiwrap.h /usr/local/include/ClearSilver/cgi
/usr/bin/install -c -m 644 date.h /usr/local/include/ClearSilver/cgi
/usr/bin/install -c -m 644 html.h /usr/local/include/ClearSilver/cgi
/usr/bin/install -c -m 644 ../libs/libneo_cgi.a /usr/local/lib
/usr/bin/install -c cs_static.cgi /usr/local/bin
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/cgi' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/python' に入ります
../mkinstalldirs /usr/lib/python2.4/site-packages
/usr/bin/install -c neo_cgi.so /usr/lib/python2.4/site-packages
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/python' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/perl' に入ります
rm -f blib/arch/auto/ClearSilver/ClearSilver.so
gcc  -shared -L/usr/local/lib ClearSilver.o  -o blib/arch/auto/ClearSilver/ClearSilver.so 
-L/home/admin/src/clearsilve
r-0.10.4/perl/../libs -lneo_cgi -lneo_cs -lneo_utl -lz
/usr/bin/ld: cannot find -lz
collect2: ld はステータス 1 で終了しました
make[1]: *** [blib/arch/auto/ClearSilver/ClearSilver.so] エラー 1
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/perl' から出ます
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/ruby' に入ります
Running ruby test
Passed ruby test
/usr/bin/ruby install.rb install
install.rb: entering install phase...
---> lib
mkdir -p /usr/local/lib/site_ruby/1.8/
install neo.rb /usr/local/lib/site_ruby/1.8/
<--- lib
---> ext
---> ext/hdf
mkdir -p /usr/local/lib/site_ruby/1.8/i386-linux/.
install hdf.so /usr/local/lib/site_ruby/1.8/i386-linux/.
<--- ext/hdf
<--- ext
install.rb: install done.
make[1]: ディレクトリ `/home/admin/src/clearsilver-0.10.4/ruby' から出ます

インポートできるかどうか試す。OK。

$ python -c 'import neo_cgi'

ライブラリを調べる。configureで述べたようにzlibは使われていない。

$ ldd /usr/lib/python2.4/site-packages/neo_cgi.so
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb7dbf000)
        /lib/ld-linux.so.2 (0x80000000)
[編集]

pysqlite-2.3.2.tar.gz (2006-12-28) #

メモ:

  • root権限での作業を減らしたいので、python setup.py installで自動でbuildするのではなく、 明示的に python setup.py buildして、エラーが出ないことを確認してから rootでpython setup.py installした。
$ tar zxvf pysqlite-2.3.2.tar.gz
  :
$ cd pysqlite-2.3.2
$ python setup.py build
  :
# python setup.py install
running install
running build
running build_py
running build_ext
running install_lib
creating /usr/lib/python2.4/site-packages/pysqlite2
copying build/lib.linux-i686-2.4/pysqlite2/__init__.py -> /usr/lib/python2.4/site-packages/pysqlite2
copying build/lib.linux-i686-2.4/pysqlite2/_sqlite.so -> /usr/lib/python2.4/site-packages/pysqlite2
creating /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/transactions.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/__init__.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/userfunctions.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/types.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/regression.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/dbapi.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/hooks.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/test/factory.py -> /usr/lib/python2.4/site-packages/pysqlite2/test
copying build/lib.linux-i686-2.4/pysqlite2/dbapi2.py -> /usr/lib/python2.4/site-packages/pysqlite2
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/transactions.py to transactions.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/userfunctions.py to userfunctions.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/types.py to types.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/regression.py to regression.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/dbapi.py to dbapi.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/hooks.py to hooks.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/test/factory.py to factory.pyc
byte-compiling /usr/lib/python2.4/site-packages/pysqlite2/dbapi2.py to dbapi2.pyc
running install_data
creating /usr/pysqlite2-doc
copying doc/install-source.html -> /usr/pysqlite2-doc
copying doc/install-source-win32.html -> /usr/pysqlite2-doc
copying doc/usage-guide.html -> /usr/pysqlite2-doc
copying doc/install-source-win32.txt -> /usr/pysqlite2-doc
copying doc/install-source.txt -> /usr/pysqlite2-doc
copying doc/usage-guide.txt -> /usr/pysqlite2-doc
copying doc/default.css -> /usr/pysqlite2-doc
copying doc/silvercity.css -> /usr/pysqlite2-doc
copying doc/docutils.css -> /usr/pysqlite2-doc
creating /usr/pysqlite2-doc/code
copying doc/code/parse_colnames.py -> /usr/pysqlite2-doc/code
copying doc/code/execute_1.py -> /usr/pysqlite2-doc/code
copying doc/code/complete_statement.py -> /usr/pysqlite2-doc/code
copying doc/code/execsql_fetchonerow.py -> /usr/pysqlite2-doc/code
copying doc/code/createdb.py -> /usr/pysqlite2-doc/code
copying doc/code/adapter_point_1.py -> /usr/pysqlite2-doc/code
copying doc/code/mysumaggr.py -> /usr/pysqlite2-doc/code
copying doc/code/md5func.py -> /usr/pysqlite2-doc/code
copying doc/code/pysqlite_datetime.py -> /usr/pysqlite2-doc/code
copying doc/code/adapter_datetime.py -> /usr/pysqlite2-doc/code
copying doc/code/execute_3.py -> /usr/pysqlite2-doc/code
copying doc/code/executemany_2.py -> /usr/pysqlite2-doc/code
copying doc/code/countcursors.py -> /usr/pysqlite2-doc/code
copying doc/code/authorizer.py -> /usr/pysqlite2-doc/code
copying doc/code/collation_reverse.py -> /usr/pysqlite2-doc/code
copying doc/code/text_factory.py -> /usr/pysqlite2-doc/code
copying doc/code/converter_point.py -> /usr/pysqlite2-doc/code
copying doc/code/execsql_printall_1.py -> /usr/pysqlite2-doc/code
copying doc/code/adapter_point_2.py -> /usr/pysqlite2-doc/code
copying doc/code/connect_db_2.py -> /usr/pysqlite2-doc/code
copying doc/code/shortcut_methods.py -> /usr/pysqlite2-doc/code
copying doc/code/insert_more_people.py -> /usr/pysqlite2-doc/code
copying doc/code/shared_cache.py -> /usr/pysqlite2-doc/code
copying doc/code/executescript.py -> /usr/pysqlite2-doc/code
copying doc/code/connect_db_1.py -> /usr/pysqlite2-doc/code
copying doc/code/simple_tableprinter.py -> /usr/pysqlite2-doc/code
copying doc/code/row_factory.py -> /usr/pysqlite2-doc/code
copying doc/code/execute_2.py -> /usr/pysqlite2-doc/code
copying doc/code/executemany_1.py -> /usr/pysqlite2-doc/code
copying doc/code/rowclass.py -> /usr/pysqlite2-doc/code

インポートしてみる。OK。

$ python -c 'import pysqlite2'
[編集]

setuptools-0.6c3.tar.gz (2006-12-28) #

$ tar zxvf setuptools-0.6c3.tar.gz
  :
$ cd setuptools-0.6c3
$ python setup.py build
  :
# python setup.py install
running install
running bdist_egg
running egg_info
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
copying build/lib/pkg_resources.py -> build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/cli.exe -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/__init__.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/depends.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/sandbox.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/package_index.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/extension.py -> build/bdist.linux-i686/egg/setuptools
creating build/bdist.linux-i686/egg/setuptools/tests
copying build/lib/setuptools/tests/__init__.py -> build/bdist.linux-i686/egg/setuptools/tests
copying build/lib/setuptools/tests/test_resources.py -> build/bdist.linux-i686/egg/setuptools/tests
copying build/lib/setuptools/tests/doctest.py -> build/bdist.linux-i686/egg/setuptools/tests
copying build/lib/setuptools/archive_util.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/gui.exe -> build/bdist.linux-i686/egg/setuptools
creating build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/alias.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/__init__.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/install.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/register.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/build_ext.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/rotate.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/build_py.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/test.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/easy_install.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/sdist.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/install_lib.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/upload.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/develop.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/saveopts.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/setopt.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/egg_info.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/dist.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/site.py -> build/bdist.linux-i686/egg
copying build/lib/easy_install.py -> build/bdist.linux-i686/egg
byte-compiling build/bdist.linux-i686/egg/pkg_resources.py to pkg_resources.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/package_index.py to package_index.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/extension.py to extension.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/tests/test_resources.py to test_resources.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/tests/doctest.py to doctest.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/archive_util.py to archive_util.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/alias.py to alias.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install.py to install.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/register.py to register.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_ext.py to build_ext.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/rotate.py to rotate.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_scripts.py to install_scripts.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_py.py to build_py.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/sdist.py to sdist.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_lib.py to install_lib.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/upload.py to upload.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/develop.py to develop.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/saveopts.py to saveopts.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/setopt.py to setopt.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/egg_info.py to egg_info.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-i686/egg/site.py to site.pyc
byte-compiling build/bdist.linux-i686/egg/easy_install.py to easy_install.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/not-zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
creating dist
creating 'dist/setuptools-0.6c3-py2.4.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing setuptools-0.6c3-py2.4.egg
creating /usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg
Extracting setuptools-0.6c3-py2.4.egg to /usr/lib/python2.4/site-packages
Adding setuptools 0.6c3 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.4 script to /usr/bin

Installed /usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg
Processing dependencies for setuptools==0.6c3

インポートしてみる。OK。

$ python -c 'import setuptools'
[編集]

SilverCity-0.9.7.tar.gz (2006-12-28) #

$ tar zxvf SilverCity-0.9.7.tar.gz
  :
$ cd SilverCity-0.9.7
$ python setup.py build
  :
# python setup.py install
/usr/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running install
running build
running build_py
running build_ext
running build_scripts
running install_lib
creating /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/CPP.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/CSS.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/__init__.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Lexer.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Java.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/NULL.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/DispatchHandler.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/XML.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/_SilverCity.so -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Python.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/ScintillaConstants.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Perl.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/XSLT.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/HTMLGenerator.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/LanguageInfo.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Utils.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Keywords.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/YAML.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Verilog.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/Ruby.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/HyperText.py -> /usr/lib/python2.4/site-packages/SilverCity
copying build/lib.linux-i686-2.4/SilverCity/SQL.py -> /usr/lib/python2.4/site-packages/SilverCity
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/CPP.py to CPP.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/CSS.py to CSS.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Lexer.py to Lexer.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Java.py to Java.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/NULL.py to NULL.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/DispatchHandler.py to DispatchHandler.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/XML.py to XML.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Python.py to Python.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/ScintillaConstants.py to ScintillaConstants.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Perl.py to Perl.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/XSLT.py to XSLT.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/HTMLGenerator.py to HTMLGenerator.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/LanguageInfo.py to LanguageInfo.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Utils.py to Utils.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Keywords.py to Keywords.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/YAML.py to YAML.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Verilog.py to Verilog.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/Ruby.py to Ruby.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/HyperText.py to HyperText.pyc
byte-compiling /usr/lib/python2.4/site-packages/SilverCity/SQL.py to SQL.pyc
running install_scripts
copying build/scripts-2.4/cgi-styler-form.py -> /usr/bin
copying build/scripts-2.4/source2html.py -> /usr/bin
copying build/scripts-2.4/cgi-styler.py -> /usr/bin
changing mode of /usr/bin/cgi-styler-form.py to 755
changing mode of /usr/bin/source2html.py to 755
changing mode of /usr/bin/cgi-styler.py to 755
running install_data
copying CSS/default.css -> /usr/lib/python2.4/site-packages/SilverCity
[編集]

mod_python-3.2.10.tgz (2006-12-28) #

$ tar zxvf mod_python-3.2.10.tgz
  :
$ cd mod_python-3.2.10
$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... no
checking for apxs in /usr/local/apache/sbin... no
checking for apxs in your PATH... checking for apxs... /usr/bin/apxs
found /usr/bin/apxs, we'll use this. Use --with-apxs to specify another.
checking Apache version... 2.2.3
checking for Apache libexec directory... /usr/lib/apache2/modules
checking for Apache include directory... -I/usr/include/apache2
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.4
checking Python install prefix... /usr
checking checking where python libraries are installed... /usr/lib/python2.4
checking for Py_NewInterpreter in -lpython2.4... yes
checking what libraries Python was linked with... -lpython2.4   -lpthread -ldl  -lutil   -lm
checking linker flags used to link Python...
checking where Python include files are... -I/usr/include/python2.4
checking for --with-python-src... no
checking for --with-mutex-dir... no
Using MUTEX_DIR /tmp
checking for --with-max-locks... no
Using 8 MAX_LOCKS.
checking for --with-flex... no
checking for flex... /usr/bin/flex
found /usr/bin/flex, we'll use this. Use --with-flex to specify another.      ★
checking flex version... configure: WARNING: Flex version 2.5.4 found.
    Version 2.5.31 or greater is required.  You can generally ignore this
    warning unless you need to regenerate psp_parser.c from psp_parse.l.
    If you do need regenerate psp_parser.c, use --with-flex to specify the
    location of the correct flex version. See the README for more information.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating src/include/mod_python.h
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile

★flexが古い、と表示されてる。念のため、Flexのバージョンを調べておき、後で問題になったら差し替える。

$ rpm -qa flex
flex-2.5.4a-30vl2
$ flex --version
flex version 2.5.4
$ make
  :
# make install
make[1]: ディレクトリ `/home/admin/src/mod_python-3.2.10' に入ります
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/src' に入ります
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/src' から出ます
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/dist' に入ります
make[2]: `build' は更新済みです
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/dist' から出ます

Now su and make install
  (or, if you only want to perform a partial install,
   you can use make install_dso and make install_py_lib)


Performing DSO installation.

/usr/bin/install -c -d /usr/lib/apache2/modules
/usr/bin/install -c src/mod_python.so /usr/lib/apache2/modules

Now don't forget to edit your main config and add
    LoadModule python_module /usr/lib/apache2/modules/mod_python.so
and if your configuration uses ClearModuleList, then also
    AddModule mod_python.c

make[1]: ディレクトリ `/home/admin/src/mod_python-3.2.10' から出ます
make[1]: ディレクトリ `/home/admin/src/mod_python-3.2.10' に入ります
cd dist && make install_py_lib
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/dist' に入ります
make[3]: ディレクトリ `/home/admin/src/mod_python-3.2.10/src' に入ります
make[3]: `psp_parser.c' は更新済みです
make[3]: ディレクトリ `/home/admin/src/mod_python-3.2.10/src' から出ます
if test -z "" ; then \
        /usr/bin/python setup.py install --optimize 2 --force ; \
else \
        /usr/bin/python setup.py install --optimize 2 --force --root  ; \
fi
running install
running build
running build_py
running build_ext
running install_lib
creating /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/cache.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/__init__.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/_psp.so -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/testhandler.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/Session.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/util.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/python22.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/psp.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/apache.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/cgihandler.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/Cookie.py -> /usr/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/publisher.py -> /usr/lib/python2.4/site-packages/mod_python
byte-compiling /usr/lib/python2.4/site-packages/mod_python/cache.py to cache.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/testhandler.py to testhandler.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/Session.py to Session.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/util.py to util.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/python22.py to python22.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/psp.py to psp.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/apache.py to apache.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/cgihandler.py to cgihandler.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/Cookie.py to Cookie.pyc
byte-compiling /usr/lib/python2.4/site-packages/mod_python/publisher.py to publisher.pyc
writing byte-compilation script '/tmp/tmp2utJN7.py'
/usr/bin/python -OO /tmp/tmp2utJN7.py
removing /tmp/tmp2utJN7.py
make[2]: ディレクトリ `/home/admin/src/mod_python-3.2.10/dist' から出ます
make[1]: ディレクトリ `/home/admin/src/mod_python-3.2.10' から出ます
[編集]

trac-0.10.3-ja-a.zip (2006-12-28) #

http://www.i-act.co.jp/project/products/products.html から trac-0.10.3-ja-1.zip を入手して、インストールする。

$ unzip trac-0.10.3-ja-1.zip
  :
$ cd trac-0.10.3-ja-1
$ python setup.py build
  :
# python setup.py install
running install
running build
running build_py
copying trac/siteconfig.py -> build/lib/trac
running build_scripts
running install_lib
creating /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/Timeline.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/__init__.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/fcgi_frontend.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/api.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/auth.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/main.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/chrome.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/clearsilver.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/cgi_frontend.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/wsgi.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/href.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/_fcgi.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/standalone.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/modpython_frontend.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/web/session.py -> /usr/lib/python2.4/site-packages/trac/web
copying build/lib/trac/__init__.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/db_default.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/siteconfig.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/scripts
copying build/lib/trac/scripts/__init__.py -> /usr/lib/python2.4/site-packages/trac/scripts
copying build/lib/trac/scripts/admin.py -> /usr/lib/python2.4/site-packages/trac/scripts
creating /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/model.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/roadmap.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/__init__.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/api.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/query.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/web_ui.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/report.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/ticket/notification.py -> /usr/lib/python2.4/site-packages/trac/ticket
copying build/lib/trac/core.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/__init__.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/postgres_backend.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/api.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/sqlite_backend.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/pool.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/schema.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/mysql_backend.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/db/util.py -> /usr/lib/python2.4/site-packages/trac/db
copying build/lib/trac/config.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/perm.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/log.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/About.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/Settings.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/test.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/cache.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/__init__.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/svn_authz.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/diff.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/api.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
copying build/lib/trac/versioncontrol/svn_fs.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol
creating /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/versioncontrol/web_ui/__init__.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/versioncontrol/web_ui/log.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/versioncontrol/web_ui/util.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/versioncontrol/web_ui/browser.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/versioncontrol/web_ui/changeset.py -> /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui
copying build/lib/trac/loader.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/attachment.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/model.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/interwiki.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/__init__.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/formatter.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/api.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/macros.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/web_ui.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/wiki/intertrac.py -> /usr/lib/python2.4/site-packages/trac/wiki
copying build/lib/trac/Search.py -> /usr/lib/python2.4/site-packages/trac
creating /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/silvercity.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/__init__.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/patch.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/txtl.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/rst.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/api.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/enscript.py -> /usr/lib/python2.4/site-packages/trac/mimeview
copying build/lib/trac/mimeview/php.py -> /usr/lib/python2.4/site-packages/trac/mimeview
creating /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db17.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/__init__.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db18.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db9.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db11.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db4.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db16.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db3.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db13.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db8.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db10.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db5.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db19.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db6.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db7.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db12.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db15.py -> /usr/lib/python2.4/site-packages/trac/upgrades
copying build/lib/trac/upgrades/db14.py -> /usr/lib/python2.4/site-packages/trac/upgrades
creating /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/__init__.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/text.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/daemon.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/html.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/datefmt.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/util/autoreload.py -> /usr/lib/python2.4/site-packages/trac/util
copying build/lib/trac/notification.py -> /usr/lib/python2.4/site-packages/trac
copying build/lib/trac/env.py -> /usr/lib/python2.4/site-packages/trac
byte-compiling /usr/lib/python2.4/site-packages/trac/Timeline.py to Timeline.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/fcgi_frontend.py to fcgi_frontend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/auth.py to auth.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/main.py to main.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/chrome.py to chrome.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/clearsilver.py to clearsilver.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py to cgi_frontend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/wsgi.py to wsgi.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/href.py to href.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/_fcgi.py to _fcgi.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/standalone.py to standalone.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py to modpython_frontend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/web/session.py to session.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db_default.py to db_default.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/siteconfig.py to siteconfig.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/scripts/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/scripts/admin.py to admin.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/model.py to model.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/roadmap.py to roadmap.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/query.py to query.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/web_ui.py to web_ui.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/report.py to report.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/ticket/notification.py to notification.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/core.py to core.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/postgres_backend.py to postgres_backend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py to sqlite_backend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/pool.py to pool.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/schema.py to schema.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/mysql_backend.py to mysql_backend.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/db/util.py to util.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/config.py to config.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/perm.py to perm.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/log.py to log.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/About.py to About.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/Settings.py to Settings.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/test.py to test.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py to cache.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py to svn_authz.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/diff.py to diff.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py to svn_fs.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/log.py to log.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.py to util.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py to browser.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py to changeset.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/loader.py to loader.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/attachment.py to attachment.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/model.py to model.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/interwiki.py to interwiki.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/formatter.py to formatter.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/macros.py to macros.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/web_ui.py to web_ui.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/wiki/intertrac.py to intertrac.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/Search.py to Search.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/silvercity.py to silvercity.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/patch.py to patch.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/txtl.py to txtl.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/rst.py to rst.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/api.py to api.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/enscript.py to enscript.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/mimeview/php.py to php.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db17.py to db17.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db18.py to db18.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db9.py to db9.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db11.py to db11.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db4.py to db4.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db16.py to db16.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db3.py to db3.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db13.py to db13.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db8.py to db8.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db10.py to db10.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db5.py to db5.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db19.py to db19.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db6.py to db6.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db7.py to db7.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db12.py to db12.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db15.py to db15.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/upgrades/db14.py to db14.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/text.py to text.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/daemon.py to daemon.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/html.py to html.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/datefmt.py to datefmt.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/util/autoreload.py to autoreload.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/notification.py to notification.pyc
byte-compiling /usr/lib/python2.4/site-packages/trac/env.py to env.pyc
running install_scripts
copying build/scripts-2.4/trac-admin -> /usr/bin
copying build/scripts-2.4/tracd -> /usr/bin
copying build/scripts-2.4/trac.cgi -> /usr/share/trac/cgi-bin
copying build/scripts-2.4/trac.fcgi -> /usr/share/trac/cgi-bin
running install_data
creating /usr/share/trac/templates
copying templates/roadmap.cs -> /usr/share/trac/templates
copying templates/search.cs -> /usr/share/trac/templates
copying templates/settings.cs -> /usr/share/trac/templates
copying templates/ticket_rss.cs -> /usr/share/trac/templates
copying templates/browser.cs -> /usr/share/trac/templates
copying templates/query_rss.cs -> /usr/share/trac/templates
copying templates/changeset.cs -> /usr/share/trac/templates
copying templates/log_rss.cs -> /usr/share/trac/templates
copying templates/log_changelog.cs -> /usr/share/trac/templates
copying templates/milestone.cs -> /usr/share/trac/templates
copying templates/timeline_rss.cs -> /usr/share/trac/templates
copying templates/report.cs -> /usr/share/trac/templates
copying templates/footer.cs -> /usr/share/trac/templates
copying templates/ticket_notify_email.cs -> /usr/share/trac/templates
copying templates/error.cs -> /usr/share/trac/templates
copying templates/index.cs -> /usr/share/trac/templates
copying templates/anydiff.cs -> /usr/share/trac/templates
copying templates/header.cs -> /usr/share/trac/templates
copying templates/attachment.cs -> /usr/share/trac/templates
copying templates/macros.cs -> /usr/share/trac/templates
copying templates/query.cs -> /usr/share/trac/templates
copying templates/wiki.cs -> /usr/share/trac/templates
copying templates/timeline.cs -> /usr/share/trac/templates
copying templates/about.cs -> /usr/share/trac/templates
copying templates/ticket.cs -> /usr/share/trac/templates
copying templates/log.cs -> /usr/share/trac/templates
copying templates/report_rss.cs -> /usr/share/trac/templates
copying templates/README -> /usr/share/trac/templates
copying templates/newticket.cs -> /usr/share/trac/templates
creating /usr/share/trac/htdocs
copying htdocs/folder.png -> /usr/share/trac/htdocs
copying htdocs/file.png -> /usr/share/trac/htdocs
copying htdocs/changeset.png -> /usr/share/trac/htdocs
copying htdocs/trac.ico -> /usr/share/trac/htdocs
copying htdocs/trac_banner.png -> /usr/share/trac/htdocs
copying htdocs/closedticket.png -> /usr/share/trac/htdocs
copying htdocs/ics.png -> /usr/share/trac/htdocs
copying htdocs/parent.png -> /usr/share/trac/htdocs
copying htdocs/attachment.png -> /usr/share/trac/htdocs
copying htdocs/topbar_gradient2.png -> /usr/share/trac/htdocs
copying htdocs/xml.png -> /usr/share/trac/htdocs
copying htdocs/edit_toolbar.png -> /usr/share/trac/htdocs
copying htdocs/dots.gif -> /usr/share/trac/htdocs
copying htdocs/asc.png -> /usr/share/trac/htdocs
copying htdocs/python.png -> /usr/share/trac/htdocs
copying htdocs/editedticket.png -> /usr/share/trac/htdocs
copying htdocs/desc.png -> /usr/share/trac/htdocs
copying htdocs/trac_logo_mini.png -> /usr/share/trac/htdocs
copying htdocs/topbar_gradient.png -> /usr/share/trac/htdocs
copying htdocs/draft.png -> /usr/share/trac/htdocs
copying htdocs/milestone.png -> /usr/share/trac/htdocs
copying htdocs/extlink.gif -> /usr/share/trac/htdocs
copying htdocs/newticket.png -> /usr/share/trac/htdocs
copying htdocs/wiki.png -> /usr/share/trac/htdocs
copying htdocs/imggrid.png -> /usr/share/trac/htdocs
copying htdocs/README -> /usr/share/trac/htdocs
creating /usr/share/trac/htdocs/css
copying htdocs/css/diff.css -> /usr/share/trac/htdocs/css
copying htdocs/css/report.css -> /usr/share/trac/htdocs/css
copying htdocs/css/about.css -> /usr/share/trac/htdocs/css
copying htdocs/css/wiki.css -> /usr/share/trac/htdocs/css
copying htdocs/css/code.css -> /usr/share/trac/htdocs/css
copying htdocs/css/timeline.css -> /usr/share/trac/htdocs/css
copying htdocs/css/browser.css -> /usr/share/trac/htdocs/css
copying htdocs/css/changeset.css -> /usr/share/trac/htdocs/css
copying htdocs/css/trac.css -> /usr/share/trac/htdocs/css
copying htdocs/css/ticket.css -> /usr/share/trac/htdocs/css
copying htdocs/css/search.css -> /usr/share/trac/htdocs/css
copying htdocs/css/roadmap.css -> /usr/share/trac/htdocs/css
creating /usr/share/trac/htdocs/js
copying htdocs/js/trac.js -> /usr/share/trac/htdocs/js
copying htdocs/js/wikitoolbar.js -> /usr/share/trac/htdocs/js
copying htdocs/js/query.js -> /usr/share/trac/htdocs/js
copying scripts/tracd.1 -> /usr/share/man/man1
copying scripts/trac-admin.1 -> /usr/share/man/man1
creating /usr/share/trac/wiki-default
copying wiki-default/TracCgi -> /usr/share/trac/wiki-default
copying wiki-default/WikiPageNames -> /usr/share/trac/wiki-default
copying wiki-default/TracJa -> /usr/share/trac/wiki-default
copying wiki-default/WikiRestructuredTextLinks -> /usr/share/trac/wiki-default
copying wiki-default/TracAdmin -> /usr/share/trac/wiki-default
copying wiki-default/TracSearch -> /usr/share/trac/wiki-default
copying wiki-default/TracSyntaxColoring -> /usr/share/trac/wiki-default
copying wiki-default/TracTimeline -> /usr/share/trac/wiki-default
copying wiki-default/WikiDeletePage -> /usr/share/trac/wiki-default
copying wiki-default/TracReports -> /usr/share/trac/wiki-default
copying wiki-default/RecentChanges -> /usr/share/trac/wiki-default
copying wiki-default/TracWiki -> /usr/share/trac/wiki-default
copying wiki-default/TracNotification -> /usr/share/trac/wiki-default
copying wiki-default/TracEnvironment -> /usr/share/trac/wiki-default
copying wiki-default/WikiRestructuredText -> /usr/share/trac/wiki-default
copying wiki-default/TracGuide -> /usr/share/trac/wiki-default
copying wiki-default/InterTrac -> /usr/share/trac/wiki-default
copying wiki-default/TracInterfaceCustomization -> /usr/share/trac/wiki-default
copying wiki-default/TracUpgrade -> /usr/share/trac/wiki-default
copying wiki-default/TracBackup -> /usr/share/trac/wiki-default
copying wiki-default/TitleIndex -> /usr/share/trac/wiki-default
copying wiki-default/WikiMacros -> /usr/share/trac/wiki-default
copying wiki-default/TracInstall -> /usr/share/trac/wiki-default
copying wiki-default/TracUnicode -> /usr/share/trac/wiki-default
copying wiki-default/WikiHtml -> /usr/share/trac/wiki-default
copying wiki-default/TracRoadmap -> /usr/share/trac/wiki-default
copying wiki-default/TracFastCgi -> /usr/share/trac/wiki-default
copying wiki-default/TracBrowser -> /usr/share/trac/wiki-default
copying wiki-default/WikiNewPage -> /usr/share/trac/wiki-default
copying wiki-default/TracRevisionLog -> /usr/share/trac/wiki-default
copying wiki-default/TracPlugins -> /usr/share/trac/wiki-default
copying wiki-default/WikiStart -> /usr/share/trac/wiki-default
copying wiki-default/TracImport -> /usr/share/trac/wiki-default
copying wiki-default/TracQuery -> /usr/share/trac/wiki-default
copying wiki-default/WikiProce rs -> /usr/share/trac/wiki-default
copying wiki-default/SandBox -> /usr/share/trac/wiki-default
copying wiki-default/TracTermsJa -> /usr/share/trac/wiki-default
copying wiki-default/TracRss -> /usr/share/trac/wiki-default
copying wiki-default/InterMapTxt -> /usr/share/trac/wiki-default
copying wiki-default/TracStandalone -> /usr/share/trac/wiki-default
copying wiki-default/InterWiki -> /usr/share/trac/wiki-default
copying wiki-default/TracTickets -> /usr/share/trac/wiki-default
copying wiki-default/TracPermissions -> /usr/share/trac/wiki-default
copying wiki-default/TracAccessibility -> /usr/share/trac/wiki-default
copying wiki-default/CamelCase -> /usr/share/trac/wiki-default
copying wiki-default/WikiFormatting -> /usr/share/trac/wiki-default
copying wiki-default/TracChangeset -> /usr/share/trac/wiki-default
copying wiki-default/TracIni -> /usr/share/trac/wiki-default
copying wiki-default/TracLogging -> /usr/share/trac/wiki-default
copying wiki-default/TracModPython -> /usr/share/trac/wiki-default
copying wiki-default/TracLinks -> /usr/share/trac/wiki-default
copying wiki-default/TracSupport -> /usr/share/trac/wiki-default
copying wiki-default/TracTicketsCustomFields -> /usr/share/trac/wiki-default
creating /usr/share/trac/wiki-macros
copying wiki-macros/TracGuideToc.py -> /usr/share/trac/wiki-macros
copying wiki-macros/Timestamp.py -> /usr/share/trac/wiki-macros
copying wiki-macros/HelloWorld.py -> /usr/share/trac/wiki-macros

Thank you for choosing Trac 0.10.3. Enjoy your stay!
[編集]

動作の確認 (2006-12-28) #

[編集]

コマンドラインツールを起動してみる (2006-12-28) #

コマンドラインツールを起動してみる。

$ which trac-admin
/usr/bin/trac-admin

$ trac-admin
trac-admin - The Trac Administration Console 0.10.3

Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]]

Invoking trac-admin without command starts interactive mode.
about
        -- Shows information about trac-admin

help
        -- Show documentation

initenv
        -- Create and initialize a new environment interactively

initenv <projectname> <db> <repostype> <repospath> <templatepath>
        -- Create and initialize a new environment from arguments

hotcopy <backupdir>
        -- Make a hot backup copy of an environment

resync
        -- Re-synchronize trac with the repository

upgrade
        -- Upgrade database to current version

wiki list
        -- List wiki pages

wiki remove <name>
        -- Remove wiki page

wiki export <page> [file]
        -- Export wiki page to file or stdout

wiki import <page> [file]
        -- Import wiki page from file or stdin

wiki dump <directory>
        -- Export all wiki pages to files named by title

wiki load <directory>
        -- Import all wiki pages from directory

wiki upgrade
        -- Upgrade default wiki pages to current version

permission list [user]
        -- List permission rules

permission add <user> <action> [action] [...]
        -- Add a new permission rule

permission remove <user> <action> [action] [...]
        -- Remove permission rule

component list
        -- Show available components

component add <name> <owner>
        -- Add a new component

component rename <name> <newname>
        -- Rename a component

component remove <name>
        -- Remove/uninstall component

component chown <name> <owner>
        -- Change component ownership

ticket remove <number>
        -- Remove ticket

ticket_type list
        -- Show possible ticket types

ticket_type add <value>
        -- Add a ticket type

ticket_type change <value> <newvalue>
        -- Change a ticket type

ticket_type remove <value>
        -- Remove a ticket type

ticket_type order <value> up|down
        -- Move a ticket type up or down in the list

priority list
        -- Show possible ticket priorities

priority add <value>
        -- Add a priority value option

priority change <value> <newvalue>
        -- Change a priority value

priority remove <value>
        -- Remove priority value

priority order <value> up|down
        -- Move a priority value up or down in the list

severity list
        -- Show possible ticket severities

severity add <value>
        -- Add a severity value option

severity change <value> <newvalue>
        -- Change a severity value

severity remove <value>
        -- Remove severity value

severity order <value> up|down
        -- Move a severity value up or down in the list

version list
        -- Show versions

version add <name> [time]
        -- Add version

version rename <name> <newname>
        -- Rename version

version time <name> <time>
        -- Set version date (Format: "YYYY-MM-DD" or "now")

version remove <name>
        -- Remove version

milestone list
        -- Show milestones

milestone add <name> [due]
        -- Add milestone

milestone rename <name> <newname>
        -- Rename milestone

milestone due <name> <due>
        -- Set milestone due date (Format: "YYYY-MM-DD" or "now")

milestone completed <name> <completed>
        -- Set milestone completed date (Format: "YYYY-MM-DD" or "now")

milestone remove <name>
        -- Remove milestone
$ which tracd
/usr/bin/tracd
$ tracd
usage: tracd [options] [projenv] ...

tracd: error: either the --env-parent-dir option or at least one environment must be specified
[編集]

tracdで確認 (2006-12-28) #

テスト用にプロジェクトを作成してみる。

すぐ消すつもりなので /tmp に作り、選択肢はすべて<ENTER>のみを入力する。 (この場合、Subversionリポジトリビューアは働かないが、それはあとでちゃんとテストする)

$ trac-admin /tmp/project initenv
Creating a new Trac environment at /tmp/project

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> ★ENTERを入力

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]> ★ENTERを入力

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration,
 choose the default here and don't specify a repository directory.
 in the next question.

Repository type [svn]> ★ENTERを入力

 Please specify the absolute path to the version control
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> ★ENTERを入力

 Please enter location of Trac page templates.
 Default is the location of the site-wide templates installed with Trac.

Templates directory [/usr/share/trac/templates]> ★ENTERを入力

Creating and Initializing Project
 Installing default wiki pages
 /usr/share/trac/wiki-default/TracCgi => TracCgi
 /usr/share/trac/wiki-default/WikiPageNames => WikiPageNames
 /usr/share/trac/wiki-default/TracJa => TracJa
 /usr/share/trac/wiki-default/WikiRestructuredTextLinks => WikiRestructuredTextLinks
 /usr/share/trac/wiki-default/TracAdmin => TracAdmin
 /usr/share/trac/wiki-default/TracSearch => TracSearch
 /usr/share/trac/wiki-default/TracSyntaxColoring => TracSyntaxColoring
 /usr/share/trac/wiki-default/TracTimeline => TracTimeline
 /usr/share/trac/wiki-default/WikiDeletePage => WikiDeletePage
 /usr/share/trac/wiki-default/TracReports => TracReports
 /usr/share/trac/wiki-default/RecentChanges => RecentChanges
 /usr/share/trac/wiki-default/TracWiki => TracWiki
 /usr/share/trac/wiki-default/TracNotification => TracNotification
 /usr/share/trac/wiki-default/TracEnvironment => TracEnvironment
 /usr/share/trac/wiki-default/WikiRestructuredText => WikiRestructuredText
 /usr/share/trac/wiki-default/TracGuide => TracGuide
 /usr/share/trac/wiki-default/InterTrac => InterTrac
 /usr/share/trac/wiki-default/TracInterfaceCustomization => TracInterfaceCustomization
 /usr/share/trac/wiki-default/TracUpgrade => TracUpgrade
 /usr/share/trac/wiki-default/TracBackup => TracBackup
 /usr/share/trac/wiki-default/TitleIndex => TitleIndex
 /usr/share/trac/wiki-default/WikiMacros => WikiMacros
 /usr/share/trac/wiki-default/TracInstall => TracInstall
 /usr/share/trac/wiki-default/TracUnicode => TracUnicode
 /usr/share/trac/wiki-default/WikiHtml => WikiHtml
 /usr/share/trac/wiki-default/TracRoadmap => TracRoadmap
 /usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
 /usr/share/trac/wiki-default/TracBrowser => TracBrowser
 /usr/share/trac/wiki-default/WikiNewPage => WikiNewPage
 /usr/share/trac/wiki-default/TracRevisionLog => TracRevisionLog
 /usr/share/trac/wiki-default/TracPlugins => TracPlugins
 /usr/share/trac/wiki-default/WikiStart => WikiStart
 /usr/share/trac/wiki-default/TracImport => TracImport
 /usr/share/trac/wiki-default/TracQuery => TracQuery
 /usr/share/trac/wiki-default/WikiProcessors => WikiProcessors
 /usr/share/trac/wiki-default/SandBox => SandBox
 /usr/share/trac/wiki-default/TracTermsJa => TracTermsJa
 /usr/share/trac/wiki-default/TracRss => TracRss
 /usr/share/trac/wiki-default/InterMapTxt => InterMapTxt
 /usr/share/trac/wiki-default/TracStandalone => TracStandalone
 /usr/share/trac/wiki-default/InterWiki => InterWiki
 /usr/share/trac/wiki-default/TracTickets => TracTickets
 /usr/share/trac/wiki-default/TracPermissions => TracPermissions
 /usr/share/trac/wiki-default/TracAccessibility => TracAccessibility
 /usr/share/trac/wiki-default/CamelCase => CamelCase
 /usr/share/trac/wiki-default/WikiFormatting => WikiFormatting
 /usr/share/trac/wiki-default/TracChangeset => TracChangeset
 /usr/share/trac/wiki-default/TracIni => TracIni
 /usr/share/trac/wiki-default/TracLogging => TracLogging
 /usr/share/trac/wiki-default/TracModPython => TracModPython
 /usr/share/trac/wiki-default/TracLinks => TracLinks
 /usr/share/trac/wiki-default/TracSupport => TracSupport
 /usr/share/trac/wiki-default/TracTicketsCustomFields => TracTicketsCustomFields

---------------------------------------------------------------------
Project environment for 'My Project' created.

You may now configure the environment by editing the file:

  /tmp/project/conf/trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

  tracd --port 8000 /tmp/project

Then point your browser to http://localhost:8000/project.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

  http://trac.edgewall.org/

Congratulations!

tracdで稼働させてみる。

$ tracd --port 8000 /tmp/project

VineのWebブラウザを起動して http://localhost:8000/ にアクセスする。

trac-vine4.0-01.png

trac-vine4.0-02.png

trac-vine4.0-03.png

このとき、tracdを稼働させたターミナルに以下のようなアクセスログが表示される。

127.0.0.1 - - [28/Dec/2006 00:33:29] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:33:29] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [28/Dec/2006 00:33:40] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project/chrome/common/css/trac.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project/chrome/common/css/wiki.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project/chrome/common/css/code.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project/chrome/common/trac.ico HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:17] "GET /project/chrome/common/js/trac.js HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/trac_banner.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/topbar_gradient.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/trac_logo_mini.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/topbar_gradient2.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/dots.gif HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:35:18] "GET /project/chrome/common/extlink.gif HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:00] "GET /project/timeline HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:00] "GET /project/chrome/common/css/timeline.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:00] "GET /project/chrome/common/wiki.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:00] "GET /project/chrome/common/xml.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:02] "GET /project/roadmap HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:02] "GET /project/chrome/common/css/roadmap.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:02] "GET /project/chrome/common/ics.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:03] "GET /project/report HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:04] "GET /project/chrome/common/css/report.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:05] "GET /project/newticket HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:05] "GET /project/chrome/common/css/ticket.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:05] "GET /project/chrome/common/js/wikitoolbar.js HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:05] "GET /project/chrome/common/edit_toolbar.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:06] "GET /project/search HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:06] "GET /project/chrome/common/css/search.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:07] "GET /project/about HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:08] "GET /project/chrome/common/css/about.css HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:08] "GET /project/chrome/common/python.png HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:09] "GET /project/wiki/TracGuide HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:10] "GET /project/about HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:11] "GET /project/settings HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:12] "GET /project/login HTTP/1.1" 500 -
127.0.0.1 - - [28/Dec/2006 00:36:15] "GET /project/roadmap HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:16] "GET /project/timeline HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:18] "GET /project/wiki HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:25] "GET /project/wiki/WikiStart?action=edit HTTP/1.1" 200 -
127.0.0.1 - - [28/Dec/2006 00:36:32] "GET /project/wiki/WikiStart?action=edit HTTP/1.1" 200 -

tracdを止めるには、ctrl-Cを入力する。

これでtracの基本的な部分の動作確認は完了した。

[編集]

以後、作業中(放置中) #

メモ置き場。

[編集]

zlib-develについて #

zlib-devel は入れて置いた方がちょっとだけ無難かも知れず。 入れた後は、再度./configureすること。

expat-devel, libexpat, python-pyxml もいれたほうがよいかな。

[編集]

Tracプロジェクトの作成 #

  • プロジェクトの場所 /var/trac/scratch
  • プロジェクト名 Scratch
  • Subversionリポジトリ /var/svn/scratch
  • データベース SQLite (SQLite3), trac-adminでデータベースを作成
# mkdir /var/trac
# trac-admin /var/trac/scratch initenv
Creating a new Trac environment at /var/trac/scratch

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> Scratch

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Please specify the type of version control system,
By default, it will be svn.

If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.

Repository type [svn]>

Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.

Path to repository [/path/to/repos]> /var/svn/scratch

Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.

Templates directory [/usr/share/trac/templates]>

Creating and Initializing Project
Installing default wiki pages
/usr/share/trac/wiki-default/WikiRestructuredText => WikiRestructuredText
/usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
/usr/share/trac/wiki-default/TracSearch => TracSearch
/usr/share/trac/wiki-default/WikiStart => WikiStart
/usr/share/trac/wiki-default/TracRss => TracRss
/usr/share/trac/wiki-default/TracIni => TracIni
/usr/share/trac/wiki-default/SandBox => SandBox
/usr/share/trac/wiki-default/TracEnvironment => TracEnvironment
/usr/share/trac/wiki-default/TracLogging => TracLogging
/usr/share/trac/wiki-default/TracAccessibility => TracAccessibility
/usr/share/trac/wiki-default/WikiProcessors => WikiProcessors
/usr/share/trac/wiki-default/InterMapTxt => InterMapTxt
/usr/share/trac/wiki-default/WikiMacros => WikiMacros
/usr/share/trac/wiki-default/RecentChanges => RecentChanges
/usr/share/trac/wiki-default/TracAdmin => TracAdmin
/usr/share/trac/wiki-default/TracTicketsCustomFields => TracTicketsCustomFields
/usr/share/trac/wiki-default/InterWiki => InterWiki
/usr/share/trac/wiki-default/TracJa => TracJa
/usr/share/trac/wiki-default/TracChangeset => TracChangeset
/usr/share/trac/wiki-default/TracUnicode => TracUnicode
/usr/share/trac/wiki-default/TracLinks => TracLinks
/usr/share/trac/wiki-default/WikiHtml => WikiHtml
/usr/share/trac/wiki-default/TracBackup => TracBackup
/usr/share/trac/wiki-default/TracPlugins => TracPlugins
/usr/share/trac/wiki-default/TracTimeline => TracTimeline
/usr/share/trac/wiki-default/InterTrac => InterTrac
/usr/share/trac/wiki-default/CamelCase => CamelCase
/usr/share/trac/wiki-default/TracStandalone => TracStandalone
/usr/share/trac/wiki-default/TracGuide => TracGuide
/usr/share/trac/wiki-default/TracInterfaceCustomization => TracInterfaceCustomization
/usr/share/trac/wiki-default/WikiPageNames => WikiPageNames
/usr/share/trac/wiki-default/TracNotification => TracNotification
/usr/share/trac/wiki-default/TracModPython => TracModPython
/usr/share/trac/wiki-default/TracCgi => TracCgi
/usr/share/trac/wiki-default/TracInstall => TracInstall
/usr/share/trac/wiki-default/TracTermsJa => TracTermsJa
/usr/share/trac/wiki-default/TracRoadmap => TracRoadmap
/usr/share/trac/wiki-default/TracTickets => TracTickets
/usr/share/trac/wiki-default/TracPermissions => TracPermissions
/usr/share/trac/wiki-default/TracBrowser => TracBrowser
/usr/share/trac/wiki-default/WikiDeletePage => WikiDeletePage
/usr/share/trac/wiki-default/WikiNewPage => WikiNewPage
/usr/share/trac/wiki-default/WikiFormatting => WikiFormatting
/usr/share/trac/wiki-default/TracWiki => TracWiki
/usr/share/trac/wiki-default/TracSupport => TracSupport
/usr/share/trac/wiki-default/TracReports => TracReports
/usr/share/trac/wiki-default/TracImport => TracImport
/usr/share/trac/wiki-default/TitleIndex => TitleIndex
/usr/share/trac/wiki-default/TracSyntaxColoring => TracSyntaxColoring
/usr/share/trac/wiki-default/TracRevisionLog => TracRevisionLog
/usr/share/trac/wiki-default/TracUpgrade => TracUpgrade
/usr/share/trac/wiki-default/WikiRestructuredTextLinks => WikiRestructuredTextLinks
/usr/share/trac/wiki-default/TracQuery => TracQuery
Indexing repository

Project environment for 'Scratch' created.

You may now configure the environment by editing the file:

 /var/trac/scratch/conf/trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

 tracd --port 8000 /var/trac/scratch

Then point your browser to http://localhost:8000/scratch.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

 http://trac.edgewall.org/

Congratulations!

再度、tracdを起動して、

tracd --port 8000 /var/trac/scratch

Webブラウザで表示してみる。今回はリポジトリビューアを見てみること。

[編集]

Tracプロジェクトの管理用ユーザに全権限を割り当てる #

適当なユーザ(今回はadmin)に全権限(TRAC_ADMIN)を割り当てる。

# trac-admin /var/trac/scratch permission add admin TRAC_ADMIN

# trac-admin /var/trac/scratch permission list

User       Action
--------------------------
admin      TRAC_ADMIN
anonymous  BROWSER_VIEW
anonymous  CHANGESET_VIEW
anonymous  FILE_VIEW
anonymous  LOG_VIEW
anonymous  MILESTONE_VIEW
anonymous  REPORT_SQL_VIEW
anonymous  REPORT_VIEW
anonymous  ROADMAP_VIEW
anonymous  SEARCH_VIEW
anonymous  TICKET_CREATE
anonymous  TICKET_MODIFY
anonymous  TICKET_VIEW
anonymous  TIMELINE_VIEW
anonymous  WIKI_CREATE
anonymous  WIKI_MODIFY
anonymous  WIKI_VIEW

(本来、グループにTRAC_ADMIN権限を与えて、それにユーザを所属させた方がよいだろうが、テストなので。)

[編集]

apache周りの設定方法 #

デーモンの起動/終了/再起動/httpd.confの検査は /etc/init.d/apache2

$ /etc/init.d/apache2
使い方: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}

プロセスのオーナはapache:apache uid=48, gid=48。

$ grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin

$ grep apache /etc/group
apache:x:48:

(TODO: idコマンドを使うように直すこと)

[編集]

Subversionリポジトリの作成 #

# mkdir /var/svn
# svnadmin verify /var/svn/scratch
* 礫窿吾с 外 竊よ┝窿障窿

化けた。

# echo $LANG
ja_JP.eucJP

(端末をUTF-8に切り替え)

# svnadmin verify /var/svn/scratch
* リビジョン 0 を検証しました。

(端末をEUC-JPにもどす)

# chown -R apache:apache /var/svn

(TODO LANG= svnadmin verify /var/svn/scratch に直すこと、なぜsvnadminのメッセージがUTF-8になるのか調べること)

Devel::Bayside - SQLiteことはじめ
http://d.hatena.ne.jp/Bayside/20070102/p2

によるとLANG等の設定は「/etc/sysconfig/i18n」にあるとのこと。

Vine Linux
http://homepage3.nifty.com/tearoller/Vine2e.html#UTF8

  • Vine4.0のUTF-8化
[編集]

認証用の設定を用意する #

  • どこか適当な場所にDigest認証用のファイルを用意する。(Basic認証は好きじゃない) 今回はTracプロジェクトの直下、/var/trac/scratch/htdigest にした。
  • Realmは適当でよいが、今回はプロジェクト名と同じ Scratch にした。
  • ユーザー名はadminにした。
# htdigest2 -c /var/trac/scratch/htdigest Scratch admin
Adding password for admin in realm scratch.
New password:
Re-type new password:
[編集]

Apache2経由でSubversionリポジトリを公開 #

/etc/apache2/conf/httpd.conf

<Location /svn>
   DAV svn
   SVNParentPath "/var/svn"
   Order deny,allow
</Location>

<Location /svn/scratch>
   AuthType Digest
   AuthName "scratch"
   AuthUserFile "/var/trac/scratch/htdigest"
   <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
   </LimitExcept>
</Location>

Apacheを再起動し、http://localhost/svn/scratch にアクセスしてみる。OK。

[編集]

mod_python の動作確認 #

trac-0.10.3-ja-1.zip 付属の Trac と mod_python を読みつつ、

mod_python を読み込む(LoadModule)は /etc/apache2/conf/httpd.conf に書くことにする。 (/etc/apache2/conf/README を見る限り、そうするのがよさそう)

# ls /etc/apache2/modules/mod_python.so
/etc/apache2/modules/mod_python.so*

/etc/apache2/conf.d/python.conf

LoadModule python_module      modules/mod_python.so
# /etc/init.d/apache2 configtest
Syntax OK
# /etc/init.d/apache2 restart
httpdを停止中:                                             [  OK  ]
httpdを起動中:                                             [  OK  ]
# tail /var/log/apache2/error_log
[Wed Dec 28 07:42:35 2006] [notice] caught SIGTERM, shutting down
[Wed Dec 28 07:42:35 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Dec 28 07:42:36 2006] [notice] Digest: generating secret for digest authentication ...
[Wed Dec 28 07:42:36 2006] [notice] Digest: done
[Wed Dec 28 07:42:36 2006] [notice] mod_python: Creating 8 session mutexes based on 
256 max processes and 0 max threads.
[Wed Dec 28 07:42:36 2006] [notice] mod_python: using mutex_directory /tmp
[Wed Dec 28 07:42:36 2006] [notice] Apache/2.2.3 (Unix) configured -- resuming normal operations

次に、簡単なハンドラで動作を確認する。

/etc/apache2/conf/httpd.conf の末尾に以下の設定を追加(Trac と mod_pythonより)、 configtest、再起動。

<Location /mpinfo>
   SetHandler mod_python
   PythonHandler mod_python.testhandler
</Location>
# /etc/init.d/apache2 configtest
# /etc/init.d/apache2 restart

Webブラウザで http://localhost/mpinfo にアクセスする。 また、/var/log/apache2/error_log を確認する。エラーが出ていないようだ。OK。

[編集]

mod_pythonでのtracの動作確認・・・失敗 (Segmentation Faultが発生) #

ownerをapacheにしておく。

# chown -R apache:apache /var/trac

(いまんとこ必要ないだろうが)pluginのためのキャッシュディレクトリも作成しておく。

# mkdir /var/cache/eggcache
# chown -R apache:apache /var/cache/eggcache/

/etc/apache2/conf/httpd.conf に次の設定を追加し、configtestして、再起動。

<Location /trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnvParentDir "/var/trac"
   PythonOption TracUriRoot /trac
   SetEnv PYTHON_EGG_CACHE "/var/cache/eggcache"
#   SetEnv LC_TIME C
#   PythonDebug on
</Location>

<Location "/trac/scratch/login">
   AuthType Digest
   AuthName "scratch"
   AuthUserFile "/var/trac/scratch/htdigest"
   Require valid-user
</Location>

Webブラウザでアクセスすると、何も表示されない。

Apacheのログを調べると、Segmentation fault (11) が発生していた。

/var/log/apache2/error_log

[Wed Dec 28 22:20:07 2006] [notice] mod_python: using mutex_directory /tmp
[Wed Dec 28 22:20:07 2006] [notice] Apache/2.2.3 (Unix) configured -- resuming normal operations
[Wed Dec 28 22:20:11 2006] [notice] child pid 26314 exit signal Segmentation fault (11)
[Wed Dec 28 22:20:18 2006] [notice] child pid 26315 exit signal Segmentation fault (11)

ここらへんかな?

…でもちょっと違うみたい。

Apache2でcore吐かせて調べないとダメかな……。

[編集]

LogLevel debug で詳細なログを採る (2007-01-06) #

参考:

httpd.confにLogLevelディレクティブを設定しておく:

LogLevel debug

ログを消去して:

# cp /dev/null /var/log/apache2/error_log

Apacheを起動して (-Xはforkしない):

# apache2 -X

プロセスを確認して:

$ ps aux | grep apache
apache    3320 41.0  2.5  14436  6552 pts/1    S+   22:28   0:00 apache2 -X
admin     3322  0.0  0.2   4620   684 pts/2    R+   22:28   0:00 grep apache

http://localhost/trac/ にアクセスすると、セグメンテーション違反が発生する:

セグメンテーション違反です

プロセスを確認して (存在しない):

# ps aux | grep apache
#

ログを確認。「trac.web.modpython_frontend」が実行されたことが判るが、それ以上のことは判らない:

# less /var/log/apache2/error_log
[Sat Jan 06 22:27:15 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Jan 06 22:27:15 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Jan 06 22:27:15 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat Jan 06 22:27:15 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat Jan 06 22:27:15 2007] [debug] ssl_scache_dbm.c(409): Inter-Process Session Cache (DBM) Expiry: 
old: 0, new: 0, removed: 0
[Sat Jan 06 22:27:15 2007] [info] Init: Initializing (virtual) servers for SSL
[Sat Jan 06 22:27:15 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.7l
[Sat Jan 06 22:27:15 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Jan 06 22:27:15 2007] [notice] Digest: done
[Sat Jan 06 22:27:15 2007] [debug] util_ldap.c(1929): LDAP merging Shared Cache conf: shm=0x80dd708 
rmm=0x80dd738 for VHOST: new.host.name
[Sat Jan 06 22:27:15 2007] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Sat Jan 06 22:27:15 2007] [info] LDAP: SSL support available
[Sat Jan 06 22:27:15 2007] [notice] mod_python: Creating 8 session mutexes based on 256 max processes 
and 0 max threads.
[Sat Jan 06 22:27:15 2007] [notice] mod_python: using mutex_directory /tmp
[Sat Jan 06 22:27:15 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Jan 06 22:27:15 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat Jan 06 22:27:16 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat Jan 06 22:27:16 2007] [debug] ssl_scache_dbm.c(409): Inter-Process Session Cache (DBM) Expiry: 
old: 0, new: 0, remo
ved: 0
[Sat Jan 06 22:27:16 2007] [info] Init: Initializing (virtual) servers for SSL
[Sat Jan 06 22:27:16 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.7l
[Sat Jan 06 22:27:16 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in 
child 3152 for worker proxy:reverse
[Sat Jan 06 22:27:16 2007] [debug] proxy_util.c(1724): proxy: initialized single connection 
worker 0 in child 3152 for (*)
[Sat Jan 06 22:27:23 2007] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Sat Jan 06 22:27:24 2007] [notice] mod_python: (Re)importing module 'trac.web.modpython_frontend'
(END)
[編集]

straceで調査する (2007-01-06) #

strace経由でapache2を起動、ログを /tmp/apache_strace.log に採る:

# strace -o /tmp/apache_strace.log apache2 -X

プロセスを確認:

$ ps aux | grep apache
root      3330 27.0  0.2   1680   624 pts/1    S+   22:28   0:00 strace -o /tmp/apache_strace.log apache2 -X
apache    3331 43.0  2.5  14440  6552 pts/1    S+   22:28   0:00 apache2 -X

http://localhost/trac にアクセスすると、セグメンテーション違反が発生する。

straceのログを確認する:

# less -l /tmp/apache_strace.log
  :
  :
open("/usr/lib/python2.4/lib-dynload/_codecs_jp.so", O_RDONLY|O_LARGEFILE) = 18
close(18)                               = 0
close(17)                               = 0
access("/var/trac/scratch/db/trac.db", F_OK) = 0
access("/var/trac/scratch/db/trac.db", R_OK|W_OK) = 0
access("/var/trac/scratch/db", R_OK|W_OK) = 0
open("/var/trac/scratch/db/trac.db", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 17
fstat64(17, {st_mode=S_IFREG|0644, st_size=344064, ...}) = 0
_llseek(17, 0, [0], SEEK_SET)           = 0
read(17, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\34\0\0\0\0"..., 100) = 100
mmap2(NULL, 3685003264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap2(NULL, 3685138432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap2(NULL, 2097152, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xb6c4a000
munmap(0xb6c4a000, 745472)              = 0
munmap(0xb6e00000, 303104)              = 0
mprotect(0xb6d00000, 135168, PROT_READ|PROT_WRITE) = 0
mmap2(NULL, 3685003264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap2(NULL, 3685003264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap2(NULL, 3685003264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap2(NULL, 3685138432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
close(17)                               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
(END)

SQLite3のtrac.dbを開いたあとの、SIGSEGVの直前のmmap2のエラーが気になる。

man mmap2 すると

void * mmap2(void *start, size_t length, int prot, int flags, int fd, off_t pgoffset);

同様にtracdでもやって、比較するべき。 しかし、うっかりVMwareを「復元」してVineインストール直後に戻してしまったので、まだ試していない。

[編集]

デバッガ経由で起動してみる (2007-01-06) #

# apt-get install gdb
  :
取得:1 http://updates.vinelinux.org 4.0/i386/plus gdb 6.4.90-0vl1 [3195kB]
  :
# gdb --args /usr/sbin/apache2 -X
GNU gdb 6.4.90
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-vine-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) r
Starting program: /usr/sbin/apache2 -X
(no debugging symbols found)
(no debugging symbols found)
  :
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---q
Error while reading shared library symbols:
Quit
(no debugging symbols found)
(no debugging symbols found)
  :
Program received signal SIGSEGV, Segmentation fault.
0xb78919a2 in PyDict_GetItem () from /etc/apache2/modules/mod_python.so
(gdb) bt
#0  0xb78919a2 in PyDict_GetItem () from /etc/apache2/modules/mod_python.so
#1  0xb70900b9 in cache_get () from /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
#2  0xb708ef5b in _query_execute () from /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
#3  0xb708f7ec in cursor_execute () from /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
#4  0xb7894b4d in PyCFunction_Call () from /etc/apache2/modules/mod_python.so
#5  0xb7879d07 in PyObject_Call () from /etc/apache2/modules/mod_python.so
#6  0xb78c672a in PyEval_CallObjectWithKeywords () from /etc/apache2/modules/mod_python.so
#7  0xb7909845 in methoddescr_call () from /etc/apache2/modules/mod_python.so
#8  0xb7879d07 in PyObject_Call () from /etc/apache2/modules/mod_python.so
#9  0xb78c746b in ext_do_call () from /etc/apache2/modules/mod_python.so
#10 0xb78c4be8 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#11 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#12 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#13 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#14 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#15 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#16 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#17 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#18 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#19 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#20 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#21 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#22 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#23 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#24 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#25 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#26 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#27 0xb78c6f1b in fast_function () from /etc/apache2/modules/mod_python.so
#28 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#29 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#30 0xb78c6f1b in fast_function () from /etc/apache2/modules/mod_python.so
#31 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#32 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#33 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#34 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#35 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#36 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#37 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#38 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#39 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#40 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#41 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#42 0xb78c6e7c in fast_function () from /etc/apache2/modules/mod_python.so
#43 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#44 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#45 0xb78c6f1b in fast_function () from /etc/apache2/modules/mod_python.so
#46 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#47 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#48 0xb78c6f1b in fast_function () from /etc/apache2/modules/mod_python.so
---Type <return> to continue, or q <return> to quit---
#49 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#50 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#51 0xb78c6f1b in fast_function () from /etc/apache2/modules/mod_python.so
#52 0xb78c6a1f in call_function () from /etc/apache2/modules/mod_python.so
#53 0xb78c4815 in PyEval_EvalFrame () from /etc/apache2/modules/mod_python.so
#54 0xb78c536e in PyEval_EvalCodeEx () from /etc/apache2/modules/mod_python.so
#55 0xb7910e4a in function_call () from /etc/apache2/modules/mod_python.so
#56 0xb7879d07 in PyObject_Call () from /etc/apache2/modules/mod_python.so
#57 0xb788071b in instancemethod_call () from /etc/apache2/modules/mod_python.so
#58 0xb7879d07 in PyObject_Call () from /etc/apache2/modules/mod_python.so
#59 0xb7879f07 in PyObject_CallMethod () from /etc/apache2/modules/mod_python.so
#60 0xb78748d8 in python_handler () from /etc/apache2/modules/mod_python.so
#61 0xb78760e9 in PythonHandler () from /etc/apache2/modules/mod_python.so
#62 0x080697d5 in ap_run_handler ()
#63 0x08069dd0 in ap_invoke_handler ()
#64 0x0807656f in ap_process_request ()
#65 0x08073f78 in ap_process_http_connection ()
#66 0x08070145 in ap_run_process_connection ()
#67 0x0807adca in child_main ()
#68 0x0807af02 in make_child ()
#69 0x0807bb2f in ap_mpm_run ()
#70 0x08056f9c in main ()
(gdb)

straceの結果と合わせると、たぶんSQLite3でエラー発生、PySQLiteで異常な値を評価しようとしてSIGSEGVが起きているのだと思う。

[編集]

core dumpの設定 (sysctl) (2007-01-06) #

# /sbin/sysctl -a | grep core
error: "Success" reading key "dev.parport.parport0.autoprobe3"
error: "Success" reading key "dev.parport.parport0.autoprobe2"
error: "Success" reading key "dev.parport.parport0.autoprobe1"
error: "Success" reading key "dev.parport.parport0.autoprobe0"
error: "Success" reading key "dev.parport.parport0.autoprobe"
error: "Operation not permitted" reading key "net.ipv6.route.flush"
error: "Operation not permitted" reading key "net.ipv4.route.flush"
net.core.netdev_budget = 300
net.core.somaxconn = 128
net.core.divert_version = 0.46
net.core.optmem_max = 10240
net.core.message_burst = 10
net.core.message_cost = 5
net.core.netdev_max_backlog = 1000
net.core.dev_weight = 64
net.core.rmem_default = 107520
net.core.wmem_default = 107520
net.core.rmem_max = 107520
net.core.wmem_max = 107520
kernel.core_pattern = core
kernel.core_uses_pid = 1

# cat /proc/sys/kernel/core_pattern
core

# cat /proc/sys/kernel/core_uses_pid
1
[編集]

TODO: core dumpの設定 (ulimit) (2007-01-06) #

(TODO: まだ試していない)

ulimitでcore dumpを許可する。

$ ulimit
unlimited

$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 32
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 2048
virtual memory        (kbytes, -v) unlimited
$ ulimit -c unlimited
$ ulimit -a
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 32
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 2048
virtual memory        (kbytes, -v) unlimited
[編集]

TODO: core dumpの設定 (Apache CoreDumpDirectory) (2007-01-06) #

(TODO: まだ試していない)

CoreDumpDirectory ディレクティブを設定しておく。

CoreDumpDirectory /tmp