Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

C:>net start svnserver System error 2 has occurred.

The system cannot find the file specified.

I tried following this tutorial http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html

share|improve this question

migrated from stackoverflow.com Apr 10 '10 at 7:18

This question came from our site for professional and enthusiast programmers.

    
A file was not found. Most likely the configuration string containing the location of your repositories is wrong. There should be an error log for more information I think (not sure). –  Pekka 웃 Apr 9 '10 at 14:05

4 Answers 4

Did you perform the preceding step in the tutorial?

sc create svnserver binpath= "c:\svn\bin\svnserve.exe --service -r c:\svn\repository" 
displayname= "Subversion" depend= Tcpip start= auto

Did it work? Is the path correct?Does the service appear in the list of services in the Windows control panel services app?

share|improve this answer

I would suggest that you go with Visual SVN. It is a commercial product based on svn. However,they have a free version.

The free version installs with a simple click of a button (with an msi package) and creating a repository is as simple.

It is great as it provides a visual interface for doing all things SVN: creating repositories, creating users, enabling integration with AD servers, moving repositories,...

I find that I use the administration functions of SVN so rarely that I always go back and have to find the commands and syntax. With visual SVN, all you have to do is find the correct command in the menus.

share|improve this answer

The sc command is "tricky". Note that there cannot be spaces before any of the equals, and there must be a space immediately after each equals. Additionally, the value for binpath must be in quotation marks (the so-called "double quotes").

Also make certain to double check the correct path for the svnserve program. Depending on what version of Windows you're running, and which Subversion package you downloaded, the executables might be in "Program Files (x86)" instead of "Program Files".

share|improve this answer

Rathern than "c:\svn\bin\svnserve.exe", go to where you installed Subversion and look at the address for svnserve.exe

I installed Subversion in my Program Files (x86) folder and set up my repository in c:\svn\repository. So i entered the following command and it worked.

sc create svnserver binpath= "c:\Program Files (x86)\WANdisco\Subversion\svnserve.exe --service -r c:\svn\repository" displayname= "Subversion" depend= Tcpip start= auto

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.