Install VIEWVC for Subversion under Windows 2003+IIS6

Source: Internet
Author: User
Tags svn

A few days ago curious, also just got a bit of free, and then want to see VIEWVC to Subversion support degree, so want to pretend to play. Good to die, on my VMware workstation just have a Windows Server 2003, I thought, it, but so a lazy, toss me for a few days, eventually can only be counted on it to put on.

Installation environment: Windows Server 2003, IIS 6, suberversion 1.3.0, VIEWVC 1.0-dev

Installation steps:first, the installation of Subversion, following the introduction of Mere-moments Guide to installing a Subversion server on Windows nature should be easy to fix installation and simple configuration, then add a few files to the warehouse, and then do a little update, In order to see something from the VIEWVC;Second, install VIEWVC1. Now that you've installed subversion, apply it, and check out the latest version directly from http://viewvc.tigris.org/svn/viewvc/trunk/, or to http://www.viewvc.org/ nightly/download a packaged version; 2. If you have the habit of reading the readme, congratulations, basically complete the basic installation configuration is no problem; Of course, you must read the entire requirements section and then decide what version of the download to install Python, unfortunately, Subervsion now offers a python package (Python bindings) that only supports Pythong 2.3, so if you download the Python 2.4 First, you'll have to download the installation again: Subversion python bindings:http://subversion.tigris.org/servlets/projectdocumentlist?folderid=91 Python 2.3:http://www.python.org/ Ftp/python/2.3.5/python-2.3.5.exe pywin32:http://prdownloads.sourceforge.net/pywin32/ Pywin32-208.win32-py2.2.exe?download 3. After you install these, add the Python installation directory to the system path; 4. Executed in the VIEWVC directory just downloaded: Python viewvc-install, after the first hint, specify the VIEWVC installation directory, and the second prompt to enter directly on the line.Three, VIEWVC basic configuration     as a result of VIEWVC service program, so it is best to start the VIEWVC service program, if viewvc their normal operation, then do not have to consider the VIEWVC configuration problem, I did not take full advantage of this, And in between IIS and VIEWVC repeatedly modify parameters, do not know how to die. 1. VIEWVC The simplest configuration     open viewvc.conf, modify the following lines:     will cvs_roots = CVS:/home/cvsroot comment out;  & nbsp;   #svn_roots = svn:/home/svnrepos is changed to resemble svn_roots = Mytest:c:/svn_repos/mytest, where mytest is the name of the warehouse you specify, The colon is followed by the path where the warehouse is located;     default_root = CVS comment out so that you can at least see the warehouse list. 2. Double-click the Viewvc/bin under the standalone.py, you can start VIEWVC Web services, and then in IE input HTTP://LOCALHOST:7467/VIEWVC should be able to see the warehouse list, to this step, I did not encounter any obstacles, so there is nothing to suggest; 3. Click on any of the warehouses, you should be able to see the catalog or file in the warehouse, but if you see the following tips in IE:     importerror:no module named svn  That means you didn't install the Subversion Python package or put it in the Subversion directory;      ' module ' object has no attribute ' Subversionrepository ' That means you copied the Python bundle of subversion to the vclib of VIEWVC and covered viewvc own files; So, how do you install this package, OK, Copy it to VIEWVC or Python's lib directory, alas, this also cost me a lot of trouble, ashamed, who called me a Python blind: (Iv. installing diff and Enscript ToolsIt's a lot better than Subversion's own web interface, and, of course, we should dig out the other two basic features of VIEWVC: comparison and syntax highlighting, which makes it seem professional. 1. Download the following tools to Http://gnuwin32.sourceforge.net: Diffutils, Enscript, libintl, Libiconv, SED installs all of its brain, adding its bin directory to the system path; 2. Open viewvc.conf, change use_enscript = 0 to 1, restart standalone.py 3. Then you can compare the difference of any two versions; 4. However, when you are browsing a file, you will see a hint, said: Libintl-2.dll or Libiconv-2.dll and so on to find, Ah, first in the VIEWVC with the Web services run is how wise ah, if you directly in IIS debugging, you can not see this hint, this is my N-day Price: (; 5. Why does this happen, not installing all the gnuwin32 packages mentioned in the Readme? However, you are not the same as me under the latest version of it. Remember the Enscript version? This is an antique, 2003 launched, and the other is basically 05, 06, incompatible AH. Security, of course, is installed with the Enscript with the era of the bag, of course, I will gnuwin32/ Bin directory under the Libiconv2.dll and Libintl3.dll directly copied a copy, renamed into Libintl-2.dll and Libiconv-2.dll unexpectedly also OK, it seems, foreigners are only in the file name is not backward compatible, function name or basically consistent, so dynamic Link has dynamic link of the benefits, and static links is also a tricky way ah; in line with the installation of the VIEWVC and the corresponding tools, stop thinking about VIEWVC installation configuration issues, and VIEWVC's readme can also be turned off. The next step is to configure the on IIS.Five, IIS6 settings1. Create a virtual directory VIEWVC, directly point to viewvc/bin/cgi on it, in the virtual directory access to the steps to check the execution permissions, as shown below; 2. Right-click on the virtual directory you just created, select Properties, click the Configure button, click Add in the Application Configuration dialog box, and fill in the contents below; 3. Switch to the document page and set viewvc.cgi as the default content document. Under Windows 2000, it's OK to be here, but under 2003, there are two steps to take. 4. Click on the Web service extension, theoretically add a new Web service extension, and then only allow the service, but I did not get out, so directly allow all unknown CGI, which is what I started to say will be used for. Here, basically can run VIEWVC, but do comparison and syntax highlighting is problematic, if you want to try, but alsoRestart the machine first ., this is also let me spend the cost of N days place, if you really press VIEWVC in the troubleshooting of the suggestion left to change the right, it is estimated that the end is not at all. Of course, at the end of its troubleshooting there is a table, which mentions that if you modify the system variables, you need to reboot the machine, I was restarted to realize this: (; 5.   Create a new application pool by default, right-click on the new application pool, select Properties, select Identity, select the local system in the predefined account, then modify the properties of the VIEWVC virtual directory, change the application pool to the application pool you just created, and restart the machine. Here, the basic completion of VIEWVC in IIS6 installation, which bitterness self-knowledge ah.six, insufficient 1. VIEWVC for subversion does not provide a graphical version tree function similar to cvsgraph; 2. If the submitted log in Chinese, will display garbled, need to manually set the browser code, or modify the VIEWVC template Templates/include/header.ezt, next to the

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.