You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Pierre Girard <pi...@gerad.ca> on 2005/06/13 20:29:05 UTC
Problems compiling subversion 1.2.0 on solaris with berkeley db
Hello,
i'm trying to compile subversion on a solaris machine and when i try
the configure command it doesn't find the berkeley db. I compiled the
db and put it in a directory and i give the additional
-with-berkeley-db= but it still doesn't find it.
Here are few commands i tried to get configure to work:
./configure --with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
--prefix=/home/i386-pc-solaris2/subversion-1.2.0
CFLAGS="-O2" CPPFLAGS="-I$FWD/db-4.3.28/include"
LDFLAGS="-L//home/i386-pc-solaris2/db-4.3.28/lib -lthread" ./configure
--with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
--prefix=/home/i386-pc-solaris2/subversion-1.2.0
bash-3.00$ ls /home/i386-pc-solaris2/db-4.3.28/{lib,include}
/home/i386-pc-solaris2/db-4.3.28/include:
db.h db_cxx.h
/home/i386-pc-solaris2/db-4.3.28/lib:
libdb-4.3.a libdb.a
Some selected output from configure:
checking for Berkeley DB 4.3 in /home/i386-pc-solaris2/db-4.3.28...
checking db43/db.h usability... no
checking db43/db.h presence... no
checking for db43/db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
[...]
checking db_185.h presence... no
checking for db_185.h... no
checking for Berkeley DB... not found
configure: error: Berkeley DB not found.
configure failed for apr-util
It seems to find the header file but it decides it's not enough?
Do you have any suggestions to get that to work?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Problems compiling subversion 1.2.0 on solaris with berkeley db
Posted by Erik Huelsmann <eh...@gmail.com>.
> > [...]
> > checking db_185.h presence... no
> > checking for db_185.h... no
> > checking for Berkeley DB... not found
> > configure: error: Berkeley DB not found.
> > configure failed for apr-util
>
> Did I say it's not the runtime linker not picking up files? Hmmm, I might be
> wrong after all. Also, I think BDB installs a few binaries that have to be in
> $PATH for them to work.
>
> Also, I wonder what the '[...]' output above was and what additional info is
> in config.log, in particular what the last test was that failed.
configure needs to be able to find the dynamic link libraries to run
some tests. On many *nix-es this means you need to have the library
path in your system setup or in your LD_LIBRARY_PATH.
Bye,
Erik.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Problems compiling subversion 1.2.0 on solaris with berkeley db
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Pierre Girard wrote:
> i'm trying to compile subversion on a solaris machine and when i try
> the configure command it doesn't find the berkeley db. I compiled the
> db and put it in a directory and i give the additional
> -with-berkeley-db= but it still doesn't find it.
The most popular one is to ignore the messages that 'make install' prints for
libraries, i.e. that you need to tell the runtime (dynamic) linker where to
find the created libs. That's not the one biting you here though.
> Here are few commands i tried to get configure to work:
> ./configure --with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
> --prefix=/home/i386-pc-solaris2/subversion-1.2.0
I guess you configured BDB with '--prefix=/home/i386-pc-solaris2/db-4.3.28',
right?
> CFLAGS="-O2" CPPFLAGS="-I$FWD/db-4.3.28/include"
> LDFLAGS="-L//home/i386-pc-solaris2/db-4.3.28/lib -lthread" ./configure
> --with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
> --prefix=/home/i386-pc-solaris2/subversion-1.2.0
You tell configure via CPPFLAGS/LDFLAGS and via --with-berkeley
where to find BDB, once should be enough.
> bash-3.00$ ls /home/i386-pc-solaris2/db-4.3.28/{lib,include}
> /home/i386-pc-solaris2/db-4.3.28/include:
> db.h db_cxx.h
>
> /home/i386-pc-solaris2/db-4.3.28/lib:
> libdb-4.3.a libdb.a
>
> Some selected output from configure:
> checking for Berkeley DB 4.3 in /home/i386-pc-solaris2/db-4.3.28...
> checking db43/db.h usability... no
> checking db43/db.h presence... no
> checking for db43/db.h... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
These are ok, as your headers are not installed in a db4 or db43 subsolder.
> checking db.h usability... yes
> checking db.h presence... yes
Here, it picked up your headers.
> [...]
> checking db_185.h presence... no
> checking for db_185.h... no
> checking for Berkeley DB... not found
> configure: error: Berkeley DB not found.
> configure failed for apr-util
Did I say it's not the runtime linker not picking up files? Hmmm, I might be
wrong after all. Also, I think BDB installs a few binaries that have to be in
$PATH for them to work.
Also, I wonder what the '[...]' output above was and what additional info is
in config.log, in particular what the last test was that failed.
Uli
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org