Experience installing pam_mysql in Ubuntu7.10

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.