溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Heka的編譯安裝方法

發(fā)布時間:2021-08-12 14:34:04 來源:億速云 閱讀:147 作者:chen 欄目:云計算

本篇內(nèi)容主要講解“Heka的編譯安裝方法”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學(xué)習(xí)“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

  1. Check out the heka repository:

    git clone https://github.com/mozilla-services/heka
     
  2. 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.

  1. (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.

  1. Run make install to install libs and modules into a usable location:

    make install         # Unix


如果出現(xiàn)問題,

-- 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的編譯安裝方法”有了更深的了解,不妨來實際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI