当前位置: 首页 > 工具软件 > Heka > 使用案例 >

Heka编译安装

丁豪
2023-12-01

官方文档:http://hekad.readthedocs.io/en/v0.10.0/installing.html

 

Prerequisites (all systems):

  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

 

如果出现问题,

-- 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即可。

转载于:https://my.oschina.net/weikan/blog/719001

 类似资料: