免费注册 查看新帖 |

Chinaunix

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

[安装配置] AIX 6.1安装mysql源码包遇到错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-10-17 13:09 |只看该作者 |倒序浏览
小弟刚接触AIX小机,因为原先有个项目是CentOS+Tomcat+Mysql架构的,现在领导要整合硬件资源,所以测试移植到小机上,google了两天没结果,求助各位大大帮帮忙。
系统环境:
#oslevel
6.1.0.0
因为找不到mysql for AIX, 所以尝试安装的mysql版本是source code for Generic Linux (Architecture Independent), 过程如下:
1.
首先下载mysql的源码安装包,download地址如下:

https://www.mysql.com/downloads/mysql/#downloads

因为mysql源码包现在只支持cmake编译,所以需要安装cmake,download地址:

http://cmake.org/cmake/resources/software.html


2.
下载并解压mysql及cmake软件包;

shell> gunzip
mysql-VERSION.tar.gz

shell> gunzip
cmake-VERSION.tar.gz

shell> groupadd mysql

shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions

shell> tar zxvf mysql-VERSION.tar.gz

shell> cd mysql-VERSION

shell> cmake .


编译中遇到错误提示:CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found, please set CMAKE_C_COMPILER to a valid compiler path or name.


3.
检查发现未安装GCC环境,需要下载并安装如下包:

gcc-4.2.0-3.aix6.1.ppc.rpm

gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm

gcc-gij-4.2.0-3.aix6.1.ppc.rpm

gcc-java-4.2.0-3.aix6.1.ppc.rpm

gcc-locale-4.2.0-3.aix6.1.ppc.rpm

libffi-4.2.0-3.aix6.1.ppc.rpm

libffi-devel-4.2.0-3.aix6.1.ppc.rpm

libgcc-4.2.0-3.aix6.1.ppc.rpm

libgcj-4.2.0-3.aix6.1.ppc.rpm

libgcj-devel-4.2.0-3.aix6.1.ppc.rpm

libgomp-4.2.0-3.aix6.1.ppc.rpm

libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm

libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm

make-3.80-1.aix5.1.ppc.rpm

zlib-1.2.3-4.aix5.2.ppc.rpm

zlib-devel-1.2.3-4.aix5.2.ppc.rpm

shell > rpm –ivh *.*
# 逐个编译安装


然后继续执行mysql安装;

shell> cd mysql-VERSION

shell> cmake .

又遇到错误提示:

-- The C compiler identification is GNU 4.2.0

-- The CXX compiler identification is GNU 4.2.0

-- Check for working C compiler: /usr/bin/gcc

-- Check for working C compiler: /usr/bin/gcc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/g++

-- Check for working CXX compiler: /usr/bin/g++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- MySQL 5.5.28

-- Packaging as: mysql-5.5.28-AIX5.1-powerpc

-- Could NOT find Threads (missing:Threads_FOUND)

-- Could NOT find Threads (missing:Threads_FOUND)

-- Check if the system is big endian

-- Searching 16 bit integer

CMake Error at /usr/local/cmake/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):
no suitable type found


Call Stack (most recent call first):


configure.cmake:529 (TEST_BIG_ENDIAN)


CMakeLists.txt:257 (INCLUDE)


-- Configuring incomplete, errors occurred!




这下不知道该如何办了,跪请指导!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP