RHEL5 SVN Client installation and use

Source: Internet
Author: User
Tags svn client
1. install and configure yum

L download the yum software package.

L create a Tools Folder under the redhatroot directory, decompress yum.tar.gz, and copy it to this directory.

L open the command line and run sh/tools/yum/yum_stat.sh.

L installation is complete.

Note: before using the yum command to install or update the software, make sure that the Red Hat Liunx has completed network configuration and is connected to the Internet properly.

2. Install EPEL

Slave address.

3. Install RPMForge

Download and install rpmforgefrom http://wiki.centos.org/additionalresources/repositories/rpmforge.

4. Install RabbitVCS

For more information about how to install RabbitVCS, see http://wiki.rabbitvcs.org/wiki/install/rhelcentos5. Note that the default version of python2.4 does not contain the hashlib component. You need to manually install hashlib.

L install the dependent package

Open the command line and execute:

Yum install pygtk2 subversion-devel gcc-c ++ neon-devel python-devel pygtk2-devel eel2 eel2-devel python-configobj nautilus-devel meld libX11-devel

L install nautilus-python

The installation is completed by running the command 'make; make install' from the address.

L install pysvn

Download the latest software package from http://pysvn.barrys-emacs.org/and execute the following command:

Cd Source

Python setup. py backport

Python setup. py configure

Make

Mkdir/usr/lib/python2.4/site-packages/pysvn

Cp pysvn/_ init _. py/usr/lib/python2.4/site-packages/pysvn

Cp pysvn/_ pysvn_2_4.so/usr/lib/python2.4/site-packages/pysvn

L install hashlib

Http://code.krypto.org/python/hashlib/hashlib-20081119.tar.gz FROM address? Attredirects = 0 download and decompress the package, and then execute the./configure; make install command to complete the installation.

L install rabbitvcs

1. download the latest software package from https://code.google.com/p/rabbitvcs/downloads/listand execute the following command:

Sudo python setup. py install

Gtk-update-icon-cache-f/usr/share/icons/hicolor

2. Copy the rabbitvcs. py file under the RabbitVCS/client/nautilusold directory to the/usr/lib/nautilus/extensions-1.0/python directory.

3. Restart the Red Hat system.

After the restart is complete. Enter any directory in the file system, right-click the single machine, and add a Checkout option in the right-click menu. Indicates that RabbitVCS is successfully installed.


Note: After the installation is successful, the test shows that the right-click menu function of RabbitVCS can be displayed normally on RHEL5, but the corresponding SVN interface cannot be displayed normally when you click it. Check the. xsession-errors file and find the following error:

File "/usr/lib/python2.4/site-packages/rabbitvcs/ui/action. py", line 640

Finally:

SyntaxError: invalid syntax

The cause of the error may be related to the python version. The default python version of RHEL5 is 2.4. After the version is changed to python2.7, the error becomes ImportError: No module named pygtk, prompting python to lack the pygtk component, however, installing pygtk requires a lot of dependencies. The last question is stuck on installing gobject-introspection. *** target pattern contains no '%' will appear during make '. stop.

Because rabbitvcs cannot perform normal svn operations after installation, other SVN clients are required. However, it still has a function, but it can be used, that is, the file changes in the version library can be clearly displayed like TortosieSVN in the Window. When the file is changed, the file response icon turns red. Therefore, rabbitvcs and other SVN such as (esvn, rapidsvn) are used together in a compromise. Select eSvn.

L install eSvn

Open the command line and execute:

Yum install esvn

Wait until the installation is complete.

5. Use

After the installation is successful, open the eSvn interface in the system menu Applications> Programming directory.

L check code (Checkout ):

Click File> checkout in the eSvn menu bar. Enter the SVN server address, the location to be checked out, the svn account and password, and click OK to start code check-out, as shown in:

Note: if "The Certificate is not issued by a trust..." Certificate is untrusted after checkout is executed. This is because the local server certificate is not trusted. Run svn info svn_server_address in the command line and enter p (permanently always trust.

L check whether the file is changed

After the file is checked out to the specified directory, it enters the directory. A green icon is displayed on the icons of all files. When the file content is changed, the icon on it turns red, as shown in:

L update and submit code

Right-click the directory or file to be submitted and updated, and select commit or update ). As shown in:

References: http://blog.chinaunix.net/uid-24727220-id-176948.html

Http://wiki.rabbitvcs.org/wiki/install/rhelcentos5

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.