Hi Thomas,

On Mon, Aug 28, 2006 at 06:43:26PM +0200, Thomas Stegbauer wrote:

> so first i tried to run the nfacctd from sarge (version 0.7.4)
> 
> but starting the process with;
> nfacctd -D -c src_host,dst_host -l 33333 -P pgsql -f /etc/pmacct/nfacctd.conf

In old releases, the use of commandline options and configuration file was
mutual exclusive. Things have changed at some stage (not just recently) and
your commandline string would work smoothly on any not-so-seasoned version.
Jamie, in case you are reading us: can we burn that one and select something
more recent? 

> question:
> 
> is it possible to run nfacctd and postgresql on different host's?

Of course yes.

> so i downloaded version 0.11.0rc2
> and tried to compile with
> configure --enable-pgsql
> but this stopps with:
> 
> checking whether to enable PostgreSQL support... yes
> checking default locations for libpq... found in /usr/lib
> checking default locations for libpq-fe.h... not found
> checking for libpq-fe.h... no
> configure: error: ERROR: missing PostgreSQL headers
> 
> is for this version a newer postgresql needed than in sarge included
> (version 7.4.7?)

No, pmacct should (even actually) be able to use PostgreSQL >= 7.2.x . Are
you using PostgreSQL package from Debian? Have you installed its development
package? If this is the case, Debian Sarge has its PostgreSQL headers in a
rather non-standard position, /usr/include/postgresql/ . You need to give
an help to the configure script:

./configure --enable-pgsql --with-pgsql-includes=/usr/include/postgresql/

and hopefully it will work fine.

Cheers,
Paolo

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

Reply via email to