- 论坛徽章:
- 0
|
小弟刚接触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!
这下不知道该如何办了,跪请指导! |
|