[collectd] compiling oracle plugin with oracle 11 instant client
Wilfried Goesgens
dothebart at citadel.org
Sat May 10 11:50:59 CEST 2014
Hi everyone,
I've tried to compile the oracle plugin with a more recent oracle client -
which as this commit suggests didn't exist at the time the configure script
was made:
commit a737ed7416823444715e5987261cbdda7cd571e7
Author: Florian Forster <octo at noris.net>
Date: Tue Oct 7 15:38:24 2008 +0200
Build system: Add a check for the OCI interface and add the oracle
plugin.
Now it seems, oracle 11 has a different path layout, and needs not just
libclntsh but also libnnz11
my quickhack was simply to sed this into the configure;
however, this part of the source suggests that there was a more smart way
with the $ORACLE_HOME/lib/ldflags:
if test "x$ORACLE_HOME" != "x"
then
with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public"
if test -e "$ORACLE_HOME/lib/ldflags"
then
with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"`
fi
#with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh"
with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh"
fi
whats the best way to move forward here? get the version with the link file
again? detect for libnz11?
Cheers,
Wilfried Goesgens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140510/6240ffe4/attachment.html>
More information about the collectd
mailing list