安装文档中的内容:
一: 建立bbs用户
使用下面的命令建立用户
$ su -
[root]# useradd -u9999 -g99 -d /home/bbs bbs
[root]# passwd bbs
添加bbs帐户,用户id是9999,组id是99,初始目录是/home/bbs ,目录可以按照需要改动。
……
三:配置编译参数
现在不需要用root权限,换成bbs用户吧。
[bbs]$ cd /home/src
[bbs]$ ./makedist.sh
[bbs]$ ./configure
Home directory of BBS --> [/home/bbs]
UID of BBS --> [9999]
GID of BBS --> [99]
USER of BBS --> [bbs]
The ID of your site --> [YTHT]
The name of your site --> [一塌糊涂 BBS]
The domain name of your site --> [ytht.net]
The ip address of your site --> [162.105.31.222]
The location of your site --> [北京大学]
Email of your bbs administrator --> [sysop@ytht.org]
Maximum number of users --> [250000]
Maximum number of boards --> [1000]
Maximum number of on-line users --> [30000]
Runtime Maximum number of on-line users --> [30000]
BBS listen port --> [23]
BBS listen port(BIG5) --> [2300]
MySQL DATABASE NAME --> [test]
MySQL USER NAME --> [test]
MySQL USER PASSWORD --> [test]
cgi install directory --> [/home/httpd/cgi-bin]
html install directory --> [/home/httpd/html/2001]
the initial mark string for webpage --> [Ytht.Net]
上面的信息,按照实际情况填写,如果不满意,可以重新运行 ./configure ,再次填写。
四:编译源代码并安装telnet服务
[bbs]$ make
这一步会自动编译安装 /home/src/ythtlib 和 /home/src/libythtbbs 下的内容,并编译
/home/src/src 和 /home/src/local_utl 下的内容。
到这就会出错了,错误信息:
--------------------------------------------------------
./bbstelnet.h:133: 错误:数组元素的类型不完全
./bbstelnet.h:141: 错误:数组元素的类型不完全
./bbstelnet.h:142: 错误:数组元素的类型不完全
./bbstelnet.h:143: 错误:数组元素的类型不完全
./bbstelnet.h:144: 错误:数组元素的类型不完全
./bbstelnet.h:145: 错误:数组元素的类型不完全
bbs.c: 在函数 ‘do_quote’ 中:
bbs.c:1513: 警告:传递参数 1 (属于 ‘void1’) 给指针时目标与指针有/无符号不一致
make[1]: *** [bbs-bbs.o] 错误 1
make[1]: Leaving directory `/root/ythtbbs-0.1/src'
make: *** [all] 错误 2
--------------------------------------------------------
其中类型不完全 在bbstelnet.h里是这有的
133 行extern struct bm currBM[]; /* BM of currently selected board */
141-145行
extern struct commands xyzlist[]; /* These are command lists for all the */
extern struct commands talklist[]; /* sub-menus */
extern struct commands maillist[];
extern struct commands dellist[];
extern struct commands maintlist[];
【 在 yuhuan (多拍拍自己,少拍拍别人) 的大作中提到: 】
: 把所有输入输出都贴出来
--
修改:yutianl FROM 218.104.71.*
FROM 218.104.71.*