hadoop管道编译错误

时间:2012-07-28 17:43:22

标签: hadoop mapreduce

我第一次尝试Hadoop Pipe(WordCount)并在编译期间遇到以下错误:

/usr/bin/ld: skipping incompatible /root/hadoop-0.20.205.0/c++/Linux-amd64-64/lib/libhadooppipes.a when searching for -lhadooppipes
/usr/bin/ld: cannot find -lhadooppipes  
/usr/bin/ld: skipping incompatible /root/hadoop-0.20.205.0/c++/Linux-amd64-64/lib/libhadooputils.a when searching for -lhadooputils
/usr/bin/ld: cannot find -lhadooputils

这是否意味着我需要获取Hadoop源tar然后以某种方式编译?任何帮助将深表感谢。

1 个答案:

答案 0 :(得分:2)

你可以发布你的Makefile吗?

解决我的问题的一件事是我有一个需要更改为-m64的-m32标志。

确保检查标记,因为很可能您的编译器对架构感到困惑。