在 ec2-linux AMI 上安装最新版本的 vsftpd

Installing latest version of vsftpd on an ec2-linux AMI

我使用 sudo yum install vsftpd 在我的 Amazon ec2-linux AMI 上安装了 vsftpd。但是,它安装版本 2.2.2.

如何安装 3.0.2 版?我从 https://security.appspot.com/vsftpd.html 下载了 tar 文件,将其解压缩,然后按照 INSTALL 文件中的说明进行操作。但是,当我尝试 运行 "make" 命令时,它失败了:

/usr/bin/ld: cannot find -lcap
collect2: error: ld returned 1 exit status
make: *** [vsftpd] Error 1

有什么问题?有没有其他方式获取最新版本?

答案在 tar 文件中的 FAQ 文件中:

Q) Help! vsftpd doesn't build, it fails with an error about being unable to find -lcap.

A) Install the libcap package and retry the build. Seems to affect Debian users a lot.

A) Install the libcap-devel. This certainly affects Fedora.

既然 Amazon Linux AMI 是基于 Red Hat 的,那么您可能需要 libcap-devel.