dbTalk Databases Forums  

Howto Build/Config BerkeleyDB in Local Home Directory

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Howto Build/Config BerkeleyDB in Local Home Directory in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Howto Build/Config BerkeleyDB in Local Home Directory - 05-05-2006 , 10:31 AM






Hi,

How can I build and then install Berkeley DB in my
home directory.

What I intend to do is to install it in:

~/.berkeley_db


I tried the following command:

$ ../dist/configure --prefix $HOME/.berkeley_db

followed by:

$ make

But it failed, thus the command: make install
also failed.

Did I do it the right way?
Hope to hear from you again.
Thanks.

Regards,
Gundala Viswanath


Reply With Quote
  #2  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-06-2006 , 03:22 AM






Quote:
I tried the following command:

$ ../dist/configure --prefix $HOME/.berkeley_db

followed by:

$ make

But it failed, thus the command: make install
also failed.
This is likely caused by something else than your special installation
path. Could you show us the error messages, especially for the "make"
failure?


Reply With Quote
  #3  
Old   
Sergey Maslyakov
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 03:18 AM



I guess Gundala has merely missed the "equals" sign between "--prefix"
and the path. If this is not the case, we need to see the exact error
messages "make" spits out to determine the root cause of the problem.


/Sergey


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 08:52 AM



Hi Florian,

Thanks for your reply


Quote:
This is likely caused by something else than your special installation
path. Could you show us the error messages, especially for the "make"
failure?

The last few lines after make command is this:


cc -I /home/gundala/.libstree/include -I /home/gundala/.gsl/include -I
/home/gundala/.swish/include -o .libs/db_archive
/home/gundala//.libstree/lib /home/gundala/.gsl/lib
/home/gundala//.swish/lib .libs/db_archive.o .libs/util_sig.o
-L/home/gundala/Tool/db-4.4.20/build_unix ./.libs/libdb-4.4.so
-lpthread -Wl,--rpath -Wl,/home/gundala//.berkeley_db/lib
/home/gundala.libstree/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [db_archive] Error 1


And also my .bash_profile look like this:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

export
PATH=$PATH:$HOME/bin:$HOME/.lynx/bin:$HOME/.octave/bin:$HOME/.pari/bin:$HOME/.swish/bin

# User specific environment and startup programs
export CFLAGS="-I $HOME/.libstree/include -I $HOME/.gsl/include -I
$HOME/.swish/include";
export LDFLAGS="-L $HOME/.libstree/lib -L $HOME/.gsl/lib -L
$HOME/.swish/lib";
export
LD_LIBRARY_PATH="/home/gundala/.swish/lib:/home/gundala/.gsl/lib:/home/gundala/.libstree/lib:${LD_LIBRARY_PATH}"


unset USERNAME
export
PERL5LIB=/home/gundala/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi:/home/gundala/lib/perl5/site_perl/5.8.5

__END__

I've also include the = sign after prefix, it still return the same
error message.

Hope to hear from you again.



Regards,
Gundala



Reply With Quote
  #5  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 09:09 AM



Quote:
cc -I /home/gundala/.libstree/include -I /home/gundala/.gsl/include -I
/home/gundala/.swish/include -o .libs/db_archive
/home/gundala//.libstree/lib /home/gundala/.gsl/lib
/home/gundala//.swish/lib .libs/db_archive.o .libs/util_sig.o
-L/home/gundala/Tool/db-4.4.20/build_unix ./.libs/libdb-4.4.so
-lpthread -Wl,--rpath -Wl,/home/gundala//.berkeley_db/lib
/home/gundala.libstree/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [db_archive] Error 1
You must not use spaces between the -I and -L options and their
arguments. Your CFLAGS and LDFLAGS settings are incorrect.


Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 09:33 AM



Florian Weimer wrote:

Quote:
You must not use spaces between the -I and -L options and their
arguments. Your CFLAGS and LDFLAGS settings are incorrect.
Ok. Now CFLAGS and LDFLAGS settings in my .bash_profile look like
this:

export CFLAGS="-I
$HOME/.libstree/include:$HOME/.gsl/include:$HOME/.swish/include";
export LDFLAGS="-L
$HOME/.libstree/lib:$HOME/.gsl/lib:$HOME/.swish/lib";



But I still encounter this error:

cc -c -I. -I../dist/.. -D_GNU_SOURCE -D_REENTRANT -I
/home/gundala/.libstree/include:/home/gundala/.gsl/include:/home/gundala/.swish/include
.../dist/../common/util_sig.c -o util_sig.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link cc -I
/home/gundala.libstree/include:/home/gundala/.gsl/include:/home/gundala/.swish/include
-o db_archive -L
/home/gundala/.libstree/lib:/home/gundala/.gsl/lib:/home/gundala/.swish/lib
\
db_archive.lo util_sig.lo libdb-4.4.la -lpthread
cc -I
/home/gundala/.libstree/include:/home/gundala/.gsl/include:/home/gundala/.swish/include
-o .libs/db_archive
/home/gundala/.libstree/lib:/home/gundala/.gsl/lib:/home/gundala/.swish/lib
..libs/db_archive.o .libs/util_sig.o
-L/home/gundala/Tool/db-4.4.20/build_unix ./.libs/libdb-4.4.so
-lpthread -Wl,--rpath -Wl,/home/gundala/.berkeley_db/lib
cc:
/home/gundala/.libstree/lib:/home/gundala/.gsl/lib:/home/gundala/.swish/lib:
No such file or directory
make: *** [db_archive] Error 1

Is my .bash_profile setting still incorrect?

--
Regards,
Gundala Viswanath



Reply With Quote
  #7  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 10:40 AM



Quote:
Florian Weimer wrote:

You must not use spaces between the -I and -L options and their
arguments. Your CFLAGS and LDFLAGS settings are incorrect.

Ok. Now CFLAGS and LDFLAGS settings in my .bash_profile look like
this:

export CFLAGS="-I
$HOME/.libstree/include:$HOME/.gsl/include:$HOME/.swish/include";
export LDFLAGS="-L
$HOME/.libstree/lib:$HOME/.gsl/lib:$HOME/.swish/lib";
No, you must use:

-I$HOME/.libstree/include -I$HOME/.gsl/include

and so on.


Reply With Quote
  #8  
Old   
AT
 
Posts: n/a

Default Re: Howto Build/Config BerkeleyDB in Local Home Directory - 05-07-2006 , 12:03 PM



Thanks so much for your patience Florian!
It works great now. So sorry for the trouble.

Regards,
Gundala Viswanath


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.