Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of compiling and installing Heka

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the compilation and installation method of Heka". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the compilation and installation method of Heka"!

Official document: 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 hekasource 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 targetmake test # Unixmingw32-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

If there is a problem

-- 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)

Indicates that the patch command is not installed

Yum install patch is fine.

At this point, I believe that everyone on the "Heka compilation and installation method" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report