How to install Subversion?

Discussion in 'Linux VPS/Dedicated - cPanel' started by reekoh, Nov 9, 2007.

  1. reekoh

    reekoh New Member

    Hi,

    I'm wondering what the best way to install SVN on my cpanel VSP is. I tried doing it through the web GUI through the "RPM Package Installer" feature. It said it completed, but then I still don't seem to have svn installed after that.

    I then also tried through YUM, but then I got a dependency error:
    "Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion"

    I've found some links on google about where to get rpms to manually install Perl-URI but this is my first time w/ Cpanel and I'd rather not mess around with things manually if it might mess up Cpanel in some way.

    Thanks,
    Rico
     
  2. khiltd

    khiltd New Member

    How are you determining that the installation was unsuccessful?
     
  3. reekoh

    reekoh New Member

    I determine that by not being able to run svn and not finding svn in any of my $PATH directories.

    I ended up submitting a support ticket and they installed it for me. Looks like they installed it manually (they left the source files lying around).
     
  4. khiltd

    khiltd New Member

    That does not necessarily mean that it was not installed; it could simply mean that you need to append your search paths to include a new location.
     
  5. pservers

    pservers New Member

  6. WildFoxMedia

    WildFoxMedia New Member

    I hate to bring up on old thread but I have a couple questions as well....

    I followed the tutorial about doing yum install mod_dav_svn subversion, it installed both after I was forced to grab an rpm of perl-URI.

    Once I did that and got subversion and mod_dav_svn installed I tried editing the subversion.conf - For some reason it wasnt loading that file that I saw so I put the LoadModule directives for mod_dav_svn and authz into the /usr/local/apache/conf/httpd.conf and upon doing httpd -t it said it couldnt find the actual module file mod_dav_svn.so

    Now, call me dumb, but is there something im missing here? It seems to be a bit more complicated then doing then 5 or 6 things listed in the howtoforge tutorial.

    Also, it appears that Apache was compiled without dav support, I know nothing abotu compiling, but whats the easiest way to recompile Apache with dav support?
     
  7. khiltd

    khiltd New Member

    Well the first thing I'd do is look and see if the .so files were actually there or not.

    You can recompile Apache through WHM.
     
  8. WildFoxMedia

    WildFoxMedia New Member

    I tried following various tutorials and every one of them said to do 'yum install mod_dav_svn' however doing that never actually drops the .so file anywhere that I can find, I tried looking in /usr/local/apache/modules and /etc/httpd/modules and I dont see either of the .so's there at all.

    Is there something im missing with doing that yum install?

    I recompiled Apache using easyapache to add dav support from the extended list of options.
     
  9. khiltd

    khiltd New Member

    I don't use yum or svn so I don't know what the installation process is like for either, but it certainly could have failed if you weren't logged in as root and didn't preface the command in that tutorial with a sudo.
     
  10. WildFoxMedia

    WildFoxMedia New Member

    I was logged in as root, and yum said it had installed successfully - I would certainly be willing to compile it if I really knew how.
     
  11. khiltd

    khiltd New Member

    What do you need Subversion for exactly if you aren't a developer?

    99% of all linux software can be built with

    ./configure
    make
    make install

    Their dependencies are another matter entirely. Detailed instructions are here:

    http://svn.collab.net/repos/svn/trunk/INSTALL

    or you can always just download the RedHat binaries and skip all of this.
     
  12. WildFoxMedia

    WildFoxMedia New Member

    I am a developer, I build PHP/MySQL Web Apps...

    RH Binaries will work on CentOS?
     
  13. Dan

    Dan Moderator

    So you're going to run your own SVN server? Cool, let us check it out when you get it done :D

    And by the way, there is a section in that document about compiling for a server which I do believe pertains to precisely what you're speaking about.
     
  14. khiltd

    khiltd New Member

    And if you're not married to the CVS dinosaur, there's also Git, Mercurial and Bazaar--all of which build in seconds with few dependencies. I've found that Git and Bazaar in particular require nothing that isn't already on the server.
     
  15. WildFoxMedia

    WildFoxMedia New Member

    Im certainly not married to SVN, its just what I use at my 9-5 so im familiar with it.

    Im just looking for a real basic way to keep track of my files and be able to check them in and out without having to use FTP.
     
  16. khiltd

    khiltd New Member

    Subversion will certainly work for that, but there's something of an exodus underway as more and more people start to realize that the convoluted CVS model of version control wastes a lot of disk space and makes a lot of things more complicated than they really need to be. Bazaar has a Subversion plugin and Git also has tools to ease the transition for people who have existing repositories, but if you're starting out fresh you won't need to bother.
     

Share This Page