Hi,
i'm trying to build squidGuard-1.4 on a solaris 10 sparc machine and i'm
running into problems with BerkeleyDB. the configure script ends with
the following error.
<snip>
** The Berkley DB library version 2.6.4 or newer
is required. Get it from http://www.oracle.com
use --with-db=DIR or --with-db-inc=DIR,
--with-db-lib=DIR to specify its location
(default is /usr/local/BerkeleyDB)
</snip>
i've downloaded BerkeleyDB 4.5.20 and 4.6.21 from oracle, compiled and
installed them without errors, but the configure script complains about
either version. i've tried with "--with-db" and "--with-db-inc/lib"
without success. at the end i've installed BerkeleyDB from opencsw just
to test if this might work but it failed the same way.
any hints what might be wrong?
here are some screen copies with the run of the configure script and
further info about the machine.
<snip>
freya/Download/squidGuard-1.4# ./configure --prefix=/usr/local
checking for gcc... /usr/sfw/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/sfw/bin/gcc accepts -g... yes
checking for /usr/sfw/bin/gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/sfw/bin/gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/local/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for lynx... /usr/local/bin/lynx
checking for perl... /usr/bin/perl
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for unistd.h... (cached) yes
checking for db.h... (cached) yes
checking suppress runtime logging... no
checking squid runtime user ... squid
checking for ldap support... no
checking for mysql support... no
checking for pthread_create in -lpthread... yes
** The Berkley DB library version 2.6.4 or newer
is required. Get it from http://www.oracle.com
use --with-db=DIR or --with-db-inc=DIR,
--with-db-lib=DIR to specify its location
(default is /usr/local/BerkeleyDB)
freya/Download/squidGuard-1.4# cat /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010
freya/Download/squidGuard-1.4#
freya/Download/squidGuard-1.4# pkginfo | grep -i berkeley
application CSWbdb3 berkeleydb3 - BerkeleyDB
3.3 embedded database libraries and utilities
application CSWbdb4 berkeleydb4 - Stub package
as contents moved to CSWbdb42
application CSWbdb42 berkeleydb42 - BerkeleyDB
4.2 embedded database libraries and utilities
application CSWbdb43 berkeleydb43 - BerkeleyDB 4.3
application CSWbdb43-devel berkeleydb43_devel -
BerkeleyDB 4.3 development support
application CSWbdb44 berkeleydb44 - BerkeleyDB
4.4 embedded database libraries and utilities
application CSWbdb44-devel berkeleydb44_devel -
BerkeleyDB 4.4 development support
application CSWbdb47 berkeleydb47 - BerkeleyDB
4.7 embedded database libraries and utilities
application CSWbdb48 berkeleydb48 - BerkeleyDB
4.8 embedded database libraries and utilities
application SUNWbdb BerkeleyDB-Base 4.2.52
(sun-private) Solaris Sparc 32-bit and 64-bit Architecture
application SUNWbdbj
BerkeleyDB-Java(sun-private) 4.2.52 Solaris Sparc 32-bit and 64-bit
Architecture
freya/Download/squidGuard-1.4#
freya/Download/squidGuard-1.4# set
BASH=/usr/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="1" [4]="release"
[5]="sparc-sun-solaris2.10")
BASH_VERSION='3.00.16(1)-release'
CC=/usr/sfw/bin/gcc
COLUMNS=120
CXX=/usr/sfw/bin/g++
DIRSTACK=()
DISPLAY=localhost:12.0
EDITOR=vi
EUID=0
GROUPS=()
HISTFILE=/export/home/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/export/home/root
HOSTNAME=freya
HOSTTYPE=sparc
HZ=
IFS=$' \t\n'
LINES=50
LOGNAME=root
MACHTYPE=sparc-sun-solaris2.10
MAIL=/var/mail/root
MAILCHECK=60
MANPATH=/usr/man:/usr/local/man:/usr/local/share/man:/opt/csw/share/man
OLDPWD=/Download
OPTERR=1
OPTIND=1
OSTYPE=solaris2.10
PATH=/usr/sfw/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/ucb:/usr/local/bin
PIPESTATUS=([0]="0" [1]="0")
PPID=14854
PS1='\H\w\$ '
PS2='> '
PS4='+ '
PWD=/Download/squidGuard-1.4
SHELL=/usr/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=vt100
TZ=Europe/Berlin
UID=0
_=
http_proxy=freya.rz-amper.com:8080
freya/Download/squidGuard-1.4#
</snip>
regards
markus
ct,
--
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten
Zur�cklegen des Arbeitsweges.
http://www.rz-amper.de
|
|
0
|
|
|
|
Reply
|
lassmichinruhe2 (23)
|
2/2/2012 11:16:21 AM |
|
On 2012-02-02, Markus Sonnenberg <lassmichinruhe@rz-amper.de> wrote:
> ** The Berkley DB library version 2.6.4 or newer
> is required. Get it from http://www.oracle.com
> use --with-db=DIR or --with-db-inc=DIR,
> --with-db-lib=DIR to specify its location
> (default is /usr/local/BerkeleyDB)
You'll find probably the error message along with the failing test
program and the compilation command in the "config.log" file. You need
to make sure that header files and libraries get found.
Andreas.
|
|
0
|
|
|
|
Reply
|
comp.unix.solaris134 (4)
|
2/2/2012 12:42:52 PM
|
|
On 2/2/2012 1:42 PM, Andreas F. Borchert wrote:
> You'll find probably the error message along with the failing test
> program and the compilation command in the "config.log" file. You need
> to make sure that header files and libraries get found.
>
> Andreas.
you're right. i found this in the config.log file.
<snip>
configure:4013: checking for db.h
configure:4018: result: yes
configure:4524: checking for pthread_create in -lpthread
configure:4559: /usr/sfw/bin/gcc -o conftest -g -O2
-I/usr/local/BerkeleyDB/include -I/usr/local/BerkeleyDB/include -L
/usr/local/BerkeleyDB/lib conftest.c -lpthread >&5
configure:4565: $? = 0
configure:4583: result: yes
configure:4634: /usr/sfw/bin/gcc -o conftest -g -O2
-I/usr/local/BerkeleyDB/include -I/usr/local/BerkeleyDB/include -L
/usr/local/BerkeleyDB/lib conftest.c -lpthread -ldb >&5
configure:4637: $? = 0
configure:4643: ./conftest
ld.so.1: conftest: fatal: libdb-4.5.so: open failed: No such file or
directory
../configure: line 4644: 15828 Killed ./conftest$ac_exeext
configure:4646: $? = 137
configure: program exited with status 137
configure: failed program was:
|
| #include <db.h>
| int main()
| {
| int major, minor, patch;
| float ver;
| #if DB_VERSION_MAJOR
| major = DB_VERSION_MAJOR;
| minor = DB_VERSION_MINOR;
| patch = DB_VERSION_PATCH;
| #else
| db_version(&major, &minor, &patch);
| #endif
| ver = major + ((float) minor / 1000);
| if (ver >= 2.006)
| exit (0);
| exit (1);
| }
</snip>
the file libdb-4.5.so is locatet at /usr/local/BerkeleyDB/lib.
how do i make the configure script to find this file?
ct,
--
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten
Zur�cklegen des Arbeitsweges.
http://www.rz-amper.de
|
|
0
|
|
|
|
Reply
|
lassmichinruhe2 (23)
|
2/2/2012 1:38:48 PM
|
|
Markus Sonnenberg <lassmichinruhe@rz-amper.de> writes:
> (default is /usr/local/BerkeleyDB)
>i've downloaded BerkeleyDB 4.5.20 and 4.6.21 from oracle, compiled and
>installed them without errors, but the configure script complains about
>either version. i've tried with "--with-db" and "--with-db-inc/lib"
>without success. at the end i've installed BerkeleyDB from opencsw just
>to test if this might work but it failed the same way.
You don't show any configure with specifying --with-db, and you don't
say where you actually installed it into, if you put it into the location of
/usr/local/BerkleyDB
While that is standard location for many opensource packages looking
for it, that isn't the default installation location for the
package itself, or from opencsw. You'd have to specify that location
(or choose another to use with --with-db=/path
|
|
0
|
|
|
|
Reply
|
Doug
|
2/2/2012 1:56:21 PM
|
|
On 2/2/2012 2:56 PM, Doug McIntyre wrote:
> Markus Sonnenberg<lassmichinruhe@rz-amper.de> writes:
>> (default is /usr/local/BerkeleyDB)
>
>> i've downloaded BerkeleyDB 4.5.20 and 4.6.21 from oracle, compiled and
>> installed them without errors, but the configure script complains about
>> either version. i've tried with "--with-db" and "--with-db-inc/lib"
>> without success. at the end i've installed BerkeleyDB from opencsw just
>> to test if this might work but it failed the same way.
>
> You don't show any configure with specifying --with-db, and you don't
> say where you actually installed it into, if you put it into the location of
> /usr/local/BerkleyDB
>
> While that is standard location for many opensource packages looking
> for it, that isn't the default installation location for the
> package itself, or from opencsw. You'd have to specify that location
> (or choose another to use with --with-db=/path
>
>
no, you got me wrong. when i wrote that i've tried with "--with-db" i
meant that i've tried the following
./configure --prefix=/usr/local \
--with-db=/usr/local/BerkeleyDB
./configure --prefix=/usr/local \
--with-db-inc=/usr/local/BerkeleyDB/include \
--with-db-lib=/usr/local/BerkeleyDB/lib
the config.log file tells that the file libdb-4.5.so can not be found.
this file is locatet at /usr/local/BerkeleyDB/lib.
how do i make sure that the file can be found?
regards
markus
ct,
--
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten
Zur�cklegen des Arbeitsweges.
http://www.rz-amper.de
|
|
0
|
|
|
|
Reply
|
lassmichinruhe2 (23)
|
2/2/2012 2:20:59 PM
|
|
On 2012-02-02, Markus Sonnenberg <lassmichinruhe@rz-amper.de> wrote:
> the file libdb-4.5.so is locatet at /usr/local/BerkeleyDB/lib.
> how do i make the configure script to find this file?
run configure with appropriate environment parameters, i.e.
LDFLAGS='-R/usr/local/BerkeleyDB/lib' ./configure ...
or with
export LD_RUN_PATH=/usr/local/BerkeleyDB/lib
./configure ...
make ...
The run path has always to be set explicitly for the configure
scripts.
Andreas.
|
|
0
|
|
|
|
Reply
|
comp.unix.solaris134 (4)
|
2/2/2012 2:25:31 PM
|
|
Andreas F. Borchert <comp.unix.solaris@expires-on-2012-02-10.usenet.andreas-borchert.de> wrote:
> LDFLAGS='-R/usr/local/BerkeleyDB/lib' ./configure ...
>
> export LD_RUN_PATH=/usr/local/BerkeleyDB/lib
LDFLAGS is by far the superior option compared to LD_RUN_PATH or
LD_LIBRARY_PATH.
--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
|
|
0
|
|
|
|
Reply
|
hume.spamfilter (184)
|
2/2/2012 3:14:25 PM
|
|
On 2/2/2012 3:25 PM, Andreas F. Borchert wrote:
> run configure with appropriate environment parameters, i.e.
>
> LDFLAGS='-R/usr/local/BerkeleyDB/lib' ./configure ...
that did the trick. thanks for you help.
regards
markus
ct,
--
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten
Zur�cklegen des Arbeitsweges.
http://www.rz-amper.de
|
|
0
|
|
|
|
Reply
|
lassmichinruhe2 (23)
|
2/2/2012 3:14:27 PM
|
|
On 2012-02-02, hume.spamfilter@bofh.ca <hume.spamfilter@bofh.ca> wrote:
> Andreas F. Borchert <comp.unix.solaris@expires-on-2012-02-10.usenet.andreas-borchert.de> wrote:
>> LDFLAGS='-R/usr/local/BerkeleyDB/lib' ./configure ...
>>
>> export LD_RUN_PATH=/usr/local/BerkeleyDB/lib
>
> LDFLAGS is by far the superior option compared to LD_RUN_PATH or
> LD_LIBRARY_PATH.
I've not recommended LD_LIBRARY_PATH.
The temporary(!) setting of LD_RUN_PATH helps if the configure script
does not honour the LDFLAGS environment variable. (Such cases exist.)
Andreas.
|
|
0
|
|
|
|
Reply
|
comp.unix.solaris135 (1)
|
2/3/2012 8:10:14 AM
|
|
On 02/02/12 11:16, Markus Sonnenberg wrote:
> Hi,
>
> i'm trying to build squidGuard-1.4 on a solaris 10 sparc machine and i'm
> running into problems with BerkeleyDB. the configure script ends with
> the following error.
>
> <snip>
> ** The Berkley DB library version 2.6.4 or newer
> is required. Get it from http://www.oracle.com
> use --with-db=DIR or --with-db-inc=DIR,
> --with-db-lib=DIR to specify its location
> (default is /usr/local/BerkeleyDB)
> </snip>
>
> i've downloaded BerkeleyDB 4.5.20 and 4.6.21 from oracle, compiled and
> installed them without errors, but the configure script complains about
> either version. i've tried with "--with-db" and "--with-db-inc/lib"
> without success. at the end i've installed BerkeleyDB from opencsw just
> to test if this might work but it failed the same way.
>
> any hints what might be wrong?
>
Did you try configure --help to see what the options are w/respect to
external libraries ?.
Other than that, the easiest way might be to rebuild BerkelyDb with
configure --prefix set to where Sqidguard configure expects to find
the library...
Regards,
Chris
|
|
0
|
|
|
|
Reply
|
ChrisQ
|
2/3/2012 11:08:11 AM
|
|
|
9 Replies
174 Views
(page loaded in 0.163 seconds)
Similiar Articles:7/23/2012 1:54:18 PM
|