象鸟构建失败
Posted
技术标签:
【中文标题】象鸟构建失败【英文标题】:Elephant-bird build failure 【发布时间】:2013-08-05 04:32:39 【问题描述】:由于我想用象鸟在 PIG 中读/写 JSON 文件,所以下载了 EB for Mac
git clone git://github.com/kevinweil/elephant-bird.git
并尝试使用
mvn package
构建失败如下,
[INFO] --- protobuf-maven-plugin:0.4:run (default) @ elephant-bird-core ---
[INFO] Protobuf dependency version 2.4.1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Elephant Bird ..................................... SUCCESS [1.670s]
[INFO] Elephant Bird Hadoop Compatibility ................ SUCCESS [3.148s]
[INFO] Elephant Bird Core ................................ FAILURE [0.927s]
[INFO] Elephant Bird Cascading2 .......................... SKIPPED
[INFO] Elephant Bird Hive ................................ SKIPPED
[INFO] Elephant Bird Pig ................................. SKIPPED
[INFO] Elephant Bird Mahout .............................. SKIPPED
[INFO] Elephant Bird RCFile .............................. SKIPPED
[INFO] Elephant Bird Lucene .............................. SKIPPED
[INFO] Elephant Bird Pig Lucene .......................... SKIPPED
[INFO] Elephant Bird Examples ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project elephant-bird-core: Unable to find 'protoc' -> [Help 1]
我已经检查了这个链接 ElephantBird package build failure: 并下载了 thrift 0.9 并尝试在 pom.xml 中指定绝对路径
请就如何运行它提出任何建议。
【问题讨论】:
【参考方案1】:如果您使用的是基于 apt-get 的系统,请尝试安装 libprotobuf-java
软件包。您也可以从源代码http://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.4.1.tar.gz 安装 2.4.1 版。
https://github.com/kevinweil/elephant-bird/wiki/Build-errors 提到了这个错误。
【讨论】:
以上是关于象鸟构建失败的主要内容,如果未能解决你的问题,请参考以下文章
构建失败:如何解决 React Native iOS 虚拟设备应用构建失败、CompileSwift 和 CompileC 失败?
Flutter iOS 构建失败:目标 kernel_snapshot 失败:异常:快照创建期间出错:null 构建失败