Giter Site home page Giter Site logo

bmy请求安装指导 about bmybbs HOT 8 CLOSED

Julyhan avatar Julyhan commented on July 24, 2024
bmy请求安装指导

from bmybbs.

Comments (8)

IronBlood avatar IronBlood commented on July 24, 2024

@miminus 请关注这个 issue

from bmybbs.

IronBlood avatar IronBlood commented on July 24, 2024

三年前我整理了一份文档 BMYBBS 简易安装方法,配合 EasyInstall.sh 脚本 使用。但是三年来引入了一些新的库,并且编辑过 Makefile,直接运行脚本 可能 会出一些小错误,可以补充贴过来。

大致的顺序是这样:

  1. 准备一个 Linux 虚拟机,推荐 Ubuntu 12.04 或者 Ubuntu 14.04。(主站使用的是 10.04)
  2. 简易安装方法中第一步补充安装 libxml2 这个库,Ubuntu 下对应的安装包名称此处不给出,作为额外考察的任务。svn 可以不装,git 必装。git 初始化请参照 git 命令的提示。
  3. 简易安装方法中第三部签出代码的 svn co 命令改为 git clone 命令,签出地址如有不清楚可追问。

编译如果出错,可以在下方贴出错误的信息。请尽量使用 GitHub Markdown 语法。

from bmybbs.

Julyhan avatar Julyhan commented on July 24, 2024

使用git clone命令error提示:
fatal: 版本库 'bbs.xjtu.edu.cn/svn/src_1.8' 不存在

from bmybbs.

IronBlood avatar IronBlood commented on July 24, 2024

@Julyhanhttps://github.com/bmybbs/bmybbs 页面右侧显示,可以使用 git、svn、https 三种协议克隆。可以参考此命令:

git clone https://github.com/bmybbs/bmybbs.git

from bmybbs.

Julyhan avatar Julyhan commented on July 24, 2024

执行以下代码时:

# /home/bbssrc/bmybbs/EasyInstall.sh

错误提示:

mv: 无法获取"/home/bbs/BOARDS" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"/home/bbs/badname" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"/home/bbs/bad_email" 的文件状态(stat): 没有那个文件或目录
/home/bbssrc/bmybbs/EasyInstall.sh: 第 51 行: cd: /home/bbs/0Announce/bbslist/: 没有那个文件或目录
ln: 无法创建符号链接"day": 文件已存在
ln: 无法创建符号链接"month": 文件已存在
ln: 无法创建符号链接"year": 文件已存在
ln: 无法创建符号链接"week": 文件已存在
make: *** 没有规则可以创建目标“all”。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
/home/bbssrc/bmybbs/EasyInstall.sh: 第 61 行: cd: local_utl: 没有那个文件或目录
crontab.bbs: 权限不够
/home/bbssrc/bmybbs/EasyInstall.sh: 行 65: /home/bbs/bin/newtop10: 没有那个文件或目录
/home/bbssrc/bmybbs/EasyInstall.sh: 行 72: /home/bbs/etc/sysconf.ini: 没有那个文件或目录

from bmybbs.

IronBlood avatar IronBlood commented on July 24, 2024

EasyInstall.sh 第44行的代码可能没有成功。

( cd bbshome ; tar cf - * ) | ( cd ${BBS_HOME} ; tar xf - )

在终端窗口中手动执行一下:

sudo (( cd bbshome ; tar cf - * ) | ( cd /home/bbs ; tar xf - ))

from bmybbs.

miminus avatar miminus commented on July 24, 2024

@IronBlood ,

This script will install the whole BBS to /home/bbs...
Press <Enter> to continue ...
Warning: /home/bbs already exists, overwrite whole bbs [N]?y
Installing new bbs to /home/bbs
Setup bbs directory tree .....
mkdir: cannot create directory `vote': File exists
mkdir: cannot create directory `tmp': File exists
mkdir: cannot create directory `reclog': File exists
mkdir: cannot create directory `bm': File exists
mkdir: cannot create directory `bin': File exists
mkdir: cannot create directory `traced': File exists
mkdir: cannot create directory `newtrace': File exists
mkdir: cannot create directory `/home/bbs/bbstmpfs': File exists
ln: creating symbolic link `/home/bbs/tmpfast/tmp': File exists
ln: creating symbolic link `/home/bbs/dynamic/dynamic': File exists
ln: creating symbolic link `day': File exists
ln: creating symbolic link `month': File exists
ln: creating symbolic link `year': File exists
ln: creating symbolic link `week': File exists
make -C ythtlib
make[1]: Entering directory `/home/bbssrc/bmybbs/ythtlib'
make[1]: Nothing to be done for `1st'.
make[1]: Leaving directory `/home/bbssrc/bmybbs/ythtlib'
make -C libythtbbs
make[1]: Entering directory `/home/bbssrc/bmybbs/libythtbbs'
gcc -Wall -mmmx -msse -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs `xml2-config --cflags` -L/usr/lib/mysql -lmysqlclient -o gensectree gensectree.o -L/home/bbs/bin -lytht 
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [gensectree] Error 1
make[1]: Leaving directory `/home/bbssrc/bmybbs/libythtbbs'
make: *** [all] Error 2
make -C ythtlib install
make[1]: Entering directory `/home/bbssrc/bmybbs/ythtlib'
mkdir -p /home/bbs/bin
cp libytht.a /home/bbs/bin
make[1]: Leaving directory `/home/bbssrc/bmybbs/ythtlib'
make -C libythtbbs install
make[1]: Entering directory `/home/bbssrc/bmybbs/libythtbbs'
gcc -Wall -mmmx -msse -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs `xml2-config --cflags` -L/usr/lib/mysql -lmysqlclient -o gensectree gensectree.o -L/home/bbs/bin -lytht 
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [gensectree] Error 1
make[1]: Leaving directory `/home/bbssrc/bmybbs/libythtbbs'
make: *** [install] Error 2
./EasyInstall.sh: line 65: /home/bbs/bin/newtop10: No such file or directory
Install is over....
Check the configuration in /home/bbs/etc/sysconf.ini
You can execute /home/bbs/bbs-start.sh to start your BBS now
Then login your BBS and create an account called SYSOP (case-sensitive)

from bmybbs.

IronBlood avatar IronBlood commented on July 24, 2024

@miminus 我给你的输出增加了 Markdown 语法标注。请看如下三行的信息:

/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [gensectree] Error 1

从输出信息来看,ythtlib 已经编译完成了,libythtbbs 出了错,建议不需要再调用 EasyInstall.sh 脚本,请转用如下的命令(以下都是假设在 /home/bbssrc/bmybbs 路径下):

编译 libythtbbs

cd libythtbbs
make
make install

编译 src

cd src
make proto
make depend
make
make install

编译 local_utl

cd local_utl
make
make install

编译 nju09(可选,请预先安装 apache2)

cd nju09
make proto
make depend
make

from bmybbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.