解决configure: error: Cannot find pam headers. Please check if your system is ready for pam module development

以下内容转载自http://sourceforge.net/projects/pam-mysql/forums/forum/17691/topic/1322966

When i want to configure pam_mysql-0.6 (./configure --with-pam=/usr/local/include/security --with-mysql=/usr/local/bin/mysql_config), I get an error message "configure: error: Cannot find pam headers. Please check if your system is ready for pam module development." :( What i do wrong? :( fBSD support PAM modules and in the past there was installed pam_mysql-0.5 from port .. but i must update it because older version doesn't support MySQL 4.1 .. Thank you.

-----------------------------------------------------------------------------------------------------------------------

2007-05-25 03:36:10 UTC
I have been searching all over the net for an answer to this question, and I finally found a way past the error, so I am sharing my experience in the hopes that it may help others.

My setup:

Fedora Core 5

pam modules located in /lib/security
pam services listed in /etc/pam.d/

The clue to my error was the end of the line:

"configure: error: Cannot find pam headers. Please check if your system is ready for pam module development."

I use yum for package management, so I:

yum install pam-devel.i386

since the above line was mentioning that my system may not be ready for pam module development

that allowed configure to complete successfully.

good luck to others.
原文地址:https://www.cnblogs.com/google4y/p/2117322.html