trac-jaを入れてみる

Trac0.11系は慣れ親しんだプラグインが使えないようなのでtrac-ja 0.10.3を入れるテスト。

もともと入っていたもの

  • openssl
  • swig
  • libxml2
  • zlib
  • neon

入れるもの


ソシテ、案の定はまった。



apacheのconfigureでエラー(mod_sslを使いたい)

configure: error: ... Error, SSL/TLS libraries were missing or unusable

対処

/etc/ld.so.confに/usr/local/ssl/libを追加
configureのオプションに --with-ssl=/usr/local/ssl を追加



svn createコマンド実行したらエラー

cannot restore segment prot after reloc: Permission denied

tracのURLにアクセスしたらエラー画面

TracError: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.

対処


続)neonを入れてからはまりに引き戻し・・
subversionのneon対応をうっかりしてなかったので、subversionを入れなおすはめに。
make check-swig-pyのときに

ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: SSL_shutdown

ってエラー。
エェーとおもってしらべて
http://groups.google.com/group/trac-users/msg/1ec307bef7552e5e
にあるようにneonのconfigureを見直し。

$ ./configure --with-ssl=openssl --with-libs=/usr/local/ssl --enable-shared --enable-static

sharedとstaticをenableにする。
前に入れたneonのフォルダはリネーム。
subversionはmakeする前にmake cleanとmake clean-swig-pyをやっておく。

$ make check-swig-py
cd /home/rails/downloads/subversion-1.4.4/subversion/bindings/swig/python; \
          /usr/bin/python /home/rails/downloads/subversion-1.4.4/subversion/bindings/swig/python/tests/run_all.py
..................................
----------------------------------------------------------------------
Ran 34 tests in 0.941s

OK


最終的にsubversionのconfigureは以下になった。

$ ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/home/rails/downloads/httpd-2.2.4/srclib/apr --with-apr-util=/home/rails/downloads/httpd-2.2.4/srclib/apr-util --with-berkeley-db=/usr/local/BerkeleyDB.4.5 --enable-swig-bindings=python --with-swig=/usr/bin/swig --with-neon=/usr/local --with-ssl --with-libs=/usr/local/ssl

あと、subversion入れたあとにこれやっとく。
subversionとpythonが連携できるか確認するため。

$ python -c "import svn.repos"

cannot restore segment prot after reloc: Permission deniedが出るやつは解除−ォ