使用 Subversion 安装 Trac

使用 Subversion 安装 Trac

我正在使用 subversion 安装 trac,安装时出现错误,我点击此链接“http://trac.edgewall.org/wiki/Ubuntu-11.04-Subversion“...当我提供数据库字符串时,出现以下错误,有人可以帮忙吗....??

Database connection string [sqlite:db/trac.db]> mysql://trac:yourpassword@localhost/trac

Creating and Initializing Project
Initenv for '/var/tracprojects/YourProject' failed. 
Failed to create environment.
[Errno 2] No such file or directory: '/var/tracprojects/YourProject'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.12-py2.7.egg/trac/admin/console.py", line 413, in do_initenv
    options=options)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.12-py2.7.egg/trac/env.py", line 221, in __init__
    self.create(options)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.12-py2.7.egg/trac/env.py", line 382, in create
    os.mkdir(self.path)
OSError: [Errno 2] No such file or directory: '/var/tracprojects/YourProject'

答案1

/var/tracprojects/YourProject您传递的目录名是吗trac-admin

根据您发布的页面上的说明,您应该在调用之前创建该目录trac-admin(之前的两个命令创建了目录并设置了其权限)。您收到的错误表明您尚未这样做。

相关内容