Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

For the life of me I can't find the configure flags for the Nagios Plugins. check_pgsql isn't compiling because it says it can't find the postgresql libraries, but I know exactly where they are on my server.

share|improve this question
    
Which distro are you running? Post the full messages when compiling check_pgsql. –  quanta Nov 16 '11 at 2:27
add comment

1 Answer

Do you have the development libraries installed, not just the runtime libraries?

On a RHEL/CentOS box, I see:

postgresql-devel.i386 : PostgreSQL development header files and libraries.
postgresql-libs.i386 : The shared libraries required for any PostgreSQL clients.

To build your own clients, you will most likely need to have postgresql-devel installed. To run it, you'll need the postgresql-libs package. Other Linuxes will have their own naming conventions if they split the runtime libraries from the development libraries, assuming you're using Linux.

share|improve this answer
    
+1 when you compile something that depends on another library you often need the source for that library too. if all fails you should be able to download the source of postgresql and set a /.configure flag to set the directory it looks in for the source files. –  Silverfire Nov 16 '11 at 2:14
    
I compiled Postgresql 9 from source, and I know where the libraries are. For some reason when I go to compile the Nagios Plugins, it doesn't find them. Like I said. I can't find a configure flag to tell it where to find them. –  rkalajian Nov 16 '11 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.