解决“krb5.h: No such file or directory” 问题

参考:http://blog.csdn.net/linuxmichael/article/details/4249515

《krb5.h: No such file or directory解决方法》文中提到“error: krb5.h: No such file or directory”错误发生的原因:

   安装QT/Embedded4.4.3中,出现上述错误. 这是因为 Red Hat Linux 的 krb5-devel 套件把 kerberos 的 include file 放到了 /usr/kerberos/include 里面,而不是一般位置的 /usr/include 这个目录。而 openssl 支持 kerberos,因此在 compile 使用到 openssl 的程式就很容易发生找不到 kerberos 的 include file 的错误。

我在项目编译中也遇到这样的错误,参考《解决方法》中提到的方法,解决办法如下:

#yum list installed | grep krb5    //查看是否安装有krb5-devel 以及 krb5-libs,如果没有,就安装

结果发现还真没有安装krb5-devel,并且/usr/include 目录下没有 krb5.h 文件,于是

#yum search krb5-devel

#yum install krb5-devel.x86_64  // 安装krb5-devel

安装完成后,/usr/include 目录下就有 krb5.h 文件了。再次编译项目,build通过!其实根据自己的经历,“error: krb5.h: No such file or directory”错误发生的原因还包括 ”由于没有安装krb5-devel 套件,造成/usr/include 目录下没有krb5.h 文件“。

附:Kerberos是什么?

Kerberos: The Network Authentication Protocol

Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography. A free implementation of this protocol is available from the  Massachusetts Institute of Technology . Kerberos is available in many commercial products as well.

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值