【 在 linton@bbs.gxnu.edu.cn-SPAM.no (雨·雪·风·霜) 的大作中提到: 】
: 标 题: KBS 在 ubuntu 8.04 下的安装方法(转贴)
: 发信站: 烟雨漓江BBS站 (Sun Jun 8 15:28:04 2008)
: 转信站: NEWSMTH!news.newsmth.net!news.byr.edu.cn!news.shec6.edu.cn!GXNUBBS
:
: 发信人: pig2532 (猪猪猪), 信区: BBSMan_Dev
: 标 题: KBS 在 ubuntu 8.04 下的安装方法
: 发信站: 水木社区 (Thu May 8 14:51:24 2008), 站内
:
: 以前我写的kbs在ubuntu上的安装方法有点old了,现在新写一个。
:
操作系统: ubuntu 7.10
KBS BBS: kbs svn上最新的源代码
: 编译安装kbs。
: # cd /home/bbs/src/kbs_bbs
: # ./configure --prefix=/home/bbs --enable-site=solee --with-php --with-mysql --enable-ssh --enable-ssl --with-openssl=/usr --with-libesmtp --enable-innbbsd CFLAGS="-O3 -g"
: # make
之前都正常,这一步骤时,有错误
bbs@ubuntu:~/kbs_bbs$ make
make -s all-recursive
Making all in libsystem
Making all in libBBS
Making all in rzsz
Making all in src
Making all in daemon
Making all in local_utl
[Compiling scored.c]
scored.c: In function ‘operate_score’:
scored.c:75: error: ‘struct userec’ has no member named ‘score_user’
scored.c:75: error: ‘struct userec’ has no member named ‘score_manager’
scored.c:95: error: ‘struct userec’ has no member named ‘score_user’
scored.c:97: error: ‘struct userec’ has no member named ‘score_manager’
make[2]: *** [scored.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
问可能是什么问题?
: # make install
:
: 如果是新建的bbs站点,还需要安装默认的站点文件。
: # make install-home
:
: 给sshbbsd生成钥匙。
: # cd /home/bbs/etc
: # touch sshd_config
: # ssh-keygen -t rsa1 -f ssh_host_key
:
: 从php源码目录复制来一个php的配置文件,并编辑之。
: # cd /usr/local/lib
: # cp /home/bbs/src/php-5.2.6/php.ini-dist php.ini
: # vim php.ini
:
: 修改extension_dir一行为:
: extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
: 然后加入下面一行:
: extension=libphpbbslib.so
:
: 把www2符号连接到apache的网页目录来。
: # cd /home/bbs/www/
: # mv htdocs htdocs.default
: # ln -s ../src/www2 htdocs
:
: 因为之前很多操作需要用root执行,可能bbs的很多文件的owner和group不对,所以一并搞掉。
: # chown -R bbs:bbs /home/bbs
:
: 然后就可以启动bbs了。
: # cd /home/bbs/bin
: # ./miscd daemon
: # ./bbslogd
: # ./bbsd -p 23
: # ./sshbbsd -p 22
: # cd ../www/bin
: # ./apachectl start
:
: 停止bbs的话按如下操作:
: # cd /home/bbs/www/bin
: # ./apachectl stop
: # cd ../../bin
: # killall sshbbsd
: # killall bbsd
: # killall bbslogd
: # ./miscd flush
: # killall miscd
--
FROM 125.118.50.*