ViewVC installation and Configuration Guide (Linux)

Source: Internet
Author: User

Note: svn based on the Linux platform has the diff function, but the diff function on the Character interface is too readable, so I 'd like to upgrade the diff function to build bugfreeforsvn, we recommend that you use ViewVC. This software should be a good choice. OK. You don't have to think so much. let's go ......

 

How?

1. because it needs to be integrated with svn, the previously established SVN needs to be re-compiled and installed.

2. viewvc is written in python. To support python, svn and python must be integrated.

3. Install swig to connect Python with c/c ++. For more information, see :.

 

Preparation:

  • Python-2.7.6.tgz

  •  

    Swig-1.3.24.tar.gz

  • Viewvc-1.1.21.tar.gz

  • Subversion-1.6.18.tar.gz

  • Subversion-deps-1.6.18.tar.gz

  • Operating System: RHEL x86_64 AS 4.6

 

The following two software versions are described separately: The two software versions are very important, because the operating system version is too old to be 4.6, and other software such as swig and python cannot use the latest version, after testing, you must use a version within a certain period of time to achieve perfect integration. The same applies to the following two software.

  • Neon-0.29.6.tar.gz serf-0.3.0.tar.bz2

 

1. Build SVN

See my previous blog.

 

2. recompile and install SVN

1. Back up the/usr/local/subversion folder.

mv /usr/local/subversion /usr/local/subversion .bak

2. Install python
Because viewVC is written in python, and the system comes with a low version, this version is installed.
Tar xvzf Python-2.7.6.tgz
Cd Python-2.7.6
./Configure -- prefix =/usr/local/python2
Make & make install

3. Install swig

Tar xzvf swig-1.3.24.tar.gz
Cd SWIG-1.3.24
./Configure -- prefix =/usr/local/swig \
-- With-python =/usr/local/python2/bin/python
Make & make install

4. Install svn
Tar xzvf subversion-1.6.18.tar.gz
Tar xzvf subversion-deps-1.6.18.tar.gz
Tar xzvf neon-0.29.6.tar.gz
Tar xzvf serf-0.3.0.tar.bz2
Cd subversion-1.6.18
Rm-rf apr-util neon serf
Cp-ar ../neon-0.29.6 neon
Cp-ar ../serf-0.3.0 serf
Chown-R 1000: users neon serf
./Configure \
-- Prefix =/usr/local/subversion \
-- With-apxs =/usr/local/apache2/bin/apxs \
-- With-ssl \
-- With-apr =/usr/local/apr \
-- With-apr-util =/usr/local/apr-util \
-- With-zlib =/usr/lib64 \
-- With-swig =/usr/local/swig/bin/swig \
-- Enable-shared \
-- Enable-static \
PYTHON =/usr/local/python2/bin/python
Make & make install

5. Configure SVN

See my previous blog posts.
6. Bind subversion
1234 cd subversion-1.6.18
Make swig-py
Make check-swig-py # There is a trac error, ignore it
Make install-swig-py

7. Add the python binding installation path of svn to the path of Python.
Because the source code is installed, the python-binging of svn is not in the default search path of python. The default path is/usr/local/lib/svn-python/. You need to modify it as follows:

Cd/usr/local/python2/lib/python2.7/site-packages
Echo/usr/local/subversion/lib/svn-python> subversion. pth
Echo/usr/local/subversion/lib>/etc/ld. so. conf
Ldconfig

8. Test the svn module.
First, modify the path of the python executable file. This is because the built-in python file is not deleted. If no modification is made, viewvc uses the built-in system by default when calling python. If you are not too troublesome, Please modify all the script files under the viewvc-1.1.21 installation directory, their path is #! Start with/usr/bin/python.

Cd/usr/bin
Mv python. bak
Ln-s/usr/local/python2/bin/python

Run the following command to test:
# Python
Python 2.7.6 (default, Nov 29 2013, 11:32:29)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> Import svn. core

If there is no prompt, it means OK.

Recommended reading:

Subversion configuration instances in Linux

CentOS 6.2 SVN setup (YUM installation)

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

Build SVN server with online storage

  • 1
  • 2
  • Next Page

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.