Thanks to boredness, I tried to finish installing pam_mysql which was failed before. Here’s the tricks:
- Symlink pam_appl.h and pam_modules.h from /usr/include/security to /usr/include
- Use Sun C Compiler. GCC won’t work – don’t bother trying
- make will most likely fail because -lCrun doesn’t exist or something. Temporary workaround is by removing -lCrun from the command in Makefile (open Makefile, find and remove -lCrun)
Seems to be working here.
Did you use any options with the configure script? My tries of running the configure script end with:
configure: error: Cannot find pam headers. Please check if your system is ready for pam module development.
even though it’s found pam_appl.h and pam_modules.h.
I forgot. Check the log to see where it went wrong.
Hi! Here is worked configure with CFLAGS
./configure
CFLAGS=”-I/usr/include/sasl
-I/usr/include/security”
openssl_CFLAGS=”-I/usr/include/openssl”
–prefix=/usr
–bindir=/usr/bin
–sbindir=/usr/sbin
–libexecdir=/usr/libexec
–sysconfdir=/etc/pam_mysql
–localstatedir=/var
–libdir=/usr/lib64
–includedir=/usr/include/pam_mysql
–datadir=/usr/share
–infodir=/usr/share/info
–mandir=/usr/share/man
–with-mysql=/usr/bin/mysql_config
–with-pam-mods-dir=/lib64/security
–with-cyrus-sasl
–with-openssl