Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

源码包安装请教

Open ChuckPerry opened this issue 10 years ago • 3 comments

Hi,all: 当我执行完configure,在make的时候,报如下错误: lua-scope.c:44: error: expected ‘)’ before ‘’ token lua-scope.c:67: warning: ‘g_mutex_new’ is deprecated (declared at /usr/local/include/glib-2.0/glib/deprecated/gthread.h:272) lua-scope.c: In function ‘lua_scope_free’: lua-scope.c:91: warning: ‘g_mutex_free’ is deprecated (declared at /usr/local/include/glib-2.0/glib/deprecated/gthread.h:274) make[2]: ** [libmysql_chassis_la-lua-scope.lo] Error 1 make[2]: Leaving directory /data/altas/Atlas-2.2/src' make[1]: *** [check] Error 2 make[1]: Leaving directory/data/altas/Atlas-2.2/src' make: *** [check-recursive] Error 1 这个需要怎么解决呢?

ChuckPerry avatar Dec 18 '14 06:12 ChuckPerry

执行bootstrap.sh。

zhuchao-hit avatar Dec 18 '14 11:12 zhuchao-hit

之后: /home/xxx/local/glib-2.44.1/lib sql_tokenizer_gen-sql-tokenizer-gen.o: In function main': sql-tokenizer-gen.c:(.text+0x3): undefined reference to g_ascii_strcasecmp' sql-tokenizer-gen.c:(.text+0x25): undefined reference to g_tree_new' sql-tokenizer-gen.c:(.text+0x68): undefined reference to g_tree_insert' sql-tokenizer-gen.c:(.text+0x8a): undefined reference to g_tree_foreach' sql-tokenizer-gen.c:(.text+0xb0): undefined reference to g_tree_destroy' collect2: ld returned 1 exit status make[3]: *** [sql-tokenizer-gen] 错误 1

scofier avatar Nov 19 '16 10:11 scofier

lua-scope.c:44:29: error: unknown type name ‘lua_State’ static int proxy_lua_panic (lua_State *L); ^ lua-scope.c: In function ‘lua_scope_new’: lua-scope.c:67:2: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Wdeprecated-declarations] sc->mutex = g_mutex_new(); /remove lock/ ^ lua-scope.c: In function ‘lua_scope_free’: lua-scope.c:91:2: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:279) [-Wdeprecated-declarations] g_mutex_free(sc->mutex); /remove lock/ ^ make[3]: *** [libmysql_chassis_la-lua-scope.lo] Error 1 make[3]: Leaving directory /root/Atlas-Atlas-Sharding-2.2.1/src' make[2]: *** [all] Error 2 make[2]: Leaving directory /root/Atlas-Atlas-Sharding-2.2.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Atlas-Atlas-Sharding-2.2.1' make: *** [all] Error 2 源码包安装出现这样的错误,正常吗?以及rpm包安装也一样出问题 error: unpacking of archive failed on file /usr/local/mysql-proxy/lib/libglib-2.0.so.0;5eeb7e15: cpio: read failed - No such file or directory error: Atlas-sharding_1.0.1-el6.x86_64: install failed 这个要依懒什么库吗?

lianchengtong avatar Jun 18 '20 14:06 lianchengtong