现在的位置: 首页 > 综合 > 正文

单物理机安装OceanBase

2013年06月26日 ⁄ 综合 ⁄ 共 1622字 ⁄ 字号 评论关闭

http://code.taobao.org/p/OceanBase/wiki/quickstart/

1. 配置过程中到make j2步会报错:

echo -n 'const char* svn_version() { const char* SVN_Version = "' > svn_version.cpp
make: *** No rule to make target `svn_dist_version', needed by `all'.  Stop.
make: *** Waiting for unfinished jobs....
cat ./svn_dist_version >> ./svn_version.cpp
cat: ./svn_dist_version: No such file or directory
make: *** [svn_version.cpp] Error 1

解决方法:直接在oceanbase目录下touch svn_dist_version这个文件

 

2.执行./build.sh init,出现问题: + aclocal + libtoolize --force --copy Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. + autoconf --force + automake --foreign --copy --add-missing src/common/compress/Makefile.am:14: variable `libcomp_a_LDFLAGS' is defined
but no program or src/common/compress/Makefile.am:14: library has `libcomp_a' as canonic name (possible typo) 运行:./configure --prefix=$HOME/ob-install-dir --with-release --without-test-case 出现: checking for style of include used by make... GNU checking dependency
style of gcc... gcc3 checking dependency style of g++... gcc3 ./configure: line 18622: for: command not found checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking for svnversion... /usr/bin/svnversion
svn: Error converting entry in directory 'doc' to UTF-8 svn: Can't convert string from native encoding to 'UTF-8': svn: UpdateServer_?\207?\234?\207?\184?\201?\232?\188?\198_20100910.doc ./configure: line 19112: test: =: unary operator expected configure:
creating ./config.status config.status: creating Makefile config.status: creating tools/Makefile ./single-machine-bootstrap init 初始化时,没有任何动作

 

这个问题是多半是由于你的locale设置引起的,在single-machine-bootstrap脚本,用中文写了注释,编码为utf8,如果你的LANG是zh_CN.gb2312或zh_CN.gbk的话,可能出现这个问题。 你可以使用locale命令查看你的设置。 然后使用export LANG=en_US.UTF-8来改变设置后重试。

抱歉!评论已关闭.