您好,登錄后才能下訂單哦!
本篇內容主要講解“Heka的編譯安裝方法”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“Heka的編譯安裝方法”吧!
官方文檔:http://hekad.readthedocs.io/en/v0.10.0/installing.html
Prerequisites (all systems):
CMake 3.0.0 or greater http://www.cmake.org/cmake/resources/software.html
Git http://git-scm.com/download
Go 1.4 or greater http://golang.org/dl/
Mercurial http://mercurial.selenic.com/wiki/Download
Protobuf 2.3 or greater (optional - only needed if message.proto is modified)http://code.google.com/p/protobuf/downloads/list
Sphinx (optional - used to generate the documentation) http://sphinx-doc.org/
An internet connection to fetch sub modules
Check out the heka repository:
git clone https://github.com/mozilla-services/heka
Source (Unix-y) or run (Windows) the build script in the heka directory:
cd heka source build.sh # Unix (or `. build.sh`; must be sourced to properly setup the environment) build.bat # Windows
You will now have a hekad
binary in the build/heka/bin
directory.
(Optional) Run the tests to ensure a functioning hekad:
ctest # All, see note # Or use the makefile target make test # Unix mingw32-make test # Windows
Note
In addition to the standard test build target, ctest can be called directly providing much greater control over the tests being run and the generated output (see ctest –help). i.e., ‘ctest -R pi’ will only run the pipeline unit test.
Run make install
to install libs and modules into a usable location:
make install # Unix
如果出現問題,
-- GeoIP.h was not found, GeoIP functionality will not be included in this build.
-- Docker plugins enabled.
-- sphinx-build was not found, the documentation will not be generated.
CMake Error at cmake/externals.cmake:10 (message):
patch not found
Call Stack (most recent call first):
CMakeLists.txt:111 (include)
說明patch命令沒有安裝
yum install patch即可。
到此,相信大家對“Heka的編譯安裝方法”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。