You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Albert <al...@fastworx.com> on 2005/10/24 08:39:23 UTC

Failing to compile subversion

Hi

I’m trying to install subversion. I’ve downloaded the sources as well as the
source for Berkeley DB.

I have:
- Berkeley DB 4.3.29	-	sources located in
/home/albert/sources/db-4.3.29/
- Subversion 1.2.3	-	sources located in
/home/albert/sources/subversion-1.2.3/

I have performed the following (as root):

$ cd /home/albert/sources/db-4.3.29/build_unix
$ ../dist/configure
$ make
$ make install
$ cd ../../subversion-1.2.3
$ ./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.3

This responds with lots of "checking..." lines - the last showing it cannot
find Berkeley. 

The last two lines are:
configure: error: Berkeley DB not found.
Configure failed for apr-util

/usr/local/BerkeleyDB4.3 does indeed exist. It contains bin, docs, include
and lib directories. 

If anyone can point out what I'm doing wrong it would be greatly
appreciated.

I do not have Apache or apr or apr-util installed. At this time I want to
compile svn that I can download the apr and apr-util sources and then
compile svn again to create a svn server.

In /home/albert/sources I have:
db-4.3.29
httpd-2.0.55
libpng-1.2.8-config (required for PNG support in PHP)
openssl-0.9.8a
php-4.4.0
subversion-1.2.3
zlib-1.2.3	(required for libpng)

I'm not sure if I'm on the right track, so if someone has a HOWTO which will
easily show me how to install Apache + SSL + PHP + Subversion it would be
greatly appreciated. Currently I'm a bit in the dark and have modified the
way I normally install Apache + SSL + PHP to include Subversion.

I'm running SuSE 9.3 - Kernel 2.6.11.4-21.7-default

I intend to install Apache + SSL + PHP + Subversion by using the following
commands as root:

$ cd db-4.3.29/build_unix
$ ../dist/configure
$ make
$ make install
$ cd ../../subversion-1.2.3
$ ./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.3
$ make
$ make install
$ cd ../httpd-2.0.55/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
$ cd openssl-0.9.7f
$ sh config no-idea no-threads -fPIC
$ make
$ make test
$ cd ../httpd-2.0.55
$ ./buildconf
$ SSL_BASE=../openssl-0.9.7f ./configure --enable-module=ssl --prefix=/www
--enable-shared=ssl \
	--enable-dab --enable-so --with-dbm=db4
--with-berkeley-db=../db-4.3.29
$ make
$ make certificate
$ make install
$ cd ../libpng-1.2.8-config
$ ./configure
$ make
$ make install
$ cd ../zlib-1.2.3
$ ./configure
$ make
$ cd ../php-4.4.0
$ ./configure --prefix=/www/php --with-apxs=/www/bin/apxs --enable-safe-mode
--with-gd \
	--with-mysql --with-mime-magic --enable-sockets
--enable-memory-limit --enable-zend-multibyte \
	--enable-shared --with-zlib-dir=../zlib-1.2.3/ --with-png=/usr/lib
--with-jpeg=/usr/lib
$ make
$ make install
$ cp php.ini-dist /usr/local/lib/php.ini
$
$ cd ../subversion-1.2.3
$ ./configure --with-apr=../httpd-2.0.55 --with_apr_utl=../httpd-2.0.55
--with-berkeley-db=../db-4.3.29 \
	--with-apxs=/usr/local/apache2/bin/apxs
$ rm /usr/local/lib/libsvn*
$ make
$ make install

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 2005/10/19
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Failing to compile subversion

Posted by Albert <al...@fastworx.com>.
Dimitri Papadopoulos-Orfanos wrote:
> This won't necessarily help, but... Do you really need Berkeley DB 
> support ? I have been building Subversion without Berkeley DB support 
> since fsfs was made available. I understand the "recommended" back-end 
> is fsfs nowadays and I've seen too many messages about Berkeley DB 
> corruption on this mailing list.

I have now recompiled not using Berkeley and it seems that it is going
through now. It also seems that the Berkeley error is actually in apr-util.

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 2005/10/19
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Failing to compile subversion

Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
I wrote:
> This is the important part. You need apr and apr-util to build Subversion.

Which is of course bundled with subversion. My wrong.

This won't necessarily help, but... Do you really need Berkeley DB 
support ? I have been building Subversion without Berkeley DB support 
since fsfs was made available. I understand the "recommended" back-end 
is fsfs nowadays and I've seen too many messages about Berkeley DB 
corruption on this mailing list.

Dimitri Papadopoulos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Failing to compile subversion

Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
Hi,

> The last two lines are:
> configure: error: Berkeley DB not found.
> Configure failed for apr-util

This is the important part. You need apr and apr-util to build Subversion.

Dimitri Papadopoulos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Failing to compile subversion

Posted by Marc Haisenko <ha...@webport.de>.
On Monday 24 October 2005 10:54, Albert wrote:
> Albert wrote:
> > Currently I'm a bit in the dark and have modified the
> > way I normally install Apache + SSL + PHP to include Subversion.
>
> I have since established that the Apache source I have downloaded already
> has the apr and apr-util sources. I have also established that when
> compiling Apache specifying --with-berkeley-db it also comes back telling
> me that it cannot find Berkeley DB.
>
> I have tried:
> --with-berkeley-db=../db-4.3.29
> --with-berkeley-db=../db-4.3.29/build_unix
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3/lib
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3/bin
>
> All with the same result:
> configure: error: Berkeley DB not found.

Maybe you are missing the header files for BDB ? Check whether you have an 
"include" directory in your BDB directory. If not, you probably need to 
install the development package of BDB. I have no idea what system you're on, 
but it will probably have a name like "bdb-devel" or something like that.

BTW, you only need the BDB if you'd like to use the BDB backend. If you want 
to use the (now default) FSFS backend then you don't need the BDB.
C'ya,
	Marc
-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Failing to compile subversion

Posted by Albert <al...@fastworx.com>.
Albert wrote:
> Currently I'm a bit in the dark and have modified the
> way I normally install Apache + SSL + PHP to include Subversion.

I have since established that the Apache source I have downloaded already
has the apr and apr-util sources. I have also established that when
compiling Apache specifying --with-berkeley-db it also comes back telling me
that it cannot find Berkeley DB.

I have tried:
--with-berkeley-db=../db-4.3.29
--with-berkeley-db=../db-4.3.29/build_unix
--with-berkeley-db=/usr/local/BerkeleyDB.4.3
--with-berkeley-db=/usr/local/BerkeleyDB.4.3/lib
--with-berkeley-db=/usr/local/BerkeleyDB.4.3/bin

All with the same result:
configure: error: Berkeley DB not found.

I did not configure Berkeley DB with any parameters. Should I have supplied
parameters?

Am I doing something wrong? If I am, what is it?

Albert


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 2005/10/19
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org