文档章节

源码编译heka遇到的问题

v
 vance928
发布于 2015/10/10 14:58
字数 559
阅读 36
收藏 0

报错:

1.heka/build/ep_base/Build/lua_sandbox/ep_base/Source/lua_sax/src/symtseries.c:766: 错误:“win” 在使用前可能未初始化

解决方法:

size_t n_values = 32;

    size_t prev_fin, new_fin;

    size_t w = 8;

    unsigned char c = 6;

    sts_window win=sts_new_window(n_values, w, c);

2.

2015/10/10 14:49:00 Loading input failed: exec: "go": executable file not found in $PATH

make[2]: *** [heka/src/github.com/mozilla-services/heka/pipeline/mock_pluginhelper_test.go] 错误 1

make[1]: *** [CMakeFiles/mocks.dir/all] 错误 2

make: *** [all] 错误 2

解决方法:

可能是在执行中重写了PATH,导致go的环境丢失,直接export,然后再执行source build.sh

export PATH=/Application/go/bin:$PATH

source build.sh

最后终于编译过去了:

$ source build.sh 

-- 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 Warning (dev) at cmake/ExternalProject.cmake:202 (if):

  Policy CMP0054 is not set: Only interpret if() arguments as variables or

  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy

  details.  Use the cmake_policy command to set the policy and suppress this

  warning.

  Quoted keywords like "COMMAND" will no longer be interpreted as keywords

  when the policy is set to NEW.  Since the policy is not set the OLD

  behavior will be used.

Call Stack (most recent call first):

  cmake/ExternalProject.cmake:1524 (_ep_parse_arguments)

  cmake/externals.cmake:19 (externalproject_add)

  CMakeLists.txt:106 (include)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done

-- Generating done

-- Build files have been written to: /home/refresh/heka/build

[  3%] Built target protobuf

[  6%] Built target whisper-go

[ 10%] Built target gospec

[ 13%] Built target gomock

[ 16%] Built target raven-go

[ 20%] Built target heka-mozsvc-plugins

[ 24%] Built target snappy

[ 27%] Built target go-notify

[ 30%] Built target toml

[ 33%] Built target amqp

[ 37%] Built target go-ircevent

[ 41%] Built target xmlpath

[ 44%] Built target gostrftime

[ 47%] Built target go-spew

[ 50%] Built target sarama

[ 54%] Built target go-resiliency

[ 58%] Built target queue

[ 62%] Built target goamz

[ 65%] Built target go-dockerclient

[ 69%] Built target raw

[ 72%] Built target slices

[ 76%] Built target sets

[ 80%] Built target uuid

[ 84%] Built target g2s

[ 84%] Built target GoPackages

[ 88%] Built target lua_sandbox

[ 88%] Built target heka_source

[ 88%] Built target message_matcher_parser

[ 88%] Built mock_pluginhelper_test.go

[ 88%] Built mock_pluginrunner_test.go

[ 89%] Built mock_decoder_test.go

[ 89%] Built mock_decoderrunner_test.go

[ 90%] Built mock_inputrunner_test.go

[ 90%] Built mock_filterrunner_test.go

[ 91%] Built mock_outputrunner_test.go

[ 91%] Built mock_input_test.go

[ 92%] Built mock_stataccumulator_test.go

[ 92%] Built mock_deliverer_test.go

[ 92%] Built mock_splitterrunner_test.go

[ 93%] Built mock_pluginhelper.go

[ 93%] Built mock_filterrunner.go

[ 94%] Built mock_decoderrunner.go

[ 94%] Built mock_outputrunner.go

[ 95%] Built mock_inputrunner.go

[ 95%] Built mock_decoder.go

[ 95%] Built mock_stataccumulator.go

[ 96%] Built mock_deliverer.go

[ 96%] Built mock_splitterrunner.go

[ 97%] Built mock_net_conn.go

[ 97%] Built mock_net_listener.go

[ 98%] Built mock_net_error.go

[ 98%] Built mock_whisperrunner_test.go

[ 98%] Built mock_amqpconnection_test.go

[ 99%] Built mock_amqpchannel_test.go

