安装本身很简单,因为需要使用yacc,先安装bison
apt-get install bison
安装完成
进入wu-ftpd-2.6.0目录,
./configure
然后make,报错
ftpcmd.y:1033.24-25: invalid $ value
ftpcmd.y:1033.24-25: $3 of type_code' has no declared type
ftpcmd.y:1043.24-25: invalid $ value
ftpcmd.y:1043.24-25: $3 of type_code' has no declared type
ftpcmd.y:1057.26-27: invalid $ value
ftpcmd.y:1057.26-27: $3 of type_code' has no declared type
ftpcmd.y:1063.26-27: invalid $ value
ftpcmd.y:1063.26-27: $2 of type_code' has no declared type
ftpcmd.y:1067.14: warning: type clash on default action: <Number> != <>
ftpcmd.y:1068.9: syntax error, unexpected "="
ftpcmd.y:1081.13: warning: type clash on default action: <Number> != <>
ftpcmd.y:1082.9: syntax error, unexpected "="
ftpcmd.y:1096.9: syntax error, unexpected "="
ftpcmd.y:1180.9: syntax error, unexpected "="
ftpcmd.y:1204.12: warning: empty rule for typed nonterminal, and no action
ftpcmd.y:1205.9: syntax error, unexpected "="
make[1]: *** [ftpcmd.c] Error 1
make[1]: Leaving directory /usr/local/src/wu-ftpd-2.6.0/src
make: *** [all] Error 2
GG到解决办法,好像是bison版本太新了,解决办法原文如下:
On Mon, Jul 12, 2004 at 03:47:26PM -0400, johnny wrote:
> Hi list,
>
> I'd like to build wu-ftpd-2.6.0 from tarball.
>
> This package is somewhat out of date, (5 years old), but I do have a
> specific reason for building this specific version.
>
> I've attached make output to the end of this message. Configure doesn't
> show any errors. Make however, throws a bison error:
>
> make[1]: Entering directory /usr/local/src/wu-ftpd-2.6.0/src'
> bison -y ftpcmd.y
> ftpcmd.y:197.9: syntax error, unexpected "="
> ftpcmd.y:205.9: syntax error, unexpected "="
> ftpcmd.y:228.17-18: $2 of cmd' has no declared type
Your bison version is to new :)
You need to enclose (all) the equal sign(s) in single quotes.
This should do it (in bash):
cp ftpcmd.y ftpcmd.y.orig
sed -e "s/=[ "$'t'"][ "$'t'"]*{/'= {/" ftpcmd.y.orig > ftpcmd.y
Regards,
Claudio.
PS: your question was off topic on this ML.
修改完成后,make通过
make install
报错
/usr/bin/install: cannot create regular file `/usr/man/man8/ftpd.8': No such file or directory
缺少目录
在/usr/man下建立目录man8
OK,接下去几个类似错误,一样搞定
安装netkit-inetd
apt-get install netkit-inetd
完成后修改 /etc/inetd.conf
加入以下一行
ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
OK,收工,安装完成,test overflow ing
18.50ps: 貌似还是启动不成功,研究ing。
#1