BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #2284同步于 1 周前
BBSMan_Dev机器人发帖

安装ytht时make的问题

yutianl.
1 周前镜像同步14 回复
转信站: BYR!news.happynet.org!news.cn-bbs.org!news.newsmth.net!NEWSMTH 从ytht上下载的ythtbbs-0.1.tar.bz2 tar xjvf ythtbbs-0.1.tar.bz2后 cd ythtbbs-0.1 ./configure #这里应该加什么参数吧 make 出现的错误, -------------------------------------------------------- ./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[]; 不知该如何改
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
pipiluxi.机器人#1 · 1 周前
转信站: BYR!news.happynet.org!whnet.3322.org!news.neu.edu.cn!news.newsmth.net!N uid,gid的问题? 【 在 yutianl (yutianl) 的大作中提到: 】 : 从ytht上下载的ythtbbs-0.1.tar.bz2 : tar xjvf ythtbbs-0.1.tar.bz2后 : cd ythtbbs-0.1 : ...................
yutianl.机器人#2 · 1 周前
转信站: BYR!news.happynet.org!news.newsmth.net!NEWSMTH 【 在 pipiluxi (皮皮鲁西|2006->想去德国看世界杯) 的大作中提到: 】 : uid,gid的问题? ~~~~~~~~~~~~~~~~~~有什么要求吗?我都设的是501。 500也试过,还是出错
roctall.机器人#3 · 1 周前
转信站: BYR!news.happynet.org!news.uestc.edu.cn!news.newsmth.net!NEWSMTH 设置成什么,要看你系统内/etc/passwd文件里面bbs那一行写的什么 执行 grep "^bbs:" /etc/passwd 看看 【 在 yutianl (yutianl) 的大作中提到: 】 : ~~~~~~~~~~~~~~~~~~有什么要求吗?我都设的是501。 500也试过,还是出错
pipiluxi.机器人#4 · 1 周前
转信站: BYR!news.happynet.org!bbsnews.sdu.edu.cn!news.neu.edu.cn!news.newsmth.n 在kbs中有一条 fb2k-v2.h中的 bbsuid & bbsgid要和本地系统bbs的 & gid一致 【 在 yutianl (yutianl) 的大作中提到: 】 : 当然是501了,我在建用户的时候就设成501的。 : 现在的问题是那段错误提示是不是就是uid,gid的原因?
yuhuan.机器人#5 · 1 周前
转信站: BYR!news.happynet.org!news.uestc.edu.cn!news.newsmth.net!NEWSMTH 把所有输入输出都贴出来 【 在 yutianl (yutianl) 的大作中提到: 】 : 当然是501了,我在建用户的时候就设成501的。 : 现在的问题是那段错误提示是不是就是uid,gid的原因?
yutianl.机器人#6 · 1 周前
转信站: BYR!news.happynet.org!news.neu.edu.cn!news.newsmth.net!NEWSMTH 当然是501了,我在建用户的时候就设成501的。 现在的问题是那段错误提示是不是就是uid,gid的原因? 【 在 roctall (蛇王阿奔) 的大作中提到: 】 : 设置成什么,要看你系统内/etc/passwd文件里面bbs那一行写的什么 : 执行 grep "^bbs:" /etc/passwd 看看
yutianl.机器人#7 · 1 周前
转信站: BYR!news.happynet.org!news.newsmth.net!NEWSMTH 安装文档中的内容: 一: 建立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 (多拍拍自己,少拍拍别人) 的大作中提到: 】 : 把所有输入输出都贴出来
yuhuan.机器人#8 · 1 周前
转信站: BYR!news.happynet.org!news.uestc.edu.cn!whnet.3322.org!news.newsmth.net ./configure 有一大堆输出呢啊.. 【 在 yutianl (yutianl) 的大作中提到: 】 : 安装文档中的内容: : 一: 建立bbs用户 : 使用下面的命令建立用户 : ...................
yutianl.机器人#9 · 1 周前
转信站: BYR!news.happynet.org!news.uestc.edu.cn!news.newsmth.net!NEWSMTH checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes ........................... ... testing C Compiler ... ........................... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... (cached) gawk checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for bison... no checking for byacc... no checking for ranlib... ranlib ........................... ... testing system type ... ........................... flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow Detected CPU: athlon checking for forkpty... no checking for forkpty in -lutil... yes checking for mallopt... yes checking for flock... yes checking for strcasestr... yes checking for strnlen... yes checking for basename... yes checking for nftw... yes checking for versionsort... yes checking for memmem... yes checking for setproctitle... no checking for open_memstream... yes checking "for mysql"... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking for libiconv_open in -liconv... no checking for ght_create in -lghthash... yes checking for FCGI_Accept in -lfcgi... no .................................. Please fill data for your BBS .................................. USER of BBS --> [bbs] tbbs Home directory of BBS --> [/home/bbs] /home/tangl/bbs The ID of your site --> [MY_BBS] 7528 The name of your site --> [我的 BBS] my7528 The domain name of your site --> [localhost] The ip address of your site --> [127.0.0.1] 210.45.70.136 The location of your site --> [互联网] Email of your bbs administrator --> [root@localhost] Maximum number of users --> [20000] Maximum number of boards --> [256] Maximum number of on-line users --> [1024] Runtime Maximum number of on-line users --> [512] BBS listen port --> [23] BBS listen port(BIG5) --> [2300] cgi install directory --> [/usr/lib/cgi-bin] /var/www/cgi-bin html install directory --> [/var/www/] the initial mark string for webpage --> [HT] 75 ........................................ configure: creating ./config.status config.status: creating include/bbsconfig.h config.status: creating Makefile config.status: creating Makefile.Base config.status: creating ythtlib/Makefile config.status: creating libythtbbs/Makefile config.status: creating src/Makefile config.status: creating local_utl/Makefile config.status: creating local_utl/usesql.h config.status: creating nju09/Makefile config.status: creating atthttpd/Makefile config.status: creating Installbbs.sh config.status: creating mail2bbs/bbsmail_wrap config.status: creating mail2bbs/bbsmail_wrap2 config.status: creating yftpd/ftpmotd config.status: creating include/Makefile config.status: creating include/sys_config.h config.status: include/sys_config.h is unchanged config.status: executing depfiles commands config.status: executing default commands ........................................................................ You may review the Makefile now. Then, type 'make' to build your system. ........................................................................ 【 在 yuhuan (多拍拍自己,少拍拍别人) 的大作中提到: 】 : ./configure 有一大堆输出呢啊..