pam_mysql编译安装(Ubuntu10.10)
下载pam_mysql-0.7RC1.tar.gz
pam_mysql依赖的库文件
libmysqlclient-dev
libpam0g-dev
apt-get install libmysqlclient-dev
apt-get install libpam0g-dev
apt-get install libpam0g-dev
安装libmysqlclient-dev时会自动安装
zlib1g-dev
./configure(网上有人这样配置参数的./configure --with-openssl=openssl路径 --with-mysql=mysql路径)
make
make install
安装好后会在/usr/lib/security/目录下生成文件pam_mysql.la和pam_mysql.so,pam_mysql.so正是我们要的。