首页 > 代码库 > ant重新编译打包hadoop-core-1.2.1.jar时遇到的错
ant重新编译打包hadoop-core-1.2.1.jar时遇到的错
错误1.[root@MyDB01 hadoop]# ant -Dversion=1.2.1 examples错误: 找不到或无法加载主类 org.apache.tools.ant.launch.Launcher解决方案export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:/usr/share/ant/lib/ant-launcher.jar错误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, 没有那个文件或目录安装包:[root@MyDB01 native]# yum -y install autoconf错误3:create-native-configure: [exec] Can‘t exec "aclocal": 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 326. [exec] autoreconf: failed to run aclocal: 没有那个文件或目录安装包:[root@MyDB01 hadoop]# yum -y install automake错误4: [exec] configure.ac:48: error: possibly undefined macro: AC_PROG_LIBTOOL [exec] If this token and others are legitimate, please use m4_pattern_allow. [exec] See the Autoconf documentation. [exec] autoreconf: /usr/bin/autoconf failed with exit status: 1安装包[root@MyDB01 hadoop]# yum -y intall libtool
ant重新编译打包hadoop-core-1.2.1.jar时遇到的错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。