Squid + ecap adapter + postgresql, how to?

Asked by Dajan Zvekic

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:
Last query:
Last reply:
Revision history for this message
Dajan Zvekic (dajann) said :
#1

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

Revision history for this message
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.