重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
本篇内容主要讲解“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的编译安装方法”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!