Hadoop Pipes程序运行报错Server failed to authenticate解决方法

这个问题网络上已经给出了解决方法——需要重新编译hadooputils和hadooppipes

源码都在$(HADOOP_HOME)/src/c++/下,编译hadooputils好编译,但是编译hadooppipes时遇到了些问题

我下载的是hadoop-0.20.203.0rc1.tar.gz版本


hadoop@keljony-laptop:/usr/local/hadoop/src/c++/pipes$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for HMAC_Init in -lssl... no
configure: error: Cannot find libssl.so
./configure: line 5166: exit: please: numeric argument required
./configure: line 5166: exit: please: numeric argument required
hadoop@keljony-laptop:/usr/local/hadoop/src/c++/pipes$ 


错误提示:

checking for HMAC_Init in -lssl... no
configure: error: Cannot find libssl.so


可我明明已经装上了openssl,网络上这类错误的解决方法没怎么找到。

分析configure,研究openssl/hmac.h代码,捣鼓了许久,最终找出是因为少了链接上crypto库


编辑configure文件

# vi ./configure

找到5079和5161行

LIBS="-lssl $LIBS"

加上-lcrypto

LIBS="-lssl -lcrypto $LIBS"

保存退出再次configure通过

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值