免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2671 | 回复: 9
打印 上一主题 下一主题

安装没有mysql失败了。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-07 01:38 |只看该作者 |倒序浏览
想把tcmalloc整合进mysql
但是发生错误了。。

./configure --prefix=/usr/local/mysql --without-debug --with-unix-socket-path=/usr/local/mysql/mysql.sock --with-client-ldflags=-all-static --enable-assembler --with-extra-charsets=utf8 --with-pthread --enable-thread-safe-client --enable-profiling --enable-assembler CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" CXX=g++ --with-mysqld-ldflags="-all-static -ltcmalloc"

mysqld.o: In function `set_ports()':
mysqld.cc.text+0x84b): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libtcmalloc.a(stacktrace.o): In function `GetStackTrace(void**, int, int)':
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:65: undefined reference to `_ULx86_64_init_local'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:70: undefined reference to `_ULx86_64_get_reg'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
/usr/local/lib/libtcmalloc.a(stacktrace.o): In function `GetStackFrames(void**, int*, int, int)':
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:126: undefined reference to `_ULx86_64_init_local'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:130: undefined reference to `_ULx86_64_step'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:130: undefined reference to `_ULx86_64_get_reg'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:139: undefined reference to `_ULx86_64_step'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:139: undefined reference to `_ULx86_64_get_reg'
/home/williams22/tools/google-perftools-1.0/src/stacktrace_libunwind-inl.h:137: undefined reference to `_ULx86_64_get_reg'
collect2: ld returned 1 exit status
make[3]: *** [mysqld] Error 1
make[3]: Leaving directory `/home/williams22/tools/mysql-5.1.30/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/williams22/tools/mysql-5.1.30/sql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/williams22/tools/mysql-5.1.30/sql'
make: *** [all-recursive] Error 1

请问怎么办?


第二个问题,mysql怎么安装innodb?


谢谢

centos 5 64位

论坛徽章:
0
2 [报告]
发表于 2009-02-07 06:57 |只看该作者

回复 #1 williams2222 的帖子

1.看一下tcmalloc对mysql版本的要求吧!

2.在配置的时候加innodb参数.具体你可以使用下面命令查看一下.
./configure --help | grep innodb

可能是
./configure --with-innodb

论坛徽章:
0
3 [报告]
发表于 2009-02-07 09:38 |只看该作者
谢谢老大

可能是orc收购innodb的原因,所以现在已经不存在--with-innodb这个选项了。

论坛徽章:
0
4 [报告]
发表于 2009-02-07 13:23 |只看该作者
--with-mysqld-ldflags="-all-static -ltcmalloc -lunwind" 试试

论坛徽章:
0
5 [报告]
发表于 2009-02-07 14:14 |只看该作者
这是我的配置语句
./configure --prefix=/usr/local/mysql --without-debug --with-unix-socket-path=/usr/local/mysql/mysql.sock --with-client-ldflags=-all-static --enable-assembler --with-extra-charsets=utf8 --with-pthread --enable-thread-safe-client --enable-profiling --enable-assembler CFLAGS="-O3" CXXFLAGS="-O3" CXX=g++ --with-mysqld-ldflags="-all-static -ltcmalloc -lunwind"

加上-lunwind后错误没之前那么多了。。

论坛徽章:
0
6 [报告]
发表于 2009-02-07 14:34 |只看该作者
原来静态模式不支持外挂。。

论坛徽章:
0
7 [报告]
发表于 2009-02-07 14:37 |只看该作者
为什么,不恩那个安装innodb呢?
出错
configure: WARNING: unrecognized options: --with-innodb

论坛徽章:
0
8 [报告]
发表于 2009-02-07 21:57 |只看该作者
参数太多,系统说:受不了。

论坛徽章:
0
9 [报告]
发表于 2009-02-07 22:51 |只看该作者
忽悠吧。。

我只 ./configure --with-innodb也不行

论坛徽章:
0
10 [报告]
发表于 2009-02-08 17:28 |只看该作者
MYSQL 5.1.30吗

加--with-plugins=max

好好看看./configure --help
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP