编译过程出现的问题及方法总结
(暂时只遇到以下两种报错)
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
保存退出再执行ÿ