alisql在linode和locvps两家主机商的各种linux系统下均安装失败,麻烦看看

问答中心分类: Databasealisql在linode和locvps两家主机商的各种linux系统下均安装失败,麻烦看看
luring asked 8 年 ago
VPS系统包括:centos6~7,debian,在这两个主机商的VPS中均一样的错误导致安装alisql失败。
配置为1g1核和1g2核

[ 87%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/semisync_slave.cc.o
In file included from /root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:18:0:
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.h:87:18: error: ‘Master_info’ has not been declared
int slaveReply(Master_info* mi);
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.h:88:18: error: ‘Master_info’ has not been declared
int slaveStart(Master_info *mi);
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.h:89:17: error: ‘Master_info’ has not been declared
int slaveStop(Master_info *mi);
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.h:90:23: error: ‘Master_info’ has not been declared
int requestTransmit(Master_info*);
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.h:92:18: error: ‘Master_info’ has not been declared
int resetSlave(Master_info *mi);
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:85:35: error: ‘int ReplSemiSyncSlave::slaveStart’ is not a static member of ‘class ReplSemiSyncSlave’
int ReplSemiSyncSlave::slaveStart(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:85:35: error: ‘Master_info’ was not declared in this scope
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:85:48: error: ‘mi’ was not declared in this scope
int ReplSemiSyncSlave::slaveStart(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:86:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:104:34: error: ‘int ReplSemiSyncSlave::slaveStop’ is not a static member of ‘class ReplSemiSyncSlave’
int ReplSemiSyncSlave::slaveStop(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:104:34: error: ‘Master_info’ was not declared in this scope
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:104:47: error: ‘mi’ was not declared in this scope
int ReplSemiSyncSlave::slaveStop(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:105:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:113:35: error: ‘int ReplSemiSyncSlave::resetSlave’ is not a static member of ‘class ReplSemiSyncSlave’
int ReplSemiSyncSlave::resetSlave(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:113:35: error: ‘Master_info’ was not declared in this scope
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:113:48: error: ‘mi’ was not declared in this scope
int ReplSemiSyncSlave::resetSlave(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:114:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:147:40: error: ‘int ReplSemiSyncSlave::requestTransmit’ is not a static member of ‘class ReplSemiSyncSlave’
int ReplSemiSyncSlave::requestTransmit(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:147:40: error: ‘Master_info’ was not declared in this scope
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:147:53: error: ‘mi’ was not declared in this scope
int ReplSemiSyncSlave::requestTransmit(Master_info *mi)
^
/root/oneinstack/src/alisql-5.6.32-4/sql/semisync_slave.cc:148:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/semisync_slave.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2
~/oneinstack/src ~/oneinstack
AliSQL install failed, Please contact the author!
Killed

3 Answers
oneinstack answered 8 年 ago
centos是否有问题?  /var/log/message 是否有out of  memory 日志?

andy.zhang answered 8 年 ago
我也测试到这样的问题,而且我把虚拟机的内存加大到4G,问题同样存在。但用回alisql-5.6.32-1这一版的就好了。我看了一下,include/alisql.sh,编译参数相同的。现在我怀疑是阿里提交的代码有问题。
 

luring answered 8 年 ago
没有Out of memory日志,
应该不是内存小的原因