在Ubuntu 7.10中安装pam

Ubuntu 7.10中安装pam_mysql经历笔记:

1.先将pam_mysql-0.7RC1.tar.gz拷到临时目录(文件在windows係统中,linux通过smbmount挂载到/media/cdrom);

cp /media/cdrom/pam_mysql-0.7RC1.tar.gz /tmp

2.进入tmp目録,併解压缩文件,生成目录pam_mysql-0.7RC1;

cd /tmp

tar zxvf pam_mysql-0.7RC1.tar.gz

3.进入目録pam_mysql-0.7RC1,併执行./configure;

cd pam_mysql-0.7RC1

./configure

4.提示出错;

......

configure: error: Cannot locate mysql client library. Please check your mysql installation.

5.经查资料得,是缺少libmysqlclient15-dev包的缘故,故安装之;

sudo apt-get install libmysqlclient15-dev

6.係统会自动解决包依赖问题,併安装zliblg-dev包,直接按回车安装;

7.再运行configure试一下:

8.此次仍然提示出错:

...

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

9.经查资料得,是缺少libpam0g-dev的缘故,故安装之;

sudo apt-get install libpam0g-dev

10.再configure试一下,这次没问题了。

......

configure: creating ./config.status

config.status: creating Makefile

config.status: creating pam_mysql.spec

config.status: creating config.h

config.status: executing default-1 commands

11.make

make

12.make install

sudo make install

......

Libraries have been installed in:

/usr/lib/security

......

13.此时会在/usr/lib/security/目録下生成文件pam_mysql.la和pam_mysql.so,pam_mysql.so正是我们想要的。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e7a183000954800590c71afa7cdced4f.html