Maven编译HADOOP的common项目报错 。。。exec (compile-proto)。。。

[INFO] Apache Hadoop Annotations ......................... SUCCESS [4.657s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [1.359s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.868s]
[INFO] Apache Hadoop Common .............................. FAILURE [1.065s]
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.685s
[INFO] Finished at: Sat Jan 19 05:09:38 CST 2013
[INFO] Final Memory: 12M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-proto) on project hadoop-common: Command execution failed. Process exited with an error: 1(Exit value: 1) -> [Help 1]


解决方法:

1,http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz 下载

解压,进目录
./configure --prefix=/usr/local
make
make check
sudo make install

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

还是来张图:




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值