全部博文(50)
分类: LINUX
2013-12-05 20:47:35
在编译安装的过程中,可能会出现一些异常,主要的原因还是系统的依赖包没有安装上去,编译安装mysql之前,一定要把上述提到的包全部安装;
比如这个错误:
mysqld.cc: In function ‘void handle_connections_sockets()’:
主要是没有安装libmcrypt相关的包
直接使用yum install libmcrypt* -y安装完成后,在重新编译
在编译出现异常,在重新编译的时候,需要先删除mysql目录下的CMakeCache.txt这个文件,然后再进行编译!!!
Bug 34882 - g++: Internal error: Killed (program cc1plus)
找到问题的原因,然后解决它,解决办法:
内存不足, 在linux下增加临时swap空间
如果想关闭刚开辟的swap空间,只需命令:#swapoff
==================================================================================================
Status: RESOLVED INVALID
Product: gcc
Component: middle-end
Version: 4.2.3
Importance: P3 normal
Target Milestone: ---
Assigned To: Not yet assigned to anyone
URL:
Keywords: memory-hog
Depends on:
Blocks: Show dependency tree / graph
Reported: 2008-01-20 06:01 UTC by steven ou
Modified: 2008-02-02 12:06 UTC (History)
CC List: 3 users (show)
See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:
The initialize_command_download() exposes the usual memory-hungriness of GCC
with repetitive C++ initializers. We have plenty of bugreports with testcases
for this, closing as invalid. And yes, 32MB + 200MB swap will never make
you happy with C++ and gcc.
step 1:
#dd if=/dev/zero of=/home/swap bs=1024 count=500000
注释:of=/home/swap,放置swap的空间; count的大小就是增加的swap空间的大小,1024就是块大小,这里是1K,所以总共空间就是bs*count=500M
step 2:
# mkswap /home/swap
注释:把刚才空间格式化成swap各式
step 3:
#swapon /home/swap
注释:使刚才创建的swap空间