Thursday, December 13, 2012

Installing Subversion 1.6.5 on RHEL 5


Credits: Amit Gupta (amitgupta991@gmail.com)

Installing Subversion 1.6.5

Download, unzip and extract the source code: 


 Download the version of SVN you wish to install from the tigris ( http://subversion.tigris.org/downloads/subversion-1.6.4.tar.gz)  and copy it to the location you want to install it. Note that you need to have root permission to install subversion.
Gunzip it using:
             gunzip subversion-1.6.4.tar.gz
Now untar it using:
             tar –xvf subversion-1.6.4.tar
This will create a directory called subversion-1.6.4.

Download, unzip and extract the dependencies (source): 

http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.gz
 Gunzip it using
          gunzip subversion-deps-1.6.4.tar.gz
Now untar it using
          tar –xvf subversion-deps1.6.4.tar
This will add the contents of the subversion-deps-1.6.4.tar archive into the subversion-1.6.4 directory.
Now go to the Directory subversion-1.6.4
Delete/move serf directory from the extracted directory to some other folder.

cd subversion-1.6.4
rm -rf serf

Build subversion:

Compile and build subversion:steps are as follows
Also check Make tool is there or not
which make
 You would need “apxs” to be passed as an argument for the “make”
For this you should know the path of apxs
find . –name “*” | xargs grep “apxs”
You can configure the subversion in secured mode by configuring it in “ssl” mode.
Add “—with-ssl” to configure the subversion in SSL mode
Give this command to compile
./configure --prefix=/opt/svn --with-apx=/usr/local/apache2/bin/apxs –with-ssl
make
make install

Test Subversion:

cd /opt/svn/bin ./svn --version

Monday, January 2, 2012

Installing SVN on solaris box.

Till now, altough I was working with SVN related tasks like branching, merging etc, I had never installed SVN.
This was my first experience of installing and configuring SVN on any platform.

My requirement was to move a build(v3.1.1) from existing machine to new machine as it was conflicting with other builds on the same machine. The build usses SVN as source control system. Previously lab team had configured the SVN for this build.

I started off with searching for SVN installables for Solaris 9. The Collabnet portal lists the SVN for Solaris 10, and I had to google for more than ten minutes to locate SVN for Sol 9, and at last it was at Sunfreeware.com which has moved the packages to unixpackages.com

Initally I installed SVN 1.4.5(subversion-1.4.5-sol9-sparc-local.tar.gz)

This version requires following depencies to be satisfied
apache-2.2.6
db-4.2.52.NC
expat-2.0.1
gdbm-18.3
libgcc-3.4.6
libiconv-1.11
libxml2-2.6.31
neon-0.25.5
openssl-0.9.8h
swig-1.3.29
zlib-1.2.3

I donwloaded the above packages and copied them in a folder along with subversion packages.

You need pkgadd to install these packages which usually resides in /usr/sbin/

Run the below shell loop to install all the above packages:
for i in `ls`;do echo $i; pkgadd  -d $i ;done;