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

Re: Compiling mod_dav_svn against an installed Apache2 instance ?

From: Nelson Cabral <nelson.cabral_at_gmail.com>
Date: Sat, 16 Oct 2010 15:23:31 +0200

Does the default Apache2 config includes apr-devel ?

2010/10/16 Ryan Schmidt <subversion-2010d_at_ryandesign.com>:
> On Oct 16, 2010, at 07:41, Nelson Cabral wrote:
>> Ryan Schmidt wrote:
>>> On Oct 13, 2010, at 12:35, Nelson Cabral wrote:
>>>> My NAS comes with an Apache2 instance without mod_dav_svn. I would
>>>> like to compile mod_dav_svn.so but I don't know how to get the sources
>>>> and how to compile it properly. The NAS is a Synology CS407, the
>>>> firmware is DSM 3.0, and everything is linux powered.
>>>>
>>>> Can someone give me instructions (command lines) or redirect me? I
>>>> would gladly appreciate any help.
>>>
>>> The sources for mod_dav_svn are right there in the Subversion source distribution, which is available from the Subversion web site. mod_dav_svn gets built when you compile Subversion with the --with-apxs flag. When you compile Subversion, you will provide configure arguments pointing at your NAS's existing copies of apxs, apr and apr-util, among perhaps other options:
>>>
>>> ./configure ... \
>>> --with-apr=/path/to/apr-config
>>> --with-apr-util=/path/to/apu-config \
>>> --with-apxs=/path/to/apxs
>>
>> I don't know how to write the --with-apr option, can the result of
>> this command help ?
>>
>> CubeStation> find / -iname apr*
>> /volume1/@optware/lib/ipkg/info/apr.list
>> /volume1/@optware/lib/ipkg/info/apr-util.list
>> /volume1/@optware/lib/ipkg/info/apr-util.control
>> /volume1/@optware/lib/ipkg/info/apr.control
>> /volume1/@optware/lib/aprutil.exp
>> /volume1/@optware/lib/apr.exp
>> /volume1/@optware/lib/apr-util-1
>> /volume1/@optware/lib/apr-util-1/apr_dbm_gdbm-1.so
>> /volume1/@optware/lib/apr-util-1/apr_ldap-1.so
>> /volume1/@optware/lib/apr-util-1/apr_dbm_gdbm.la
>> /volume1/@optware/lib/apr-util-1/apr_dbd_sqlite3.so
>> /volume1/@optware/lib/apr-util-1/apr_dbm_gdbm.so
>> /volume1/@optware/lib/apr-util-1/apr_dbd_sqlite3.la
>> /volume1/@optware/lib/apr-util-1/apr_ldap.so
>> /volume1/@optware/lib/apr-util-1/apr_dbd_sqlite3-1.so
>> /volume1/@optware/lib/apr-util-1/apr_ldap.la
>> /volume1/@optware/lib/pkgconfig/apr-util-1.pc
>> /volume1/@optware/lib/pkgconfig/apr-1.pc
>> /opt/lib/ipkg/info/apr.list
>> /opt/lib/ipkg/info/apr-util.list
>> /opt/lib/ipkg/info/apr-util.control
>> /opt/lib/ipkg/info/apr.control
>> /opt/lib/aprutil.exp
>> /opt/lib/apr.exp
>> /opt/lib/apr-util-1
>> /opt/lib/apr-util-1/apr_dbm_gdbm-1.so
>> /opt/lib/apr-util-1/apr_ldap-1.so
>> /opt/lib/apr-util-1/apr_dbm_gdbm.la
>> /opt/lib/apr-util-1/apr_dbd_sqlite3.so
>> /opt/lib/apr-util-1/apr_dbm_gdbm.so
>> /opt/lib/apr-util-1/apr_dbd_sqlite3.la
>> /opt/lib/apr-util-1/apr_ldap.so
>> /opt/lib/apr-util-1/apr_dbd_sqlite3-1.so
>> /opt/lib/apr-util-1/apr_ldap.la
>> /opt/lib/pkgconfig/apr-util-1.pc
>> /opt/lib/pkgconfig/apr-1.pc
>
> You write the --with-apr option as stated: point it to your apr-config program. The problem is you don't seem to have one, nor the apr headers. Assuming your Synology NAS has a package management system that was used to install apr and your other existing packages, this presumably means the "apr" package is installed but the "apr-devel" package is not. So use your package manager to install the apr-devel package, then try again. While you're there, you could check if your package manager already has a package for mod_dav_svn, and if so, perhaps you could use that.
>
>
>

-- 
Nelson
Received on 2010-10-16 15:24:09 CEST

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