1. gcc: error: krb5-config:: No such file or directory
执行安装krb5-devel
yum provides krb5-config
得到提示:
Loaded plugins: langpacks, product-id, search-disabled-repos
krb5-devel-1.15.1-8.el7.i686 : Development files needed to compile Kerberos 5 programs
Repo : rhel-yum
Matched from:
Filename : /usr/bin/krb5-config
执行安装:yum install krb5-devel-1.15.1-8.el7.x86_64
提示:
error: Failed dependencies:
keyutils-libs-devel is needed by krb5-devel-1.15.1-8.el7.x86_64
libcom_err-devel is needed by krb5-devel-1.15.1-8.el7.x86_64
libselinux-devel is needed by krb5-devel-1.15.1-8.el7.x86_64
libverto-devel is needed by krb5-devel-1.15.1-8.el7.x86_64
到https://pkgs.org/搜一下这个几个安装包,逐个安装即可,安装过程中可能会提示依赖未安装。
针对安装过过程种的错误提示Failed dependencies,
可以使用命令
rpm -ivh libcom_err-devel-1.42.9-13.el7.x86_64.rpm --nodeps --force
rpm -ivh libselinux-devel-2.5-14.1.el7.x86_64.rpm --nodeps --force
rpm -ivh libkadm5-1.15.1-34.el7.x86_64.rpm --nodeps --force
rpm -ivh krb5-devel-1.15.1-8.el7.x86_64.rpm --nodeps --force
安装完后重新运行即可。
2. fatal error: 'openssl/e_os2.h' file not found
出现这个异常的原因是没有找到'openssl下的*.h文件,可以查看/usr/include/openssl/e_os2.h
是否存在,如果没有openssl目录应该就是没有安装openssl
CentOS、RedHalt执行yum install openssl-devel
ubuntu 执行sudo apt-get install libssl-dev