Monday, May 4, 2009

Installation of SVN

Main >> SVN >> Installation of SVN


Installing SVN on windows is quite strainght forward. I found VisualSVN quite interesting on Windows as it will complicate your life much. VisualSVN will help you certainly in managing repository on Windows box very easily. But the most scaring part is configuring the SVN server on AIX box.


Installing SVN client on AIX box (SVN 1.4.5)

If you're just installing a Subversion client, the Subversion team has created a package containing the minimal prerequisite libraries (Apache Portable Runtime, Neon, and Zlib) called the "dependency package" tarball or zipfile. You should be able to find it at the same place that you downloaded the Subversion tarball itself from. If you don't have these libraries installed already, you can simply unpack the dependency package "on top of" the Subversion package; for example, if you are using a .tar.gz bundle on AIX/Unix, you could type:
  1. $ tar xzvf subversion-1.x.x.tar.gz
  2. $ tar xzvf subversion-deps-1.x.x.tar.gz
  3. $ cd subversion-1.x.x
This will place 'apr', 'apr-util', 'neon', and 'zlib'directories directly into your unpacked Subversion distribution, where they will be automatically configured and built by Subversion's build process.


Installing SVN server on AIX box (SVN 1.4.5)

Subversion has two servers you can choose from: svnserve and Apache. svnserve is a small, lightweight server program that is automatically compiled when you build Subversion's source. Apache is a more heavyweight HTTP server, but tends to have more features.

'svnserve' has built-in CRAM-MD5 authentication (so you can use non-system accounts), and can also be tunneled over SSH (so you can use existing system accounts). It's also capable of using Cyrus SASL if libsasl2 is detected at ./configure time.

Before I start any further. Let me tell you what all you will need to install SVN on AIX. The required files are listed below. You will find all those files on internet.
  1. subversion-1.4.5.tar.gz
  2. subversion-deps-1.4.5.tar.gz
  3. rpm.rte
  4. libgcc-4.2.0-3.aix5.3.ppc.rpm
  5. libstdcplusplus--4.2.0-3.aix5.3.ppc.rpm
  6. gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
  7. libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
  8. gcc-4.2.0-3.aix5.3.ppc.rpm

The client speaks to the repository through SVN protocol. The default SVN port is 3690.



Now you need to follow these steps to install SVN (svnserve) on AIX.
Note! you will require root privileges to install SVN on AIX.
  1. mkdir /usr/svn
  2. cd /usr/svn
  3. Make sure you have above mentioned files (1.. 8) files under /usr/svn
  4. gunzip subversion-deps-1.4.5.tar.gz
  5. gunzip subversion-1.4.5.tar.gz
  6. tar -xvf subversion-1.4.5.tar
  7. tar -xvf subversion-deps-1.4.5.tar
  8. chown -R root:system /usr/svn/subversion-1.4.5
  9. installp -qacXgd rpm.rte rpm.rte
  10. rpm –i gcc-4.2.0-3.aix5.3.ppc.rpm
  11. rpm –i libgcc-4.2.0-3.aix5.3.ppc.rpm
  12. rpm –i libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
  13. rpm –i libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
  14. rpm -i gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
  15. mkdir /usr/svn/custom
  16. cd /usr/svn/subversion-1.4.5/zlib
  17. ./configure --prefix /usr/svn/custom
  18. ./configure –s --prefix /usr/svn/custom
  19. make
  20. make install
  21. cd ..
  22. ./configure --prefix /usr/svn/custom CPPFLAGS="-Izlib/ -Lzlib/"
  23. make
  24. make install
Enough is enough, no more steps please. Hmm! now that we have SVN server (svnserve) on AIX. Please note that all the above steps have been succeeded in sequence. In case something might have failed please reinstall that.

To test whether its successful or not
  1. PATH=/usr/svn/custom/bin:$PATH
  2. ./svn --version

No comments:

Post a Comment