使用ant构建Hadoop 1.2.1核心jar-失败

沃特·怀特

我需要对map类进行一些修改,并从Hadoop中还原类,因此,我一直在尝试使用源文件中的ant编译Hadoop 1.2.1 jar文件,但始终会出现以下错误:

Buildfile: build.xml

clover.setup:

clover.info:
 [echo] 
 [echo]      Clover not found. Code coverage reports disabled.
 [echo]   

clover:

ivy-download:
  [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0   /ivy-2.1.0.jar
  [get] To: /home/user/Downloads/hadoop-1.2.1/ivy/ivy-2.1.0.jar
  [get] Not modified - so not downloaded

ivy-init-dirs:

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:
[ivy:configure] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = /home/user/Downloads/hadoop-1.2.1/ivy/ivysettings.xml

ivy-resolve-common:

ivy-retrieve-common:
[ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file'  instead
[ivy:cachepath] :: loading settings :: file = /home/user/Downloads/hadoop-1.2.1/ivy/ivysettings.xml

init:
[touch] Creating /tmp/null1102494190
[delete] Deleting: /tmp/null1102494190
 [exec] svn: E155007: '/home/user/Downloads/hadoop-1.2.1' is not a working copy
 [exec] svn: E155007: '/home/user/Downloads/hadoop-1.2.1' is not a working copy

record-parser:

compile-rcc-compiler:

compile-core-classes:

compile-hdfs-classes:
[javac] Compiling 2 source files to /home/user/Downloads/hadoop-1.2.1/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] 1 warning

compile-mapred-classes:
Trying to override old definition of task jsp-compile

create-native-configure:
 [exec] configure.ac:42: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
 [exec] ../../lib/autoconf/specific.m4:314: AC_GNU_SOURCE is expanded from...
 [exec] configure.ac:42: the top level
 [exec] configure.ac:42: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
 [exec] ../../lib/autoconf/specific.m4:314: AC_GNU_SOURCE is expanded from...
 [exec] configure.ac:42: the top level
 [exec] configure.ac:42: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
 [exec] ../../lib/autoconf/specific.m4:314: AC_GNU_SOURCE is expanded from...
 [exec] configure.ac:42: the top level
 [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

BUILD FAILED
/home/user/Downloads/hadoop-1.2.1/build.xml:634: exec returned: 1

有人知道可能是什么问题吗?或知道如何使用ant创建jar文件?

谢谢

沃特·怀特

错误是它缺少一个库。

仅通过安装libtool即可修复。

sudo apt-get install libtool

现在它将成功构建该项目。

来源:[链接] http://desk.stinkpot.org:8080/tricks/index.php/2007/05/fixing-error-undefined-macro-ac_prog_libtool/

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

使用SSL RedHat构建MongoDB失败:collect2:ld返回1退出状态

为什么“((subtract`))1 2”失败?

npm 安装失败错误构建失败,错误代码:1

无法解析ASP.NET示例项目的服务(使用核心1而不是核心2)

Bash:如果 command1 失败,则运行 command2

量角器+混合角度1 + 2应用=失败

在bash中命令1失败时执行命令2

为Android构建应用程序时,任务':mergeF0F1F2F3DebugResources'的执行失败

清单合并失败1

由于缺少工件jdk.tools:jar,使用maven的hadoop-common构建失败

构建失败的离子 2

ionic应用程序构建失败,并显示错误“链接器命令失败,退出代码为1(使用-v查看调用)”

为什么失败的猫返回1,而其他失败的返回2?

Docker容器构建失败:/ bin / sh:1:烧瓶:找不到

在设备上构建失败,退出代码为1

TFS自动构建:Nuget Pack失败,代码为(1)

Netlify 构建失败,退出代码非零:1

Java快速启动构建失败,退出值非零1

无法构建gem本机扩展。+耙失败,退出代码1

SWI-序言:呼叫3 = 2 + 1->失败:3 = 2 + 1

构建失败,并显示错误“找不到文件”和“链接器命令失败,并显示退出代码1”

为什么2/2检查在ec2实例中失败到1/2

外部JAR上的“到Dalvik格式的转换失败,错误1”

使用Rspec测试使用错误数量的参数(给定2个,预期为1个)的get:index测试失败

U-Boot saveenv to mmc 失败 - 将环境保存到 FAT...无法使用 mmc 1:1...失败 (1)

离子1 http发布失败

如何修复“发布失败(1)”

失败1:语法错误

在bash中,cmd1如何?当cmd1失败时,cmd2返回cmd1的状态代码?