Garima, As Guillaume mentioned, please check that you have installed the @mongo-c-driver@ correctly as Roman Shterenzon's code expects.
<pre> git clone git://github.com/mongodb/mongo-c-driver.git && \ ( cd mongo-c-driver && \ git checkout v0.3.1 && \ git describe --tags && \ scons ) # run this to check your mongo-c-driver installation md5sum /usr/local/include/mongo/bson.h md5sum /usr/local/include/mongo/mongo_except.h md5sum /usr/local/include/mongo/platform_hacks.h md5sum /usr/local/include/mongo/gridfs.h md5sum /usr/local/include/mongo/md5.h md5sum /usr/local/include/mongo/mongo.h md5sum /usr/local/lib/libmongoc.so </pre> I tried a simple @configure.in@ change to Roman's code with commit @885aaaada71323a75ed5bfbcae393bcc02543e0f@. See diff below. <pre> pushd mongo-c-driver mkdir -p /var/tmp/root/usr/local/include/mongo mkdir -p /var/tmp/root/usr/local/lib cp libmongoc.* /var/tmp/root/usr/local/lib/. cp src/*.h /var/tmp/root/usr/local/include/mongo/. popd git clone https://github.com/romanbsd/kannel-mongodb pushd kannel-mongodb ./bootstrap.sh && ./configure --with-mysql && make -j4 clean all popd </pre> diff --git a/configure.in b/configure.in <pre> index 4b2d00a..eac361d 100644 --- a/configure.in +++ b/configure.in @@ -1233,8 +1233,13 @@ if test "$withval" != yes; then AC_MSG_RESULT(disabled) else AC_MSG_RESULT(searching) + + CFLAGS="$CFLAGS -I/var/tmp/root/usr/local/include" + AC_CHECK_HEADERS(mongo/mongo.h) LIBS="$LIBS -L/usr/local/lib" + LIBS="$LIBS -L/var/tmp/root/usr/local/lib" + AC_CHECK_LIB(mongoc, mongo_connect, [LIBS="$LIBS -lmongoc" AC_DEFINE(HAVE_MONGODB) </pre> Hope this helps. On Monday, 2012-04-02 at 06:33:38 PM, Garima Tiwari scribbled: > I tried to paste mongo folder which is containing all the files required > for that in kannel package even.and with in mongodb c driver all files are > present i dont know why it is not getting it even i tried with complete > path with the changes in configuration file but it is still not working. > > > > On Mon, Apr 2, 2012 at 12:48 AM, Guillaume Cottenceau <[email protected]> wrote: > > > Garima Tiwari <garima 'at' hostnsoft.com> writes: > > > > > Hello, > > > > > > I am trying to configure kannel with mongo db but it is not working my > > log is > > > seems like.. > > > > > > ./configure --with-mongodb > > > > [...] > > > > > checking whether to compile with MongoDB support... searching > > > checking mongo/mongo.h usability... no > > > checking mongo/mongo.h presence... no > > > checking for mongo/mongo.h... no > > > checking for mongo_connect in -lmongoc... no > > > configure: error: Unable to find MongoDB client libraries > > > > > > > > > > > > please tell me what to do i had installed mongo db c driver... > > > > It tells you mongo/mongo.h is absent. Are you sure it is not? > > > > PS: PLEASE REPLY TO THIS LIST NOT ME DIRECTLY > > > > -- > > Guillaume Cottenceau > > > > > > -- > *Thanks & Regards > Garima Tiwari > Hostnsoft, Indore(MP) > * -- Benjamin Lee mailto:[email protected] Melbourne, Australia http://www.realthought.net Linux / BSD / GNU tel:+61 4 16 BEN LEE Open Source "invest in your world" __________________________________________________________________________ We have only two things to worry about: That things will never get back to normal, and that they already have.
