[Modules] mod_dbi_pool and libdbi coudn't found

Marcel Hartmann mail at marcel-hartmann.com
Thu Jun 9 05:52:37 EST 2005


Hello List,

i have a Problem with libdbi and mod_dbi_pool.

The module mod_log_sql is compiled in correctly and i use it now.

But if i compile mod_dbi_pool on my CentOS4 System, i get the following
errors:

checking for dbi Includes in yes/include... no
configure: error: *** libdbi not found!

so i installed this:
$yum install libdbi libdbi-devel

after this i have in /usr/include/dbi/ this: dbd.h  dbi-dev.h  dbi.h

Now i compile the mod_dbi_pool against this dbi like this:

$./configure --with-apxs=/usr/sbin/apxs --with-dbi=/usr

the configure script adds the path /include/dbi/... to the given prefix.
And now he find the libdbi but says error again!

checking for dbi Includes in /usr/include... found it! Use --with-dbi to
specify another.
checking for libdbi library in /usr/lib... yes
checking for dbi_version in -ldbi... no
configure: error: *** libdbi not found!

He says he found it, and then he told me to specify another libdbi.
In the configure script it looks like this:

[snip]
...
# Check whether --with-dbi or --without-dbi was given.
if test "${with_dbi+set}" = set; then
  withval="$with_dbi"
  dbi_path="$withval"
else
  :
fi;

# Determine dbi include directory.
if test -z $dbi_path; then
    test_paths="/usr/include"
else
    test_paths="${dbi_path}/include"
fi

for x in $test_paths ; do
    echo "$as_me:$LINENO: checking for dbi Includes in ${x}" >&5
echo $ECHO_N "checking for dbi Includes in ${x}... $ECHO_C" >&6
    if test -f ${x}/dbi/dbi.h; then
        DBI_CFLAGS="-I$x"
        echo "$as_me:$LINENO: result: found it! Use --with-dbi to specify
another." >&5
echo "${ECHO_T}found it! Use --with-dbi to specify another." >&6
        break
    else
        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
done

if test -z "$DBI_CFLAGS"; then
  { { echo "$as_me:$LINENO: error: *** libdbi not found!" >&5
echo "$as_me: error: *** libdbi not found!" >&2;}
   { (exit 1); exit 1; }; }
fi

# Determine libdbi lib directory
if test -z $dbi_path; then
    test_paths="/usr/lib /usr/local/lib"
else
    test_paths="${dbi_path}/lib"
fi

for x in $test_paths ; do
    echo "$as_me:$LINENO: checking for libdbi library in ${x}" >&5
echo $ECHO_N "checking for libdbi library in ${x}... $ECHO_C" >&6
    if test -f ${x}/libdbi.so; then
        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$DBI_CFLAGS $CFLAGS"
        LDFLAGS="-L$x $LDFLAGS"
        echo "$as_me:$LINENO: checking for dbi_version in -ldbi" >&5
echo $ECHO_N "checking for dbi_version in -ldbi... $ECHO_C" >&6
if test "${ac_cv_lib_dbi_dbi_version+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbi  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
...
[/snip]

Has anyone a idea to solve my problem?
My libdbi is version -> libdbi-0.6.5-10.RHEL4.1

Is this the wrong version for this modules? 

Greets from Germany
  Marcel Hartmann




More information about the Modules mailing list