解决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.
posted @ 2011-07-26 15:57  google4y  阅读(5946)  评论(0编辑  收藏  举报
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