原始碼編譯MySQL Cluster7.2.15安裝過程
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得到比較清晰的方案如下:
,只是那個jre我下載不了,因為JDK安裝過程預設就有了jre了,所以我重新解除安裝了jdk版本,從6到jdk7,都報一樣的錯誤。我看到大家都是安裝rpm包的,很少原始碼編譯的,就嘗試一回,這個問題有待繼續折騰了。
4 refer to:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26230597/viewspace-1087281/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 原始碼編譯安裝MySQL5.6.12詳細過程原始碼編譯MySql
- 原始碼編譯安裝MySQL 5.7.9原始碼編譯MySql
- 【轉】MySQL原始碼編譯安裝MySql原始碼編譯
- MySQL 5.6原始碼編譯安裝流程MySql原始碼編譯
- MySQL Cluster7.2.15原始碼安裝部署效能測試MySql原始碼
- Mysql安裝過程中CMAKE編譯出錯MySql編譯
- 阿里雲mysql原始碼編譯安裝阿里MySql原始碼編譯
- MySQL5.7.16原始碼編譯安裝MySql原始碼編譯
- CentOS 7 原始碼編譯安裝 Mysql 5.7CentOS原始碼編譯MySql
- MySQL 5.7.9原始碼編譯安裝說明MySql原始碼編譯
- CentOS 6.5 原始碼編譯安裝 MySQL 5.5 5.6CentOS原始碼編譯MySql
- MySQL-5.6.29原始碼編譯安裝記錄MySql原始碼編譯
- CentOS 6.7下MySQL 5.6原始碼編譯安裝CentOSMySql原始碼編譯
- CentOS 6.7下原始碼編譯安裝MySQL 5.7.5CentOS原始碼編譯MySql
- 原始碼編譯安裝Redis原始碼編譯Redis
- LAMP原始碼編譯安裝LAMP原始碼編譯
- 原始碼包編譯安裝MySQL 5.6指令碼原始碼編譯MySql指令碼
- Mysql5.6 for Centos6.5原始碼編譯安裝MySqlCentOS原始碼編譯
- mysql5.0資料庫原始碼編譯安裝MySql資料庫原始碼編譯
- Linux下通過原始碼編譯安裝程式Linux原始碼編譯
- [環境搭建] 透過原始碼編譯安裝 Redis原始碼編譯Redis
- 原始碼包安裝過程原始碼
- mysql 原始碼安裝過程中錯誤總結MySql原始碼
- 原始碼編譯安裝的原理原始碼編譯
- zabbix agent原始碼編譯安裝原始碼編譯
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- mysql5.5資料庫cmake原始碼編譯安裝MySql資料庫原始碼編譯
- Linux下原始碼編譯方式安裝MySQL5.5Linux原始碼編譯MySql
- 編譯安裝mysql編譯MySql
- nginx原始碼編譯安裝(詳解)Nginx原始碼編譯
- php-7.1.0原始碼編譯安裝PHP原始碼編譯
- 詳解LAMP原始碼編譯安裝LAMP原始碼編譯
- LAMP原始碼編譯安裝配置+wordpressLAMP原始碼編譯
- lnmp環境安裝-原始碼編譯LNMP原始碼編譯
- linux中原始碼編譯安裝Linux原始碼編譯
- 基於Linux的MySQL5.7原始碼編譯安裝LinuxMySql原始碼編譯
- Ubuntu 16.04下 Mysql5.7.17原始碼編譯與安裝UbuntuMySql原始碼編譯
- MySQL5.7.17原始碼編譯安裝時的注意事項MySql原始碼編譯