compile-native for hadoop

Question 1: 

Execute failed: java.io.IOException: Cannot run program "autoreconf" (in directory "/home/jackson/Programs/hadoop-1.2.1/src/native"): error=2, No such file or directory

Solution:

install the autoreconf software:  $ sudo apt-get install autoreconf

sudo apt-get install autocong
sudo apt-get install automake
sudo apt-get install libtool

Question 2:

create-native-configure:
      [exec] Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.

Solution:

install the autoreconf software:  $ sudo apt-get install libtool  


Question 3:
[INFO] configure: error:  Zlib headers were not found... native-hadoop library needs zlib to build. Please install the requisite zlib development package.

Solution: 
sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev


猜你喜欢

转载自blog.csdn.net/xzx735/article/details/23626895