免费注册 查看新帖 |

Chinaunix

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

请教:windows 下 从源码编译mysql遇到问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-23 12:58 |只看该作者 |倒序浏览
我们的服务器是32bit window 2003 server,用mysql5.0.51,由于下载的mysql不支持AWE,需要加_WIN2000_ 来自己编译。

http://dev.mysql.com/doc/refman/ ... fer_pool_awe_mem_mb
innodb_buffer_pool_awe_mem_mb

The size of the buffer pool (in MB), if it is placed in the AWE memory. This is relevant only in 32-bit Windows. If your 32-bit Windows operating system supports more than 4GB memory, using so-called “Address Windowing Extensions,” you can allocate the InnoDB buffer pool into the AWE physical memory using this variable. The maximum possible value for this variable is 63000. If it is greater than 0, innodb_buffer_pool_size is the window in the 32-bit address space of mysqld where InnoDB maps that AWE memory. A good value for innodb_buffer_pool_size is 500MB.

To take advantage of AWE memory, you will need to recompile MySQL yourself. The current project settings needed for doing this can be found in the innobase/os/os0proj.c source file.


我按照手册上的过程,下载了源码.tar.gz形式的。
执行了
C:\workdir>win\configure WITH_INNOBASE_STORAGE_ENGINE
执行成功
然后运行
C:\wordir>win\build-vs8.bat
报错:
系统找不到指定的文件。
CMake Error: CMake executable cannot be found at /cmake.exe
CMake Error: Error executing cmake::LoadCache(). Aborting.

查看win\build-vs8.bat 内容
if exist cmakecache.txt del cmakecache.txt
copy win\vs8cache.txt cmakecache.txt
cmake -G "Visual Studio 8 2005"
copy cmakecache.txt win\vs8cache.txt

我发现win目录下根本就不存在vs8cache.txt
这个文件是不是应该原本中就存在呢?还是通过什么生成的,谁有成功编译的经验,请指点指点啊

论坛徽章:
0
2 [报告]
发表于 2008-08-24 08:16 |只看该作者
要装一个cmake, bison

论坛徽章:
0
3 [报告]
发表于 2008-08-24 21:47 |只看该作者
是的,这个两个我都已经装了,否则cmake也不可能执行啊。主要是我想知道copy win\vs8cache.txt cmakecache.txt 这个win\vs8cache.txt 文件是不是源码中自带,还是通过什么途径产生的呢?我现在的源码中没有这个文件呢?

论坛徽章:
0
4 [报告]
发表于 2008-08-24 23:57 |只看该作者
windows下编译还没弄过了,帮你顶下好了:)

论坛徽章:
0
5 [报告]
发表于 2008-08-26 21:36 |只看该作者
编译是成功了,只是还是不能利用pae
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP