Got error message when using SVN client

April 1, 2007 on 5:52 pm | In SVN | No Comments

Can’t set position pointer in file ‘/path/to/repos/db/revs/0′: Invalid argument

This message stuck me quite a few days.

The solution is:

Using –with-apr  and –with-apr-util when compiling  SVN  AND the paths pointing to  apache’s  package, namely like this

./configure --with-apxs=/usr/local/apache2/bin/apxs \
–with-apr=/source/httpd-2.2.4/srclib/apr \
–with-apr-util=/source/httpd-2.2.4/srclib/apr-util

updated by May 21, 2007
######################################################
if you got error massage like this:

no XML parser was found: expat or libxml 2.x required
configure failed for neon

you can do this first:
./configure --with-apxs=/usr/local/apache2/bin/apxs

then re-configure again.

I don’t know why, it is really weird.
######################################################

Notice that folder /source is for my case, you have to change it to your folder where the Apache’s source resides

Please don’t forget 

make clean

before you

make it again.

setup Subversion server on CentOS/Apache friends

March 23, 2007 on 4:28 pm | In SVN, Linux Admin | 4 Comments

I have no choice, the company I am working with is currently using CentOS4.4/Apache friends 1.6. But they need SVN.

The little trick is, the apache friends 1.6 could not be compiled with mod_dav_svn.so so that I could not pass the ./configure with –with-apxs=/opt/lampp/bin/apxs.

Finally, I gave up, compiled Subversion 1.4.3 without apxs. Everything worked fine but the HTTP method.

Then I looked into Apache friends 1.6, I found it comes with Apache 2.2.4.

So I used another machine to compile Apache 2.2.4 like this

#./configure –enable-dav –enable-so –enable-maintainer-mode
#make
#make install

compile Subversion 1.4.3 like this

#./configure –with-apxs=/usr/local/apache2/bin/apxs
# rm /usr/local/lib/libsvn*
# make clean && make && make install

Eventually, I got

mod_dav_svn.so and mod_authz_svn.so

I copied them to /opt/lampp/modules

In /opt/lampp/etc/httpd.conf added two lines like this

LoadModule dav_svn_module  modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

restart lampp, DONE !

Updated on March 28, 2007
Thanks Runge, here are the two files
mod_dav_svn.so
mod_authz.svn.so

« Previous Page
Since May 6,2007 We have Visitors
dog ramps

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^