trac 을 설치해 보질 않아서 잘 모르겠지만
python-devel
python-xml
두개의 패키지도 필요한것 같습니다. 확인해 보시고...
아래 메시지는 python 관련 메시지 인것 같습니다.
[ZEROCOOL]님이 남기신 글:
>Linux SULinux release 1.0 (Server)
>Apache 2.0.58
>PHP 5.1.4
>Mysql 5.0.22
>SubVersion 1.3.2
>Python 2.4.3
>PySQlite 2.3.2
>SQLite 3.3.6
>ClearSilver 0.10.3
>BerkeleyDB 4.3.29
>Trac 0.9.4
>
>설치 되어있는 버전들은 이렇구요
>
>설치를 모두 마치고
>
>trac-0.9.4-ko# trac-admin /home/trac initenv
> Project Name [My Project]> My_Project
> Database connection string [sqlite:db/trac.db]> 'just ENTER'
> Repository type [svn]> 'just ENTER'
> Path to repository [/path/to/repos]> /home/svn
> Templates directory [/usr/local/share/trac/templates]> 'just ENTER'
> ...
> Congratulations!
>
>제가 보고있는 메뉴얼에 이렇게 되어있었습니다.
>그대로 했는데 저는 맨 밑에 Congratulations! 이런 메세지
대신
>
>Creating and Initializing Project
>Failed to create environment. global name 'sqlite' is not defined
>Traceback (most recent call last):
> File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py",
line 584, in do_initenv
> options=options)
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 85, in
__init__
> self.create(options)
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 192, in
create
> DatabaseManager(self).init_db()
> File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 53,
in init_db
> connector.init_db(**args)
> File
"/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line
104, in init_db
> cnx = sqlite.connect(path, timeout=int(params.get('timeout',
10000)))
>NameError: global name 'sqlite' is not defined
>Failed to initialize environment. 1
>Traceback (most recent call last):
> File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py",
line 588, in do_initenv
> sys.exit(1)
>SystemExit: 1
>
>이런메세지가 나오더군요 그냥 무시하고
>
>trac-0.9.4-ko# tracd --port 8000 /home/trac
>
>이렇게 trac 실행시켰습니다.
>그 뒤에 확인하려고 http://192.168.1.235:8000/ 하니까 접속되면서
>화면 좌측 상단에
>
>Available Project
>* trac
>
>이런식으로 나옵니다 그리고 http://192.168.1.235:8000/trac
>접속하면 페이지 표시할수 없습니다 라고 나오고
>리눅스에도 메세지가 오는데
>
>192.168.1.241 - - [13/Aug/2006 21:32:35] "GET / HTTP/1.1" 200
-
>----------------------------------------
>Exception happened during processing of request from ('192.168.1.241',
4520)
>Traceback (most recent call last):
> File "/usr/local/lib/python2.4/SocketServer.py", line 463, in
process_request_thread
> self.finish_request(request, client_address)
> File "/usr/local/lib/python2.4/SocketServer.py", line 254, in
finish_request
> self.RequestHandlerClass(request, client_address, self)
> File "/usr/local/lib/python2.4/SocketServer.py", line 521, in
__init__
> self.handle()
> File "/usr/local/lib/python2.4/BaseHTTPServer.py", line 316, in
handle
> self.handle_one_request()
> File "/usr/local/lib/python2.4/BaseHTTPServer.py", line 310, in
handle_one_request
> method()
> File "/usr/local/lib/python2.4/site-packages/trac/web/standalone.py",
line 240, in do_GET
> self._do_trac_req()
> File "/usr/local/lib/python2.4/site-packages/trac/web/standalone.py",
line 263, in _do_trac_req
> env = get_environment(req, options)
> File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
331, in get_environment
> return _open_environment(env_path, threaded)
> File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
53, in _open_environment
> env_cache[env_path] = open_environment(env_path)
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 370, in
open_environment
> if env.needs_upgrade():
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 274, in
needs_upgrade
> db = self.get_db_cnx()
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 140, in
get_db_cnx
> return DatabaseManager(self).get_connection()
> File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 59,
in get_connection
> return self._cnx_pool.get_cnx()
> File "/usr/local/lib/python2.4/site-packages/trac/db/pool.py", line 75,
in get_cnx
> cnx = self._connector.get_connection(**self._kwargs)
> File
"/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line
96, in get_connection
> return SQLiteConnection(path, params)
> File
"/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line
123, in __init__
> assert have_pysqlite > 0
>AssertionError
>----------------------------------------
>이렇게 나옵니다..
>저 이거 꼭 월요일까지 해결해야 하는데 좀
도와주세요..
>뭐가 문제일까요..subversion
은 잘 동작합니다.
>넘 복잡한 글 써서 죄송하구요
>아시는분은 꼭 좀 도와주세요
========================================
|