Problem While installing RPM configure fails with
checking for dbopen... no
checking for dbopen in -ldb1... no
checking for dbopen in -ldb... no
configure: error: sorry rpm requires a db-1.85 API
Tried setting the LDFLAGS as advised but to no avail (Thanks anyway
Tim).
The problem is still there. The below in bold is output from configure
concerning the Berekely database which all seems fine.
One thing that I note though is that the configure falls over just after saying that it cant find dbopen. There is no actual Berekely binary file called dbopen or db_open on my system eventhough there are working db_load and db_stat and other such binaries on system
Should there be a binary for Berekely called db_open?
The version of Berkely is 2.7.7 . I cant get a 1.85 as the error
seems to suggest I should.
Output from configure relevant to BerkelyDB
checking whether the C compiler (cc -L/usr/local/BerkeleyDB/lib)
works... yes
checking whether the C compiler (cc -L/usr/local/BerkeleyDB/lib)
is a cross-compiler... no
checking flag used by libtool to link rpm... -L/usr/local/BerkeleyDB/lib
-static
checking POSIX chmod... yes
And I still get below errors
checking for dbopen... no
checking for dbopen in -ldb1... no
checking for dbopen in -ldb... no
configure: error: sorry rpm requires a db-1.85 API
Myles Dolan Logica Ireland.
Tim Mooney wrote:
In regard to: rpm 3.0.6 Sorry rpm requires db-1.85 API, Myles Dolan said...:>LIBS='-L/usr/local/BerkeleyDB/lib/'
>CPPFLAGS='-I/usr/local/BerkeleyDB/include'
> export LIBS CPPFLAGS
> ./configureThat should probably be
LDFLAGS='-L/usr/local/BerkeleyDB/lib'
instead.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list
Attachment:
config.log
Description: application/unknown-content-type-txtfile
loading cache ./config.cache
checking host system type... hppa2.0n-hp-hpux11.00
checking target system type... hppa2.0n-hp-hpux11.00
checking build system type... hppa2.0n-hp-hpux11.00
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... (cached) cc
checking whether the C compiler (cc -L/usr/local/BerkeleyDB/lib) works... yes
checking whether the C compiler (cc -L/usr/local/BerkeleyDB/lib) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for a BSD compatible install... ./install-sh -c
checking flag used by libtool to link rpm... -L/usr/local/BerkeleyDB/lib -static
checking POSIX chmod... yes
checking for mkdir... (cached) /usr/bin/mkdir
checking if /usr/bin/mkdir supports -p... yes
checking for AIX... no
checking for minix/config.h... (cached) no
checking for POSIXized ISC... no
checking for cc option to accept ANSI C... (cached) no
checking for function prototypes... no
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for gawk... (cached) awk
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for non-GNU ld... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm -p
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... +Z
checking if cc PIC flag +Z works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc static flag -Wl,-a -Wl,archive works... -Wl,-a -Wl,archive
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into programs... relink
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... hpux11.00 dld.sl
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for ar... ar
checking for bzip2... /usr/bin/bzip2
checking for cat... /bin/cat
checking for chgrp... /bin/chgrp
checking for chmod... /bin/chmod
checking for chown... /bin/chown
checking for cp... /bin/cp
checking for cpio... /bin/cpio
checking for gzip... /usr/contrib/bin/gzip
checking for grep... /bin/grep
checking for id... /bin/id
checking checking whether id supports -u... yes
checking for install... /usr/sbin/install
checking for make... /bin/make
checking for mkdir... /bin/mkdir
checking for mv... /bin/mv
checking for patch... /bin/patch
checking old version of patch... patch later then 2.2 found
checking for perl... /usr/contrib/bin/perl
checking for pgp... /usr/bin/pgp
checking for rm... /bin/rm
checking for rsh... /bin/rsh
checking for sed... /bin/sed
checking for ssh... /usr/bin/ssh
checking for tar... /bin/tar
checking for ld... /bin/ld
checking for nm... /bin/nm
checking for objcopy... /usr/bin/objcopy
checking for objdump... /usr/bin/objdump
checking for strip... /bin/strip
checking for /usr/local/lib in LIBS... yes
checking for /usr/local/include in INCPATH... no
checking for /usr/ucblib in LIBS... no
checking if you want experimental rpm-5.0 packages... no
checking for strcasecmp... yes
checking for setreuid... yes
checking for rand... yes
checking for getdomainname... yes
checking for socket... yes
checking for fchmod... yes
checking for writev in -lport... no
checking for dbopen... no
checking for dbopen in -ldb1... no
checking for dbopen in -ldb... no