关于ununtu下用源代码安装wu-ftp的问题

安装本身很简单,因为需要使用yacc,先安装bison

apt-get install bison

安装完成

进入wu-ftpd-2.6.0目录,

./configure

然后make,报错 ftpcmd.y:1033.24-25invalid 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-27invalid 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.14warningtype clash on default action: <Number> != <>
ftpcmd.y:1068.9syntax errorunexpected "="
ftpcmd.y:1081.13warningtype clash on default action: <Number> != <>
ftpcmd.y:1082.9syntax errorunexpected "="
ftpcmd.y:1096.9syntax errorunexpected "="
ftpcmd.y:1180.9syntax errorunexpected "="
ftpcmd.y:1204.12warning: empty rule for typed nonterminal, and no action
ftpcmd
.y:1205.9syntax errorunexpected "="
make[1]: *** [ftpcmd.cError 1
make
[1]: Leaving directory /usr/local/src/wu-ftpd-2.6.0/src
make
: *** [allError 2

 

GG到解决办法,好像是bison版本太新了,解决办法原文如下:

On MonJul 122004 at 03:47:26PM -0400johnny 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.9syntax errorunexpected "="
ftpcmd.y:205.9syntax errorunexpected "="
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/installcannot 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条记录访客评论

学习一下

Post by 性感美女 on 2007, August 21, 9:05 AM 引用此文发表评论 #1


发表评论

评论内容 (必填):