Compile and install SVN1.7 in Ubuntu12.04LTS

Source: Internet
Author: User
Because the svn version on the latest official Ubuntu source is 1.6, And the subclipse plug-in version on eclispe is not suitable for svn version 1.7, especially because of javahl library now eclipse use very bug, now you can use other people to package their own svn1.7 to try, refer to: http://steveliles.github.com/subversion_1_7_eclipse_integration_ I

Due to the latest UBuntuOn the official sourceSvnVersion is1.6, AndEclispeThe aboveSubclipsePlug-in version pairSvnVersion requirements:1.7There is something inappropriate, especiallyJavahlLibrary causes the currentEclipseEasy to useBug, You can now use other people to package their ownSvn1.7For more information, see:Http://steveliles.github.com/subversion_1_7_eclipse_integration_in_Ubuntu.html

  1. Adddominik's repository: sudo apt-add-repositoryppa:dominik-stadler/subversion-1.7

  2. Updateapt: sudo apt-get update

  3. Installlibsvn-java: sudo apt-get install libsvn-java

  4. Installsubversion 1.7: sudo apt-get install subversion


Pay attention to self-CompilationSvnThe code must be run at the endSudoldconfig

Code compilation process (seeINSTALLDocument, and then take this as a reference ):

  1. Make distcleanClear all previously generated files, includingMakefile

  2. Ls-l/usr/local/lib/libsvn *ViewLibAboutSvnIt is best to compile and install the relevant database at a unified time. Otherwise, do not run the next step to delete the database.

  3. Sudo rm/usr/local/lib/libsvn *DeleteSvnRelated library files

  4. ./Autogen. shRe-check the configuration and generate a newConfigure

  5. ./Configure -- enable-maintainer-mode-enable-javahlProceedMakeIn the previous Environment check, check whether the required library dependencies are complete. If not, please firstApt-cachesearchThenApt-getinstallCorresponding library file ,-Enable-javahlThis is for compilationJavahlPrepare related library Dependencies

  6. Make-j2 external-allI don't know what to do. (test has no output. Please perform some simple tests)

The official documents are described as follows:

Notethat if you commonly build with the-jN option to make and

Haveused the get-deps.sh script to fetch dependencies, the make

Stepabove may fail, because we don't ensure that third party

Librariesin our source tree will finish building before

Subversionitself. If you want to use-jN, use the following

Instead:

$./Configure


$ Make-jN external-all

$ Make-jN local-all

$ Make check

# Make install

  1. Make-j2 local-allCompile code

  2. Make checkI don't think it is very slow to perform the compiled test check.

  3. Make check-cleanDelete the intermediate file for code check.Ctrl-CCancel the deletion, so run the delete operation)

  4. Make javahlCompileJavahlLibrary file (this is very important becauseSubclipseFor how it depends), see


  1. Sudo make install-docs install-javahl install-man install-staticInstall compiled files and help documents to the System

  2. Sudo ldconfig-vIt is important to connect the compiled library files. OtherwiseEclispePromptJavahlThe library is missing, but the file actually exists in the corresponding path, which is not clear. I only re-compile and install it once. It hurts !!! My output is as follows (list part)

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.