手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu 12.10下安装 Submin2和svn

[日期:2013-03-31] 来源:Linux社区  作者:jackeyj [字体:大 中 小]

5. 开始配置apache2使用submin2
cd /etc/apache2/conf.d/
ln -s /home/www/conf/apache-webui-cgi.conf apache-submin-cgi.conf
root@Ubuntu:/etc/apache2/conf.d# ln -s /home/www/conf/apache-svn.conf apache-svn.conf
root@ubuntu:/etc/apache2/mods-enabled# ln -s ../mods-available/authz_svn.load authz_svn.load

service apache2 restart

root@ubuntu:/home/svn# submin2-admin /home/www initenv jackey.jiao@infowarelab.com

Please provide a location for the Subversion repositories. For new Subversion
repositories, the default setting is ok. If the path is not absolute, it will
be relative to the submin environment. If you want to use an existing
repository, please provide the full pathname to the Subversion parent
directory (ie. /var/lib/svn).

Path to the repository? [svn]>

Please provide a location for the git repositories. For new git repositories,
the default setting is ok. If the path is not absolute, it will be relative to
the submin environment. If you want to use an existing repository, please
provide the full pathname to the git parent directory (ie. /var/lib/git).

Path to the git repositories? [git]>

Please provide a location for the parent dir of Trac environments. For a new
installation, the default setting is ok. If you don't want to use Trac, the
default setting is also ok. For existing Trac environments, please provide
the full path.

Path to trac environment? [trac]>

Please provide a hostname that can be used to reach the web interface. This
hostname will be used in communication to the user (a link in email, links
in the web interface).

Hostname? [ubuntu]>

The HTTP path tells Submin where the website is located relative to the root.
This is needed for proper working of the website. Submin will be accesible
from /submin, Subversion will be accessible from /svn.
If you use Trac, it will be accessible from /trac.

HTTP base? [/]>
Apache files created:
/home/www/conf/apache-webui-cgi.conf
/home/www/conf/apache-webui-wsgi.conf
/home/www/conf/apache-svn.conf
/home/www/conf/apache-trac-modPython.conf
/home/www/conf/apache-trac-cgi.conf
/home/www/conf/apache-trac-fcgid.conf
/home/www/conf/apache-trac-modwsgi.conf

6. 开始使用submin2
在客户端的浏览器上输入
http://localhost/submin就会出现submin的登录界面,在用户名框输入admin,输入任意密码,提交,系统提示密码错误。
进入邮箱打开邮件链接,进行密码重置。

7. 遇到问题:
问题1:
-----------------------------------------
Please include the relevent files in your apache config. If you have
selected to generate all files (recommended), do not include all files,
but only select one version (e.g. svn and webui-cgi but not webui-wsgi).

Also make sure that you have the appropriate modules installed and enabled.
Depending on your choices, these may include: mod_dav_svn, mod_authz_svn,
mod_authn_dbd, mod_dbd, mod_wsgi, mod_cgi, mod_cgid and mod_python
Traceback (most recent call last):
File "/usr/bin/submin2-admin", line 6, in
success = sa.run()
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/subminadmin.py", line 82, in run
return self.execute(self.argv[2:])
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/subminadmin.py", line 158, in execute
rc = Class.run()
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/c_initenv.py", line 200, in run
self.interactive()
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/c_initenv.py", line 118, in interactive
self.create_env()
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/c_initenv.py", line 178, in create_env
self.sa.execute(['trac', 'init'])
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/subminadmin.py", line 158, in execute
rc = Class.run()
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/c_trac.py", line 96, in run
subcmd(self.argv[1:])
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/c_trac.py", line 39, in subcmd_init
if not trac.exists():
File "/usr/lib/python2.7/dist-packages/submin/subminadmin/trac.py", line 17, in exists
return trac.tracAdminExists()
File "/usr/lib/python2.7/dist-packages/submin/models/trac.py", line 61, in tracAdminExists
if e.errno == e.errno.ENOENT: # could not find executable
AttributeError: 'int' object has no attribute 'ENOENT'

修改/usr/lib/python2.7/dist-packages/submin/models/trac.py文件,将if e.errno == e.errno.ENOENT: # could not find executable修改为if e.errno == os.errno.ENOENT: # could not find executable

错误2:
--------------------------------------------------------
root@ubuntu:/etc/apache2/conf.d# service apache2 restart
Syntax error on line 45 of /etc/apache2/conf.d/apache-svn.conf:
Invalid command 'AuthzSVNAccessFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
通过加载root@ubuntu:/etc/apache2/mods-enabled# ln -s ../mods-available/authz_svn.load authz_svn.load 解决

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

linux
相关资讯       Ubuntu 12.10  Submin  Ubuntu安装svn 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款