Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install subversion in CentOS

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install subversion in CentOS. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. Attempt to restore on the existing subversion 1.4.2:

[root@svnserv] # svnserve-d-r / root/svn

[root@svnserv ~] # svn ls svn://192.168.11.148

Svn: Expected FS format '2percent; found format' 3'

Svn: expect file system (FS) format "2"; found format "3"

This is because the version of subversion to be restored is inconsistent with the subversion currently installed by CentOS, and the version to be restored is newer.

[root@svnserv] # svnserve-- version

Svnserve, version 1.4.2 (r22196)

two。 Try to install subversion 1.6.5 on CentOS

Subversion must be upgraded.

It is found that the stable version of * * is subversion-1.6.5.

If you download the source code to compile, there will be many dependent libraries that also need to be downloaded. So go directly to the rpm installation corresponding to redhat AS 5.

[root@svnserv] # rpm-ivh subversion-1.6.5-1.i386.rpm error: Failed dependencies: libneon.so.27 is needed by subversion-1.6.5-1.i386 neon > = 0.26.1 is needed by subversion-1.6.5-1.i386 sqlite > = 3.4is needed by subversion-1.6.5-1.i386 [root@svnserv ~] # rpm-ivh neon-0.28.4-1.i386.rpm Preparing... # [100%] 1:neon #

You need to install sqlite on CentOS first.

[root@svnserv] # rpm-ivh subversion-1.6.5-1.i386.rpm error: Failed dependencies: sqlite > = 3.4is needed by subversion-1.6.5-1.i386

What about CentOS installing sqlite? Conflict with existing version

[root@svnserv] # rpm-ivh sqlite-3.5.9-2.i386.rpm Preparing... # [100%] file / usr/bin/sqlite3 from install of sqlite-3.5.9-2.i386 conflicts with file from package sqlite-3.3.6-2.i386 file / usr/lib/libsqlite3.so.0.8.6 from install of sqlite-3.5.9-2.i386 conflicts with file from package Sqlite-3.3.6-2.i386 [root@svnserv ~] # rpm-qa | grep sqlite python-sqlite-1.1.7-1.2.1 sqlite-devel-3.3.6-2 sqlite-3.3.6-2

Uninstall? Have dependence

[root@svnserv] # rpm- e sqlite-3.3.6-2 error: Failed dependencies: libsqlite3.so.0 is needed by (installed) php-pdo-5.1.6-23.el5.i386 libsqlite3.so.0 is needed by (installed) sqlite-devel-3.3.6-2.i386 libsqlite3.so.0 is needed by (installed) rpm-4.4.2.3-9.el5.i386 libsqlite3.so.0 is needed by (installed) rpm-libs-4.4. 2.3-9.el5.i386 libsqlite3.so.0 is needed by (installed) apr-util-1.2.7-7.el5.i386 libsqlite3.so.0 is needed by (installed) python-sqlite-1.1.7-1.2.1.i386 libsqlite3.so.0 is needed by (installed) yum-metadata-parser-1.1.2-2.el5.i386 libsqlite3.so.0 is needed by (installed) rpm-build-4.4.2.3-9.el5.i386 libsqlite3 .so.0 is needed by (installed) rpm-devel-4.4.2.3-9.el5.i386 libsqlite3.so.0 is needed by (installed) systemtap-0.7.2-2.el5.i386 sqlite = 3.3.6-2 is needed by (installed) sqlite-devel-3.3.6-2.i386 qlite is needed by (installed) systemtap-0.7.2-2.el5.i386

Feel that sqlite can not be forcibly uninstalled, predecessors have experience, will die very ugly.

What about the upgrade? Have sqlite-devel-3.3.6-2.i386 dependency

[root@svnserv] # rpm-Uvh sqlite-3.5.9-2.i386.rpm error: Failed dependencies: sqlite = 3.3.6-2 is needed by (installed) sqlite-devel-3.3.6-2.i386

What about upgrading sqlite-devel-3.3.6-2.i386 to sqlite-devel-3.5.9-2.i386? It is also said that you need to install sqlite = 3.5.9-2 on CentOS first.

[root@svnserv] # rpm-Uvh sqlite-devel-3.5.9-2.i386.rpm error: Failed dependencies: sqlite = 3.5.9-2 is needed by sqlite-devel-3.5.9-2.i386

This forms a circular dependency. To upgrade sqlite 3. 3 to 3. 5, tell me sqllite devel 3. 3 needs it. To upgrade sqllite devel 3.3, tell me that I must install sqlite first.

Delete sqlite-devel-3.3.6-2? no way

[root@svnserv] # rpm- e sqlite-devel-3.3.6-2 error: Failed dependencies: sqlite-devel is needed by (installed) rpm-devel-4.4.2.3-9.el5.i386

Change CentOS to install subversion 1.5

I can't at the moment, so I'd better install subversion 1.5.

Due to the dependence of 1.65 on the sqlite version, go to the older 1.57 version, which does not require sqlite support.

To download a certified rpm release from http://www.open.collab.net/downloads/subversion.html, you need to register with collab.

Install the server side directly and prompt for dependency errors

[root@svnserv] # rpm-ivh CollabNetSubversion-server-1.5.7-1.i386.rpm warning: CollabNetSubversion-server-1.5.7-1.i386.rpm: Header V3 DSA signature: NOKEY Key ID 35bcca43 error: Failed dependencies: CollabNetSubversion-client > = 1.5.7-1 is needed by CollabNetSubversion-server-1.5.7-1.i386 install 1.5 client [root@svnserv ~] # rpm-ivh CollabNetSubversion-client-1.5.7-1.i386.rpm warning: CollabNetSubversion-client-1.5.7-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 35bcca43 Preparing... # [100%] 1:CollabNetSubversion-cli### install 1.5 server ok [root@svnserv ~] # rpm -ivh CollabNetSubversion-server-1.5.7-1.i386.rpm warning: CollabNetSubversion-server-1.5.7-1.i386.rpm: Header V3 DSA signature: NOKEY Key ID 35bcca43 Preparing... # [100%] 1:CollabNetSubversion-ser### [100%]

Succeed.

However, execute [root@svnserv ~] # svnserve-- version

Svnserve, version 1.4.2 (r22196)

Compiled on Jan 21, 2009, 2009, 20, 14, 15, 11, 12, 00

Still 1.4.2 [root@svnserv ~] # whereis svnserve

Svnserve: / usr/bin/svnserve / opt/CollabNet_Subversion/bin/svnserve / usr/share/man/man8/svnserve.8.gz

Found that the new version has been installed with the / opt directory.

Execute [root@svnserv ~] # / opt/CollabNet_Subversion/bin/svnserve-- version

Svnserve, version 1.5.7 (r36142)

Compiled on Aug 7, 2009, 15, 14, 14, 28, 37

You can copy the svn* of the corresponding bin directory of / opt to / usr/bin, or you can execute it directly.

My version library is placed in the / root/svn directory and is packaged and copied directly from the original machine.

/ opt/CollabNet_Subversion/bin/svnserve-d-r / root/svn

Svnserve.conf and corresponding permissions need to be configured.

Execute svn list svn://localhost/

The corresponding library, all ok, will be displayed. This is to install the new version of subversion on CentOS.

The above is how to install subversion in CentOS. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report