您的位置:首页 > 编程语言 > PHP开发

vsftpd服务部署

2020-01-15 09:49 274 查看

编译过程出现的问题及方法总结
(暂时只遇到以下两种报错)
1、在 /vsftpd-2.0.5#make;make install 编译时报错:

sysdeputil.o: In function

vsf_sysdep_check_auth': sysdeputil.c:(.text+0x10f): undefined reference to
crypt’
sysdeputil.c:(.text+0x136): undefined reference to `crypt’
collect2: error: ld returned 1 exit status
make: *** [vsftpd] Error 1
if [ -x /usr/local/sbin ]; then
install -m 755 vsftpd /usr/local/sbin/vsftpd;
else
install -m 755 vsftpd /usr/sbin/vsftpd; fi
install: cannot stat ‘vsftpd’: No such file or directory
make: *** [install] Error 1
[root@localhost vsftpd-2.0.5]#
[root@localhost vsftpd-2.0.5]#

!!!解决方法:

修改Makefile文件;
vi Makefile
找到(通常在第7行)
LIBS =

./vsf_findlibs.sh
这一行

末尾增加 -lcrypt 变成

LIBS =

./vsf_findlibs.sh
-lcrypt

保存退出再执行,会编译成功;
即:

2、在 /vsftpd-2.0.5#make;make install 编译时报错:

!!!解决方法:

打补丁,在CSDN上下载名为 attachment.bin 的补丁;
上传到vsftpd-2.0.5 目录下;
在该目录
敲命令:
patch sysdeputil.c attachment.bin

打完补丁,重新执行:

即可编译成功;

  • 点赞
  • 收藏
  • 分享
  • 文章举报
SEQ_tt 发布了6 篇原创文章 · 获赞 0 · 访问量 245 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: