[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How to install Subversion and ViewVC (and Trac) from source on FC7

From: Phil <plabonte_at_gmail.com>
Date: 2007-09-07 21:24:26 CEST

I thought I would post a How-To in order to avoid people from going
through the issues I did trying to get this installed.
This process should work for Trac as well but I have not tested it as
much as I did for ViewVC but the main issues were the python bindings
which are the same for both applications.

This helps you avoid the errors such as:
ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
and also
ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No
such file or directory

This might not be the best method of installation but it worked for me.

1- Install FC7 make sure that the python-devel package is installed.
2- Download subversion and subversion-deps
3- Download mod-python (not the rpm)
4- Extract subversion and subversion-deps
5- run ./configure
          make install to install subversion
6- Next we need to download and install Apache and some other bits. go
back out of the main subversion directory and type the following:
       svn co
http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x httpd-2.0
       cd httpd-2.0/srclib/
       svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
       svn co
http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
7- go back to the httpd-2.0 directory and type
     ./configure --enable-dav --enable-so
     make && make install
8- extract mod_python and go into that directory and type
    ./configure --with-apxs=/usr/local/apache2/bin/apxs (assuming
apache is in the default location)
     make && make install
9- download and extract swig version 1.3.24
10- run ./configure
           make && make install
11- go back the the main subversion-1.4.x directory and rename the
neon directory to neontemp (this avoids the above mentioned errors) we
will compile it separately in order for it to get installed correctly.
12- Go into neon temp and type the following:
      ./configure --with-ssl -with-zlib --enable-shared --enable-static
      make install
13- then back up to the main subversion-1.4.x directory
14- run make clean
15- rm -rf /usr/local/lib/libsvn*
14- vi Makefile and change the following line:
     old: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm -
lcrypt -lnsl -lpthread -ldl and change it to
new: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm -
lcrypt -lnsl -lpthread -ldl -lgssapi
15- re compile subversion ./configure, make && make install
16- create and install the swig bindings by running make swig-py and
then run make install-swig-py
17- finally create a link to the svn files by running the following commands
      ln -s /usr/local/lib/svn-python/svn /usr/lib/python2.5/site-packages/svn
      ln -s /usr/local/lib/svn-python/libsvn/
18- run and install viewvc or trac

And hopefully for you everything works :)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 7 21:21:30 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.