Hello,

Thank you for your reply I had gone through again all the steps you had
mentioned but still not getting required result,
my logs are (with all the steps)

[root@localhost ~]# git clone git://github.com/mongodb/mongo-c-driver.git
Cloning into 'mongo-c-driver'...
remote: Counting objects: 2398, done.
remote: Compressing objects: 100% (800/800), done.
remote: Total 2398 (delta 1673), reused 2273 (delta 1563)
Receiving objects: 100% (2398/2398), 4.07 MiB | 194 KiB/s, done.
Resolving deltas: 100% (1673/1673), done.
[root@localhost ~]# ls
Desktop  mongo-c-driver
[root@localhost ~]# cd mongo-c-driver
[root@localhost mongo-c-driver]#  git checkout v0.3.1
Note: checking out 'v0.3.1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 9b4b232... minor: credits
[root@localhost mongo-c-driver]# git describe --tags
v0.3.1
[root@localhost mongo-c-driver]# scons
scons: Reading SConscript files ...
Checking for C type int64_t... no
Checking for C type int64_t... yes
Checking for C library json... no
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/md5.o -c -ansi -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT -O3
-DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/md5.c
gcc -o src/mongo.o -c -ansi -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT -O3
-DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/mongo.c
gcc -o src/gridfs.o -c -ansi -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT -O3
-DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/gridfs.c
gcc -o src/bson.o -c -ansi -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT -O3
-DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/bson.c
gcc -o src/numbers.o -c -ansi -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT -O3
-DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/numbers.c
ar rc libmongoc.a src/md5.o src/mongo.o src/gridfs.o src/bson.o
src/numbers.o
ranlib libmongoc.a
ar rc libbson.a src/md5.o src/bson.o src/numbers.o
ranlib libbson.a
gcc -o src/md5.os -c -ansi -fPIC -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT
-O3 -DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/md5.c
gcc -o src/mongo.os -c -ansi -fPIC -pedantic -Wall -ggdb
-DMONGO_HAVE_STDINT -O3 -DMONGO_HAVE_STDINT -I/opt/local/include -Isrc
src/mongo.c
gcc -o src/gridfs.os -c -ansi -fPIC -pedantic -Wall -ggdb
-DMONGO_HAVE_STDINT -O3 -DMONGO_HAVE_STDINT -I/opt/local/include -Isrc
src/gridfs.c
gcc -o src/bson.os -c -ansi -fPIC -pedantic -Wall -ggdb -DMONGO_HAVE_STDINT
-O3 -DMONGO_HAVE_STDINT -I/opt/local/include -Isrc src/bson.c
gcc -o src/numbers.os -c -ansi -fPIC -pedantic -Wall -ggdb
-DMONGO_HAVE_STDINT -O3 -DMONGO_HAVE_STDINT -I/opt/local/include -Isrc
src/numbers.c
gcc -o libmongoc.so -shared src/md5.os src/mongo.os src/gridfs.os
src/bson.os src/numbers.os -L/opt/local/lib
gcc -o libbson.so -shared src/md5.os src/bson.os src/numbers.os
-L/opt/local/lib
scons: done building targets.
[root@localhost mongo-c-driver]# md5sum /usr/local/include/mongo/bson.h
md5sum: /usr/local/include/mongo/bson.h: No such file or directory
[root@localhost mongo-c-driver]#  pushd mongo-c-driver
bash: pushd: mongo-c-driver: No such file or directory
[root@localhost mongo-c-driver]# cd ..
[root@localhost ~]#  pushd mongo-c-driver
~/mongo-c-driver ~
[root@localhost mongo-c-driver]# mkdir -p
/var/tmp/root/usr/local/include/mongo
[root@localhost mongo-c-driver]# mkdir -p /var/tmp/root/usr/local/lib
[root@localhost mongo-c-driver]# cp libmongoc.*
/var/tmp/root/usr/local/lib/.
[root@localhost mongo-c-driver]# cp src/*.h
/var/tmp/root/usr/local/include/mongo/.
[root@localhost mongo-c-driver]# popd
~
[root@localhost ~]#  git clone https://github.com/romanbsd/kannel-mongodb
Cloning into 'kannel-mongodb'...
remote: Counting objects: 30662, done.
remote: Compressing objects: 100% (3964/3964), done.
remote: Total 30662 (delta 26723), reused 30595 (delta 26656)
Receiving objects: 100% (30662/30662), 8.77 MiB | 75 KiB/s, done.
Resolving deltas: 100% (26723/26723), done.
[root@localhost ~]# pushd kannel-mongodb
~/kannel-mongodb ~
[root@localhost kannel-mongodb]#  ./bootstrap.sh
[root@localhost kannel-mongodb]# ./configure --with-mongodb
checking git checkout revision... 885aaaad

Configuring for Kannel gateway version git-885aaaad ...

Running system checks ...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
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 ar... ar
checking for convert... no
checking for perl... /usr/bin/perl
checking for inline... inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking for log in -lm... yes
checking for accept in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking for inet_ntop in -lresolv... yes
checking for inet_ntop in -lbind... no
checking for pthread_exit in -lpthread... yes
checking for ANSI C header files... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for net/if.h... yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t
cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t
*outbytesleft);
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for getopt_long... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for backtrace... yes
checking for srandom... yes
checking for initgroups... yes
checking for strtoll... yes
checking for strtoq... yes
checking for getopt... yes
checking for gethostbyname_r... yes
checking for which type of gethostbyname_r... 6
checking for socklen_t in <sys/socket.h>... yes
checking for getopt in <stdio.h>... no
checking for getopt in <unistd.h>... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regcomp... yes

Checking for POSIX threads support ...
checking for working pthreads... yes
checking for pthread_spinlock support... yes
checking for pthread_rwlock support... yes
checking for sem_init in -lrt... yes
checking for semaphore support... yes

Checking for libxml2 support ...
checking for xml2-config... /usr/bin/xml2-config
checking libxml version... 2.6.26

Configuring for PCRE support ...
checking whether to compile with PCRE support... disabled

Configuring DocBook support ...
checking for jade... jade
checking for jadetex... jadetex
checking for pdfjadetex... pdfjadetex
checking for dvips... dvips
checking for fig2dev... fig2dev
checking for convert... no
checking for
/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl... no
checking for /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... no
checking for
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/html/docbook.dsl... yes
checking for
/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl... no
checking for /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl...
no
checking for
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/docbook.dsl... yes
Not building documentation.

Configuring parameters ...
checking which malloc to use... native malloc
enabling local time
enabling cookies
enabling HTTP/1.1 keep-alive

Configuring OpenSSL support ...
checking whether to compile with SSL support... trying /usr/lib64
/usr/include/openssl
checking for openssl... /usr/bin/openssl
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
checking for SSL_connect in -lssl... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/hmac.h usability... yes
checking openssl/hmac.h presence... yes
checking for openssl/hmac.h... yes
checking whether the OpenSSL library is multithread-enabled... yes
checking whether to compile with SSL support... yes

Configuring DB support ...
checking whether to compile with MySQL support... disabled
checking whether to compile with LibSDB support... disabled
checking whether to compile with SQLite2 support... disabled
checking whether to compile with SQLite3 support... disabled
checking whether to compile with Oracle support... disabled
checking whether to compile with PostgresSQL support... disabled
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


i was unable to complete the checks for mongodb c driver please check and
reply,

I am waiting.

On Tue, Apr 3, 2012 at 9:38 AM, Benjamin Lee <[email protected]>wrote:

> 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.
>



-- 
*Thanks & Regards
Garima Tiwari
HostNsoft
(Walkover Web Solutions Ltd)
*

Reply via email to