2
votes

I am new to Unixlike operating systems. After installing Hadoop as per the instructions below, http://wiki.apache.org/hadoop/Running_Hadoop_On_OS_X_10.5_64-bit_(Single-Node_Cluster)

I am trying to build the examples as given in the same URL using ant examples

This gives me an exception as below

compile-mapred-classes: Trying to override old definition of task jsp-compile [javac] /Users/hadoop/hadoop-1.2.1/build.xml:549: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

create-native-configure:

BUILD FAILED /Users/hadoop/hadoop-1.2.1/build.xml:634: Execute failed: java.io.IOException: Cannot run program "autoreconf" (in directory "/Users/hadoop/hadoop-1.2.1/src/native"): error=2, No such file or directory

What exactly is needed for my Mac to get past this?

3

3 Answers

10
votes

As the error says, you need to install autoreconf. The easiest way to do it is through Homebrew (brew install autoconf, after you install the Homebrew itself).

Incidentally, hadoop can be installed through Homebrew as well.

4
votes

I had the same issue, and was able to resolve it by installing automake, autoconf and libtool:

brew install automake autoconf libtool
3
votes

Running a couple of brew unlink {formula} && brew link {formula} on automake, autoconf and libtool did the trick for me