Hi everyone,

I am having some troubles installing pmacct with mongodb in a debian wheezy
machine (Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux).

As it is said four eyes see more than two, and I hope you give me some
hint:

*Basic packages:
apt-get install gcc
apt-get install linux-headers-$(uname -r)
apt-get install build-essential
apt-get install libpcap-dev pcaputils

*Last version from MongoDB:
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist
10gen' | tee /etc/apt/sources.list.d/mongodb.list
apt-get update
apt-get install mongodb-10gen

*The MongoDB C driver:
apt-get install libssl-dev
wget https://github.com/mongodb/mongo-c-driver/archive/v0.8.1.tar.gz
tar xzf v0.8.1.tar.gz
ls
cd mongo-c-driver-0.8.1/
make
make install

*Following packages found be trial and error:
apt-get install rabbitmq-server librabbitmq-dev
apt-get install libgeoip-dev geoip-database
apt-get install  libjansson4 libjansson-dev

/pmacct-1.5.0rc2
./configure --enable-mongodb --enable-threads --enable-geoip
--enable-rabbitmq --enable-jansson

mongodb_plugin.c: In function ‘MongoDB_cache_purge’:
mongodb_plugin.c:388:14: warning: assignment from incompatible pointer type
[enabled by default]
mongodb_plugin.c: In function ‘MongoDB_create_indexes’:
mongodb_plugin.c:739:4: warning: passing argument 6 of ‘mongo_create_index’
makes integer from pointer without a cast [enabled by default]
In file included from mongodb_plugin.h:29:0,
                 from mongodb_plugin.c:29:
/usr/local/include/mongo.h:703:18: note: expected ‘int’ but argument is of
type ‘void *’
mongodb_plugin.c:739:4: error: too few arguments to function
‘mongo_create_index’
In file included from mongodb_plugin.h:29:0,
                 from mongodb_plugin.c:29:
/usr/local/include/mongo.h:703:18: note: declared here
amqp_plugin.c: In function ‘amqp_cache_purge’:
amqp_plugin.c:330:3: error: unknown type name ‘amqp_socket_t’
amqp_plugin.c:358:15: warning: assignment makes pointer from integer
without a cast [enabled by default]
amqp_plugin.c:388:127: error: ‘amqp_empty_table’ undeclared (first use in
this function)
amqp_plugin.c:388:127: note: each undeclared identifier is reported only
once for each function it appears in
amqp_plugin.c:441:36: error: ‘AMQP_REPLY_SUCCESS’ undeclared (first use in
this function)
make[2]: *** [pmacctd] Error 1
make[2]: Leaving directory `/pmacct-1.5.0rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/pmacct-1.5.0rc2/src'
make: *** [all-recursive] Error 1

Could it be that pmacct is not compatible with mongodb-10gen and the
rabbitmq-server 2.8.4-1 ?

There exist a known combination pmacct + mongodb + rabbitmq under debian
that works?

Thanks in advance,

Daniel
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to