免费注册 查看新帖 |

Chinaunix

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

请教一个在虚拟机下编译mysql源代码问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-15 17:02 |只看该作者 |倒序浏览
问题描述

在 ./configure --prefix=/usr/local/mysql后出现错误:
...
checking "LinuxThreads"... "Not found"
configure: error: This is a linux system and Linuxthreads was not
found. On linux Linuxthreads should be used.  Please install Linuxthreads
(or a new glibc) and try again.  See the Installation chapter in the
Reference Manual for more information.

我是在xp下装了虚拟机VMware
然后在虚拟机上装的是 federo6

不知道是没有配置相关linuxsthreads参数的原因,还是安装的原因
恳请各位高手指点指点,谢谢

论坛徽章:
0
2 [报告]
发表于 2007-03-15 20:58 |只看该作者
呵呵,用 BSD 吧,安装起来非常方便。

论坛徽章:
0
3 [报告]
发表于 2007-03-16 10:15 |只看该作者

回复 1楼 huqy76 的帖子

试下加参数--with-pthread是否过的了

论坛徽章:
0
4 [报告]
发表于 2007-03-16 14:46 |只看该作者

给你的gcc升一下级

给你的gcc升一下级给你的gcc升一下级给你的gcc升一下级给你的gcc升一下级给你的gcc升一下级给你的gcc升一下级

论坛徽章:
0
5 [报告]
发表于 2007-03-16 15:41 |只看该作者
fc 就这样,你可能是开发环境没装全。

你用的内核的 头 文件库没装吧?

linux-headers-xxxx内核版本

[ 本帖最后由 likuku 于 2007-3-16 15:44 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-03-16 16:54 |只看该作者
mysql什么版本的?可能版本有点低,现在一般用nptl。

论坛徽章:
0
7 [报告]
发表于 2007-03-20 22:15 |只看该作者
问题已经解决了,非常感谢大家的帮忙
因为federa5以上就肯定不支持linux-threads,要安装一个thread库
我用的是mit-thread

引用mysql手册上:
After downloading MIT-pthreads packet, extract this source archive into the top level of the MySQL source directory. It creates a new subdirectory named mit-pthreads.

./configure --prefix=/usr/local/mysql --with-mit-threads
就通过了

再次感谢楼上各位的提示
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP