2015-09-28 113 views
1

我目前正在尝试在运行Raspbian 7(wheezy)的Raspberry Pi上编译Hadoop 2.7.1以获取本机库。我最依赖的工作,但我从Maven的出现以下错误:在ARM上编译Hadoop 2.7.1(Raspbian)

[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (make) @ hadoop-common --- 
[INFO] Executing tasks 

main: 
[exec] -- The C compiler identification is GNU 4.6.3 
[exec] -- The CXX compiler identification is GNU 4.6.3 
[exec] -- Check for working C compiler: /usr/bin/gcc 
[exec] -- Check for working C compiler: /usr/bin/gcc -- works 
[exec] -- Detecting C compiler ABI info 
[exec] -- Detecting C compiler ABI info - done 
[exec] -- Check for working CXX compiler: /usr/bin/c++ 
[exec] -- Check for working CXX compiler: /usr/bin/c++ -- works 
[exec] -- Detecting CXX compiler ABI info 
[exec] -- Detecting CXX compiler ABI info - done 
[exec] Soft-float JVM detected 
[exec] -- Looking for exit 
[exec] CMake Error at JNIFlags.cmake:59 (message): 
[exec] Soft-float dev libraries required (e.g. 'apt-get install libc6-dev-armel' 
[exec] on Debian/Ubuntu) 
[exec] Call Stack (most recent call first): 
[exec] CMakeLists.txt:24 (include) 
[exec] 
[exec] 
[exec] -- Looking for exit - not found. 
[exec] -- Configuring incomplete, errors occurred! 

显然,这是不是因为这样做的apt-get的安装建议的libc6-DEV-阿梅尔一样简单。这个软件包不可用。但我不确定如何继续。有没有人有建议?

回答

2

我通过整合在他们的Jira中发现的补丁得到了这个。

cd hadoop-common-project/hadoop-common/src 
wget https://issues.apache.org/jira/secure/attachment/12570212/HADOOP-9320.patch 
patch < HADOOP-9320.patch 

你可以在他们的问题追踪器上找到the relevant page

+0

我花了时间来完整描述我采取的步骤[here](http://www.becausewecangeek.com/native-hadoop-for-的ARMv7 /) –