CentOS:使用 MySQL 安装 vsftpd 时缺少依赖项

CentOS:使用 MySQL 安装 vsftpd 时缺少依赖项

我正在使用http://wiki.centos.org/HowTos/VirtualVsFtpd在 CentOS 上将虚拟用户安装到 vsftpd 中。安装到一半后,我遇到了缺少依赖项的问题。

rpm -Uvh pam_mysql-0.7-0.5.rc1.el5.kb.2.i386.rpm在终端返回:

error: Failed dependencies:
        libc.so.6 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libc.so.6(GLIBC_2.0) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libc.so.6(GLIBC_2.1) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libc.so.6(GLIBC_2.1.3) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libc.so.6(GLIBC_2.4) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libcrypt.so.1 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libcrypt.so.1(GLIBC_2.0) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libcrypto.so.6 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libdl.so.2 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libm.so.6 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libmysqlclient.so.15 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libmysqlclient.so.15(libmysqlclient_15) is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libnsl.so.1 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libssl.so.6 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386
        libz.so.1 is needed by pam_mysql-1:0.7-0.5.rc1.el5.kb.2.i386

在哪里可以找到这些缺失的依赖项?

答案1

虽然提到了执行此操作的“正确”方法,但实际上并未在 wiki 条目中描述。

  1. 安装EPEL 存储库
  2. yum install pam_mysql

答案2

你试过这个吗?(我假设你使用 CentOS 5.x)

yum localinstall pam_mysql-0.7-0.5.rc1.el5.kb.2.i386.rpm

另一种方法是以 root 用户身份执行:

rpm --import http://ftp.uni-bayreuth.de/linux/fedora-epel//RPM-GPG-KEY-EPEL-5

rpm -ivh http://epel.mirror.mendoza-conicet.gob.ar/5/i386/epel-release-5-4.noarch.rpm

yum install pam_mysql

高血压

相关内容