Notes on installing pam_mysql in Ubuntu7.10: 1.copy pam_mysql-0.7rc1.tar.gz to a temporary directory (files are mounted to/media/cdrom through smbmount in windows operating system ); cp/media/cdrom/pam_mysql-0.7RC1.tar.gz/tmp2. enter the tmp object folder, unzip the file, and generate the directory pam_mysql-0.7RC1;
Notes on installing pam_mysql in Ubuntu 7.10:
1. Copy pam_mysql-0.7rc1.tar.gz to the temporary directory (files are mounted to/media/cdrom through smbmount in the windows operating system );
Cp, media, cdrom, pam_mysql-0.7RC1.tar.gz, tmp
2. Enter the tmp object folder, unzip the file, and generate the directory pam_mysql-0.7RC1;
Cd/tmp
Tar zxvf pam_mysql-0.7RC1.tar.gz
3. Go to the contents pam_mysql-0.7RC1, and then execute./configure;
Cd pam_mysql-0.7RC1
./Configure
4. An error is prompted;
......
Configure: error: Cannot locate mysql client library. Please check your mysql installation.
5. Check the information, is the lack of libmysqlclient15-dev package, so the installation;
Sudo apt-get install libmysqlclient15-dev
6. The Zookeeper system automatically solves the package dependency problem. When zookeeper installs the zliblg-dev package, press enter to directly install the package;
7. Run configure and try again:
8. An error is still prompted this time:
...
Configure: error: Cannot find pam headers. Please check if your system is ready for pam module development.
9. Check the information, is the lack of libpam0g-dev, so the installation;
Sudo apt-get install libpam0g-dev
10. Try configure again. It's okay this time.
......
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. The pam_mysql.la and pam_mysql.so files will be generated under/usr/lib/security/contents. pam_mysql.so is exactly what we want.