[ 99%] Built mock_amqpconnectionhub_test.go

[100%] Built mock_amqp_acknowledger.go

[100%] Built target mocks

Scanning dependencies of target hekad

[100%] Built target hekad

Scanning dependencies of target flood

[100%] Built target flood

Scanning dependencies of target heka-cat

[100%] Built target heka-cat

Scanning dependencies of target inject

[100%] Built target inject

Scanning dependencies of target logstreamer

[100%] Built target logstreamer

Scanning dependencies of target sbmgr

[100%] Built target sbmgr

Scanning dependencies of target sbmgrload

[100%] Built target sbmgrload


© 著作权归作者所有

共有 人打赏支持
下一篇: TOML 介绍
v
粉丝 0
博文 4
码字总数 776
作品 0
东城
私信 提问
Heka配置讲解

基于Heka,ElasticSearch和Kibana的分布式后端日志架构 目前主流的后端日志都采用的标准的elk模式(Elasticsearch,Logstash,Kinaba),分别负责日志存储,收集和日志可视化。 不过介于我们...

乌龟运维
2017/07/04
0
0
Heka - 来自 Mozilla 的插件式数据挖掘工具

近日Mozilla Service团队首次发布了 Heka测试版(v0.2b1),Heka是一款拥有数据收集、分析、监视和报表的工具,采用 Go 语言开发。其主要组件为 hekad,一个适用于任何主机的轻量级守护程序,...

taohongfei
2013/05/03
4.5K
24
美国HEKA发布全球第一款人工智能床垫

原标题:美国HEKA发布全球第一款人工智能床垫   HEKA发布HEKA AI Mattress   近期,美国高端家具定制企业HEKA宣布推出全球第一款人工智能床垫——HEKA AI Mattress。这是一款“超越想象力...

羴羴君
06/18
0
0
Mesos在去哪儿网的应用

Mesos在Qunar DevOps团队内部的应用。 平台介绍 我们是在今年的5月份开始调研并尝试使用Mesos,第一个试点就是我们的日志平台,我们将日志分析全部托管在Mesos平台上。日志平台面向业务线开发...

openthings
2015/12/18
169
1
Hyperledger Fabric(v1.1.0)编译时遇到的问题

Hyperledger Fabric(v1.1.0)编译时遇到的问题 0. 编译过程的坑 编译时,按照如下顺序编译 make release,编译源码生成二进制文件 make docker,生成一系列的docker镜像 第一步没什么问题,第...

gexin1023
07/05
0
0

没有更多内容

加载失败,请刷新页面

加载更多

腾讯与Github的魔幻会面背后的故事…

10月22日,腾讯开源管理办公室有幸邀请到Github新晋CEO Nat Friedman,前来鹅厂参观交流。目前腾讯已经有近70个项目在Github上开源,共获得17w stars,世界排名11位。Github是腾讯开源的主阵...

腾讯开源
22分钟前
1
0
单例模式

单例模式(Singleton pattern)属于创建型设计模式。 保证一个类仅有一个实例,并提供一个访问它的全局访问点。 通常我们可以让一个全局变量使得一个对象被访问,但它不能防止你实例化多个对...

NinjaFrog
27分钟前
0
0
TypeScript基础入门之装饰器(三)

转载 TypeScript基础入门之装饰器(三) 继续上篇文章[TypeScript基础入门之装饰器(二)] 访问器装饰器 Accessor Decorator在访问器声明之前声明。 访问器装饰器应用于访问器的属性描述符,可用...

durban
45分钟前
2
0
spring5调研学习(转载)

Spring框架的新功能 这一章主要提供Spring框架新的功能和变更。 升级到新版本的框架可以参考。Spring git。 内容列表 Spring 5.x框架新的功能 Spring 4.x框架新的功能 Spring 3.x框架新的功能...

小海bug
55分钟前
2
0
为何Spring框架能这么流行?

想要学习更多关于Spring框架在Java开发者中如此流行?看这篇文章可以学到更多! Spring框架特性 Spring是用于应用开发中的一款强大,轻量级框架。更广泛地说,你可以认为Spring框架是一个定义...

java知识分子
58分钟前
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部