歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Maven編譯Hadoop的trunk項目報錯: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

還是來張圖:

Copyright © Linux教程網 All Rights Reserved