码迷,mamicode.com
首页 > 编程语言 > 详细

ant重新编译打包hadoop-core-1.2.1.jar时遇到的错

时间:2016-09-16 19:45:46      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:

错误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时遇到的错

标签:

原文地址:http://www.cnblogs.com/polestar/p/5876881.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!