編譯 Galera Cluster 常見問題

Loading

Scons

[root@benjr galera-3-25.3.17]# ./scripts/build.sh
~/galera ~/galera
~/galera
./scripts/build.sh: line 409: scons: command not found

編譯 Galera 需要透過 Scons ,在 Scons 網站下載 http://scons.org/pages/download.html
SCons 是什麼?
SCons is an Open Source software construction tool—that is, a next-generation build tool.

[root@benjr galera-3-25.3.17]# scons
scons: Reading SConscript files ...
Host: linux x86_64 64bit
Signature: version: 3.17, revision: 447d194
Checking for C library pthread... yes
Checking for C library rt... yes
Checking for C header file sys/epoll.h... yes
Checking for C header file byteswap.h... yes
Checking for C header file endian.h... yes
Checking for C header file execinfo.h... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking for C++ header file unordered_map... no
Checking for C++ header file tr1/unordered_map... yes
Checking for C++ library boost_program_options... yes
Checking for C++ header file asio.hpp... no
Falling back to bundled asio
Checking for C++ header file asio.hpp... yes
Checking for C++ header file asio/ssl.hpp... yes
Checking for C library ssl... yes
Checking for C library crypto... yes
Checking for C header file check.h... no
Error: check header file not found or not usable

[root@benjr galera-3-25.3.17]# yum install boost boost-devel check check-devel openssl openssl-devel 

而編譯 Scons 需要下列的套件. Boost , Boost-devel , Check , Check-devel and OpenSSL , Openssl-devel

Galera cluster

boost/shared_ptr.hpp not found or not usable
root@ubuntu:~# apt-get install check

在 Ubuntu 下編譯時需要 check 套件.

Error: library boost_program_options does not exist
root@ubuntu:~# apt-get install libboost-all-dev

在 Ubuntu 下編譯時需要 libboost-all-dev 套件.

GU_PAGE_SIZE(4096) does not maptch real system page size(65536)

雖然 Galera 編譯成功但服務啟動時卻產生這錯誤,後來是修改了 gu_limits.h

#vi /galera/galerautils/src/gu_limits.h
#define GU_PAGE_SIZE 65536

GU_PAGE_SIZE 預設是 4K(4096) 把它改成 65536(64K) 在編譯一次就沒有看到這個錯誤訊息了.

沒有解決問題,試試搜尋本站其他內容

2 thoughts on “編譯 Galera Cluster 常見問題

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料