Squid + ecap adapter + postgresql, how to?

Asked by Dajan Zvekic on 2011-03-15

Hi,

I need to use database in adapter to save some data about user. I want to use postgres, what do I need to do to set up interface to the database?
I mean, where I need to link postgres lib to squid or adapter?

Regards,
Dajan

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Dajan Zvekic
Solved:
2011-03-15
Last query:
2011-03-15
Last reply:
Dajan Zvekic (dajann) said : #1

I patched configure.ac in squid to link it with postgres lib.

Alex Rousskov (rousskov) said : #2

The correct solution is to add any required library to your adapter, not Squid.

For an example, see how the ClamAV adapter (available from www.e-cap.org) is linking with the ClamAV library.