カサヒラボ RSSフィード

2007-09-22

[][]さくらレンタルサーバの「FreeBSD 6.1」バージョンアップで、trac + Subversion がエラーになってる

一つ前のエントリと同じく、

によって、trac + Subversionもエラーになってるっぽい。


tracURLアクセスすると、このあたりのエラーが出る。

Traceback (most recent call last):

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch

chosen_handler = self._pre_process_request(req, chosen_handler)

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request

chosen_handler = f.pre_process_request(req, chosen_handler)

File "/home/anjuta/local/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request

self.get_repository(req.authname).sync()

File "/home/anjuta/local/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 91, in get_repository

raise TracError('Unsupported version control system "%s". '

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


そして、コマンドライン

$ python -c "from svn import client"

でも、

Traceback (most recent call last):

File "<string>", line 1, in ?

File "/home/anjuta/local/lib/svn-python/svn/client.py", line 19, in ?

from libsvn.client import *

File "/home/anjuta/local/lib/svn-python/libsvn/client.py", line 5, in ?

import _client

ImportError: Shared object "libcrypt.so.2" not found, required by "_client.so"

のエラーが出る。


なので、こっちも再度make。


コマンドは、以前の自分メモを

完全にコピペ


とりあえず、Subversionがらみだけ再度make。

$ cd $HOME/local/src

$ wget http://jaist.dl.sourceforge.net/sourceforge/swig/swig-1.3.31.tar.gz

$ gunzip swig-1.3.31.tar.gz

$ tar xvf swig-1.3.31.tar

$ cd swig-1.3.31

$ ./configure --prefix=$HOME/local

$ make

$ make install

$ cd $HOME/local/src

$ wget http://www.webdav.org/neon/neon-0.25.5.tar.gz

$ tar xvzf neon-0.25.5.tar.gz

$ cd neon-0.25.5

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

$ make

$ make install

$ cd $HOME/local/src

$ wget http://subversion.tigris.org/downloads/subversion-1.4.3.tar.bz2

$ tar jxf subversion-1.4.3.tar.bz2

$ wget http://archive.apache.org/dist/apr/apr-0.9.13.tar.gz

$ tar zxvf apr-0.9.13.tar.gz

$ wget http://archive.apache.org/dist/apr/apr-util-0.9.13.tar.gz

$ tar zxvf apr-util-0.9.13.tar.gz

$ cp -rf apr-0.9.13 subversion-1.4.3/apr

$ cp -rf apr-util-0.9.13 subversion-1.4.3/apr-util

$ cd subversion-1.4.3

$ ./configure --prefix=$HOME/local --without-berkeley-db --with-neon=$HOME/local/ --enable-swig-bindings=python --with-swig=$HOME/local/bin/swig --disable-static --with-python=$HOME/local/lib/python --with-ssl --with-libs=$HOME/local

$ make clean

$ make clean-swig-py

$ make

$ make install

$ make swig-py

$ make install-swig-py

      • Subversionnのリンクをはる。

$ ln -s $HOME/local/lib/svn-python $HOME/local/lib/python/site-packages/svn-python

$ ln -s $HOME/local/lib/svn-python/svn $HOME/local/lib/python/site-packages/svn

$ ln -s $HOME/local/lib/svn-python/libsvn $HOME/local/lib/python/site-packages/libsvn


この状態で、

$ python -c "from svn import client"

のエラーは出なくなった。


しかし、ブラウザからアクセスすると、

Traceback (most recent call last):

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/main.py", line 206, in dispatch

req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())

File "/home/anjuta/local/lib/python2.4/site-packages/trac/web/clearsilver.py", line 135, in __init__

raise TracError, "ClearSilver not installed (%s)" % e

TracError: ClearSilver not installed (Shared object "libz.so.2" not found, required by "neo_cgi.so")

のエラーが残ってる。


上記のエラーメッセージから、なんとなくclearsilverっぽいので、

clearsilverを再度make。


$ cd $HOME/local/src

$ wget http://www.clearsilver.net/downloads/clearsilver-0.9.14.tar.gz

$ gunzip clearsilver-0.9.14.tar.gz

$ tar -xvf clearsilver-0.9.14.tar

$ cd clearsilver-0.9.14

$ ./configure --prefix=$HOME/local --oldincludedir=$HOME/local/include --disable-ruby --disable-java --disable-perl --disable-csharp --disable-python --disable-static

$ gmake

$ gmake install

$ cd python

$ python setup.py build

$ python setup.py install --prefix=$HOME/local


これで、ブラウザアクセスしてみると、

エラーが消えてるー。

f:id:kasahi:20070716023301p:image


よかった〜。

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/kasahi/20070922/1190481674