Error 1. [[email protected] hadoop]# ant-dversion=1.2.1 Examples Error: The main class could not be found or could not be loaded Org.apache.tools.ant.launch.Launcher Solution Export classpath=.:${java_home}/lib:${jre_home}/lib:/usr/share/ant/lib/ Ant-launcher.jar Error 2:build Failed/usr/local/hadoop/build.xml:634:execute failed:java.io.IOException:Cannot run Program ' autoreconf ' (in Directory "/usr/local/hadoop/src/native"): error=2, no file or directory installation package: [[email protected] native]# yum-y Install autoconf error 3:create-native-configure: [exec] Can ' t exec ' aclocal ': No file or directory At/usr/share/auto CONF/AUTOM4TE/FILEUTILS.PM line 326. [EXEC] autoreconf:failed to run aclocal: No file or directory installation package: [[email protected] hadoop]# yum-y Install automake error 4: [E Xec] configure.ac:48:error:possibly undefined macro:ac_prog_libtool [exec] If This token and others is legit Imate, please use M4_pattern_allow. [EXEC] See the Autoconf documentation. [EXEC] autoreconf:/usr/bin/autoconf failed with exit Status:1 installation package [[Email protecTed] hadoop]# yum-y intall libtool
The error that Ant has encountered when recompiling the package Hadoop-core-1.2.1.jar