為了簡化操作,采用操作系統為CentOS 8。
首先需要編譯出libzookeeper,在官網下載最新的zookeeper源碼,或者github上clone一個,地址為:https://github.com/apache/zookeeper
本地安裝工具ant,在zookeeper源碼根目錄執行ant compile_jute
。
跳轉目錄到'./zookeeper-client/zookeeper-client-c'中,執行autoreconf -if
(需要依賴工具autoconf, automake 和 libtool)
執行完畢后執行./configure && make && make install