Archive for September 9th, 2007

ViewVC的安装

步骤如下: 

  • 下载ViewVC,并解压到:C:\viewvc-1.0.4
  • 下载 Python-2.3.5.exe 并安装
  • 下载 pywin32-210.win32-py2.3.exe 并安装
  • 下载 svn-python-1.4.4.win32-py2.3.exe 并安装
  • 在ViewVC的目录下执行 python viewvc-install,会提示:

C:viewvc-1.0.4>python viewvc-install This is the ViewVC 1.0.4 installer. It will allow you to choose the install path for ViewVC. You will now be asked some installation questions. Defaults are given in square bra Just hit [Enter] if a default is okay. Installation path [C:Program Filesviewvc-1.0.4]: C:viewvc-1.0.4 DESTDIR path (generally only used by package maintainers) []:

  • 打开viewvc.conf,修改如下:
    将cvs_roots = cvs: /home/cvsroot注释掉,改为:svn_roots = svn: c:\Repo\oa(这里的oa是我先前建立的Repository),再将 default_root = cvs注释掉.
  • 注意:svn_path最好也要填写,比如:svn_path = C:/Subversion/bin,否则annotate的时候会出错

在apache的httpd.conf加入:

ScriptAlias /codeview/ “C:/viewvc-1.0.4/bin/cgi/” <Directory “C:/viewvc-1.0.4/bin/cgi/”> AllowOverride None Options None Order allow,deny Allow from all </Directory>


加入diff支持

DiffUtils, enscript, libintl, libiconv, sed将他们分别解压,然后保存在 C:/ViewVCUtil下,并将 C:/ViewVCUtil 加入到 %PATH% 中

  • 打开viewvc.conf,将use_enscript = 0改成1,重新启动standalone.py(如果是以apache+DAV的方式运行,则不需要执行standalone.py)
  • 如果遇到

error: (2, ‘CreateProcess’, ‘The system cannot find the file specified.’)

的错误,请检查,C:/ViewVCUtil是否在%PATH%中,如果还是不行,请把C:/ViewVCUtil下的文件copy到C:/Windows/System32下,也可以。

Switch to our mobile site