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

Re: svn with apache Can't set position pointer in file

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Mon, 30 Jun 2008 15:24:16 -0500

On Jun 30, 2008, at 00:48, <sanjeev.kumarroy_at_wipro.com>
<sanjeev.kumarroy_at_wipro.com> wrote:

> I am a newbie to the svn community. I had used svnserve some time
> back to setup the svn. Now I need to implement http for the svn
> setup. I have been trying to install SVN with apache support.
> However I am not able to get it done. Below are the errors that I
> get while doing a checkout:
>
>
>
> # svn co http://10.138.X.YY:7878/svn/Tool
>
> svn: PROPFIND request failed on '/svn/Tool'
>
> svn: Can't set position pointer in file '/usr/local/subversion/
> repository/db/revs/482': Invalid argument
>

Ok, I'll deal with this below.

> If I give the SVNPath as /usr/local/subversion/ then I get the
> below error.
>
> # svn co http://10.138.X.YY:7878/svn/repository/
>
> svn: PROPFIND request failed on '/svn/repository'
>
> svn: Could not open the requested SVN filesystem
>

This means your SVNPath is wrong (it does not point to a repository).
In your case, it sounds like your repository is at /usr/local/
subversion/repository, therefore if you want to use SVNPath (that is,
if you only want to serve a single repository, not a collection of
repositories) then you want "SVNPath /usr/local/subversion/
repository". If you do want to serve a collection of repositories,
then you need "SVNParentPath /usr/local/subversion" instead.

> I followed the steps given below. Please let me know if I made a
> mistake some where.
>
>
>
> Installing httpd-2.2.9 from source:
>
>
>
> ./buildconf
>
> ./configure --enable-dav --enable-so
>
> make
>
> make install
>
>
>
> This creates the apache2 directory in /usr/local
>
>
>
> Now take subversion-1.4.6.tar.gz and subversion-deps-1.4.6.tar.gz.
> Untar both to subversion-1.4.6.
>
>
>
> Enter the subversion-1.4.6 directory
>
> tar -zxvf subversion-1.4.6.tar.gz
>
> tar -zxvf subversion-deps-1.4.6.tar.gz
>

[snip]

Apache 2.2.x contains and requires APR 1.2.x (or now 1.3.x I believe).

Subversion can use either APR 0.9.x or APR 1.x, but if used together
with Apache, it must use the same version of APR as Apache does.

subversion-deps-1.4.6.tar.gz contains APR 0.9.x so that's not
compatible with Apache 2.2.x.

When you build Subversion, you should tell it to use the APR (and APR-
Util) that came with Apache 2.2.x instead of the ones in the
subversion-deps package.

Finally, you should use Subversion 1.5.0 instead of 1.4.6 because it
is newer. Subversion 1.5.0's deps package also comes with APR 1.x.
See the release notes:

http://subversion.tigris.org/svn_1.5_releasenotes.html#deps

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-30 22:24:44 CEST

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.