您好,欢迎访问一九零五行业门户网

源码编译MySQLCluster7.2.15安装过程_MySQL

bitscn.com
1 download the cluster tar.gz
wget http://dev.mysql.com/get/downloads/mysql-cluster-7.2/mysql-cluster-gpl-7.2.15.tar.gz
mysql cluster 7.2.15
select version: 下拉框选择 7.2.15
select platform: 下拉框选择 source code
然后再下面连接一栏里面选择:
generic linux (architecture independent),
compressed tar archive
(mysql-cluster-gpl-7.2.15.tar.gz)
2 cp to other 3 host
scp mysql-cluster-gpl-7.2.15.tar.gz 10.88.49.124:/root
3 install
reference :
http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-install-linux.html
http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-install-linux-source.html
mkdir -p /usr/local/mysql/bin
mkdir -p /usr/local/mysql/ndbdata
4 cmake
cmake cluster option,编译选项参数地址: http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html#cmake-mysql-cluster-options
cmake -dcmake_install_prefix=/usr/local/mysqlcluster7.2.15/ -dwith_innobase_storage_engine=on -dwith_myisam_storage_engine=1 -dextra_charsets=all -ddefault_charset=utf8 -ddefault_collation=utf8_general_ci
time cmake -dcmake_install_prefix=/root/mysql-cluster-gpl-7.2.15 /
-dmysql_unix_addr=/tmp/mysql-cluster.sock /
-ddefault_charset=utf8 /
-ddefault_collation=utf8_general_ci /
-dextra_charsets=all /
-dwith_embedded_server=0 /
-dwith_myisam_storage_engine=1 /
-dwith_innobase_storage_engine=1 /
-dwith_memory_storage_engine=1 /
-dwith_blackhole_storage_engine=1 /
-dwith_federated_storage_engine=1 /
-dwith_partition_storage_engine=1 /
-dwith_ndbcluster_storage_engine=1 /
-denabled_local_infile=1 /
-dmysql_user=mysql /
-dwith_debug=0 /
-dwith_ssl=yes
报错:
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
the variable java_compile is required to build ndb
call stack (most recent call first):
storage/ndb/cmakelists.txt:256 (ndb_require_variable)
time cmake . -dcmake_install_prefix=/usr/local/mysql -dmysql_datadir=/usr/local/mysql/ndbdata -dwith_ndbcluster_storage_engine=1 -dmysql_unix_addr==/usr/local/mysql/mysql.sock -dmysql_user=mysql -ddefault_charset=utf8 -ddefault_collation=utf8_general_ci
越少java编译环境
准备安装java: yum install java -y
安装好java之后,记得删除原来的mysql-cluster-gpl-7.2.15目录,重新tar -xvf解压缩再编译。
还是报错:
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
the variable java_compile is required to build ndb
call stack (most recent call first):
storage/ndb/cmakelists.txt:256 (ndb_require_variable)
卸载后再重新安装
yum -y remove java
wget jdk-7u51-linux-x64.rpm
rpm -ivh jdk-7u51-linux-x64.rpm
报如下错误:
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
the variable jni_include_dirs is required to build ndb
call stack (most recent call first):
storage/ndb/cmakelists.txt:276 (ndb_require_variable)
卡在这里很久了, google得到比较清晰的方案如下:
http://www.techsiteanalytics.com/index.php/tag/ndb
,只是那个jre我下载不了,因为jdk安装过程默认就有了jre了,所以我重新卸载了jdk版本,从6到jdk7,都报一样的错误。我看到大家都是安装rpm包的,很少源码编译的,就尝试一回,这个问题有待继续折腾了。
4 refer to:
http://www.techsiteanalytics.com/index.php/tag/ndb
bitscn.com
其它类似信息

推荐信息