How to install SVN in linux

Hi ,

I am planing to install SVN in centos please help me in installing SVN in centos,

1.Need Step by step instructions.

srujanmiryalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

farzanjCommented:
0
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Hi

The installation will vary depending on your type of linux.

Run the following as the root user

If you have ubuntu or Debian:
apt-get install subversion

If you have Redhat, Fedora core or Suse:
yum -y install subversion

Then follow the link above to configure it.
0
farzanjCommented:
For CentOS it is:
yum -y install subversion

Open in new window

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

srujanmiryalaAuthor Commented:
can i have step by step guide
0
farzanjCommented:
The above guide was step by step

Or you can use this one
http://wiki.centos.org/HowTos/Subversion
0
farzanjCommented:
So where are you?

Could you install?

Do you have subversion?

yum list installed | egrep "svn|subversion"

or

rpm -qa | egrep "svn|subversion"
0
farzanjCommented:
Show me the output and I will tell you the next steps
0
srujanmiryalaAuthor Commented:
dev01[root@dev01 ~]# yum list installed | egrep "svn|subversion"
mod_dav_svn.x86_64                        1.4.2-4.el5_3.1              installed
subversion.i386                           1.4.2-4.el5_3.1              installed
subversion.x86_64                         1.4.2-4.el5_3.1              installed
0
farzanjCommented:
Good, you are on the track

Just want to check if you already have svnadmin
Issue this command as root

svnadmin

This command would not run but if you have it, it should show you options.  If you don't, then it would say unrecognized.
If you don't have it then proceed with the following

Now please issue this command
rpm -ivh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum upgrade subversion

Open in new window


Now issue the following command
svn --version

Feel free to explore these references, and let me know how far you get.



REFERENCES:
http://wiki.centos.org/HowTos/Subversion
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/
http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/ 
http://www.electrictoolbox.com/install-subversion-centos/
0
srujanmiryalaAuthor Commented:
http://www.electrictoolbox.com/install-subversion-centos/


i followed this link and installed but i am not able to connect through eclipse from my client windows machine.
0
srujanmiryalaAuthor Commented:
i am getting error

'bash: svn://svn@lysplinux/myproject : no such file or directory it showing'
0
farzanjCommented:
What command returned this answer.  Did you want to type this in a browser?

I don't know where you got it because I didn't tell you any command that would return this kind of error, or did I?
0
farzanjCommented:
Ok.  Just follow the steps I tell you now.

Can you do

svn --version

What does it return
0
srujanmiryalaAuthor Commented:
svn, version 1.4.2 (r22196)
   compiled Aug 10 2009, 17:54:46

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
0
farzanjCommented:
It looks like you are pretty much good to go.  Just few more steps.  Do you want it command line?  That should not be hard.  Just follow the remaining steps in
http://www.electrictoolbox.com/install-subversion-centos/

Look at this tutorial
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/

So, it tells you that you have installed it right.

If you, however, want to setup http (apache) with it, it would be a lot more steps.
0
srujanmiryalaAuthor Commented:
I followd the same step please its an urgent task so please help me

http://www.electrictoolbox.com/install-subversion-centos/
0
farzanjCommented:
Where are you getting stuck?  Please tell me the error messages.  I thought you were done.
0
farzanjCommented:
Could you do this?
svnadmin create myproject
0
srujanmiryalaAuthor Commented:
i created my project also

In this area i am strucked and please help me how to use this eclipse

And finally, as the svn user, start the subversion daemon like so:

svnserve -d -r /home/svn/repositories

You can now connect to the subversion repository at e.g. svn://svn@hostname/myproject

You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname]/[project name]
0
farzanjCommented:
Ok.

Did you create a directory called repositories?

Did you cd into this directory?

After cd, you did svnadmin create myproject, right?

Then did you edit the file myproject/conf/svnserve.conf ?

In this file you need uncomment the lines,
auth-access = write
password-db = passwd

Show me this file.

Then you need to allow user access.
Edit file
myproject/conf/passwd


It should be like
[users]
srujanmiryala = password
0
farzanjCommented:
Then you need to start it


svnserve -d -r /home/svn/repositories
0
srujanmiryalaAuthor Commented:
I followed same step

[svn@lysplinux conf]$ more passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
svnadmin = admin123




************************
myproject/conf/svnserve.conf

[svn@lysplinux conf]$ cd svnserve.conf
bash: cd: svnserve.conf: Not a directory
[svn@lysplinux conf]$ more svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
# anon-access = read
 auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
 password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the conf
### directory.  If you don't specify an authz-db, no path-based access
### control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository
[svn@lysplinux conf]$
0
srujanmiryalaAuthor Commented:
Please help me in this issue.
0
farzanjCommented:
This looks good.  What is the issue?
0
srujanmiryalaAuthor Commented:
i am not able to connect from windows machine where i installed eclipse
0
farzanjCommented:
Are you trying using web browser?

Could you do without a web browser in Linux?
0
srujanmiryalaAuthor Commented:
i want to connect through eclipse where we are having svn plugin
0
farzanjCommented:
0
farzanjCommented:
Ok.  Found the subclipse

http://subclipse.tigris.org/download.html
0
farzanjCommented:
I am trying to figure out whether you would need Apache to setup your Eclipse

Please see here
http://subclipse.tigris.org/wiki/PluginFAQ#head-68b22e8153d602f6065567d5d781ee4473bcdd50

Try to follow instructions that I gave you but please DO let me know where you are.  Will work together
0
farzanjCommented:
Ok, I found what I was looking for

You can do it though SSH as I hoped.

http://svnkit.com/kb/config-settings.html
These instructions are not hard.  Just follow them
0
srujanmiryalaAuthor Commented:
i am strucked in this are pls can u help me. after finishing this i need to do import and export of project.


You need to edit "myproject/conf/svnserve.conf" and uncomment the following lines:

auth-access = write
password-db = passwd

and edit the password file "myproject/conf/passwd" adding a new user and password. Note that the password is stored in plain text. In the following example we have a user called "john" whose password is "foobar123":

[users]
john = foobar123

And finally, as the svn user, start the subversion daemon like so:

svnserve -d -r /home/svn/repositories

You can now connect to the subversion repository at e.g. svn://svn@hostname/myproject

You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname]/[project name]
0
srujanmiryalaAuthor Commented:
i am getting this error when i am accessing svn from eclipse
svn.bmp
0
farzanjCommented:
Your server doesn't appear to be running.

On the server issue the command

netstat -antpu | grep 'svn'
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
srujanmiryalaAuthor Commented:
Any solutions
0
farzanjCommented:
Your server is not running.  It may mean that some steps were missed.  To determine that, I had given you a command.  Could you show me its output?
0
farzanjCommented:
If this is still an unresolved issue, please let me know and I would spare time for you this weekend.  If you have been able to resolve it, I would like to know how.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.