报错:
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