Kubuntu/ubuntu 14.04 (downgrade) install SVN 1.7&&ubuntu14.10 Install Subversion1 version

Source: Internet
Author: User
Tags bz2 svn xml parser

Reference:

https://archive.apache.org/dist/subversion/

Http://www.2cto.com/os/201501/369067.html

Http://www.68idc.cn/help/server/linux/20141227150488.html

Ubuntu14.10 Installing the Subversion version

A default installation of Subversion 1.8 was found after installing the ubuntu-14.10 version. And the 1.8 version is not compatible with the 1.6 version currently used on XP, online search for the use of the 1.8 version of the people are not many, in order to avoid the development of the cost of the environment switch, and temporarily do not want to upgrade XP to 1.8. That only installs on Ubuntu 1.6.


1. Download subversion-1.6.17.tar.gz
http://download.csdn.net/detail/sunwill_chen/8354589


2. Download subversion-deps-1.6.17.tar.bz2
http://download.csdn.net/detail/sunwill_chen/8354593


3. #apt-get install gcc make Libssl-dev Libexpat1-dev


4. #tar XVF subversion-1.6.17.tar.gz


5. #tar XVF subversion-deps-1.6.17.tar.bz2


6. #cd subversion-1.6.17


7.#./configure


8. #make && Make Install


9. #ln-S/usr/lib/i386-linux-gnu/libexpat.so/usr/lib/i386-linux-gnu/libexpat.so.0


10. View the SVN version number:
# SVN--version
SVN, version 1.6.17 (r1128011)
Compiled Jan 12 2015, 20:05:45


questions:
1.configure:error:no XML Parser was found:expat or libxml 2.x required

Solution: Apt-get Install Libxml2-dev
(Note: This can not need to install, after the installation of Libexpat1-dev to really play a role)


2.make Last error occurred:

/home/tools/subversion-1.6.17/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so:undefined reference to ' Xmlfreeparserctxt '
/home/tools/subversion-1.6.17/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so:undefined reference to ' Xmlparsechunk '
/home/tools/subversion-1.6.17/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so:undefined reference to ' Xmlcreatepushparserctxt '
Collect2:error:ld returned 1 exit status
Resolution: The analysis code found no expat to have this problem, because the installation of expat,
#apt-get Install Libexpat1-dev


3. Run the SVN Discovery Library link error,
Svn:error while loading shared libraries:libexpat.so.0:cannot open Shared object file:no such file or directory
Solution: Use dpkg-l Libexpat1-dev installed in which directory, a look without this file, do a soft link can.
#ln-S/usr/lib/i386-linux-gnu/libexpat.so/usr/lib/i386-linux-gnu/libexpat.so.0


Kubuntu/ubuntu 14.04 (downgrade) Install SVN 1.7

Step 1: Add Source to Source.list

sudo add-apt-repository "Deb Http://extras.ubuntu.com/ubuntu saucy main"

sudo add-apt-repository "Deb Http://de.archive.ubuntu.com/ubuntu/saucy main universe restricted multiverse"


Step 2: Remove the SVN 1.8 package

sudo apt-get remove Subversion libsvn1


Step 3: Update source

sudo apt-get update


Step 4: Install SVN 1.7

sudo apt-get install subversion=1.7.9-1+nmu6ubuntu3 libsvn1=1.7.9-1+nmu6ubuntu3 subversion-tools=1.7.9-1+ Nmu6ubuntu3


Step 5: Lock SVN to 1.7 to prevent automatic upgrades

echo Subversion Hold | sudo dpkg--set-selections

echo Libsvn1 Hold | sudo dpkg--set-selections

echo Libserf1 Hold | sudo dpkg--set-selections


Step 6: Remove the Step 1 added line from the source sources.list

sudo gedit/etc/apt/sources.list

Removal: Deb Http://extras.ubuntu.com/ubuntu saucy main

Removal: Deb Http://de.archive.ubuntu.com/ubuntu/saucy main Universe restricted multiverse


Step 7: Update source

sudo apt-get update


Step 8: View SVN version

SVN--version

~$ SVN--version
SVN, version 1.7.9 (r1462340)
Compiled in OCT 15 2013,12:40:34

Copyright (C) the Apache software Foundation.
This software consists of contributions made by many people; See the NOTICE
File for more information.
Subversion is open source software, see http://subversion.apache.org/

You can access the module using the following repository:

* Ra_neon: A module that uses neon to access the repository through the WebDAV protocol.
-Handling HTTP Scenarios
-handling the "https" scheme
* RA_SVN: The module that accesses the repository using the SVN network protocol.  -Use Cyrus SASL authentication
-Process "SVN" scheme
* ra_local: Access repository module for local disk.
-Process the "file" scheme
* Ra_serf: Access the repository's modules using serf through the WebDAV protocol.
-handling "http" Scenarios
-handling "https" scenarios

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.