OpenSSL is configured for kerberos but no krb5.h found 解决办法重新安装OpenSSL

Linux安装RabbitMQ的erlang环境时报错

configure 成功后的提示

config.status: creating include/x86_64-unknown-linux-gnu/erl_int_sizes_config.h
config.status: creating include/x86_64-unknown-linux-gnu/erl_native_features_config.h
*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************
 
crypto         : OpenSSL is configured for kerberos but no krb5.h found
odbc           : ODBC library - link check failed
ssh            : OpenSSL is configured for kerberos but no krb5.h found
ssl            : OpenSSL is configured for kerberos but no krb5.h found
 
*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************
 
wx             : wxWidgets not found, wx will NOT be usable
 
*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************
 
documentation  : 
                 xsltproc is missing.
                 fop is missing.
                 The documentation can not be built.
 
*********************************************************************

make & make install 成功后的提示

make[3]: Leaving directory `/home/newton/otp_src_17.0/lib/ose'
=== Leaving application ose
make[2]: Leaving directory `/home/newton/otp_src_17.0/lib/ose'
make[1]: Leaving directory `/home/newton/otp_src_17.0/lib'
(cd "/work/erlang/lib/erlang" \
	 && ./Install  -minimal "/work/erlang/lib/erlang")
/usr/bin/install -c -m 644 "/home/newton/otp_src_17.0/OTP_VERSION" "/work/erlang/lib/erlang/releases/17"
cd /work/erlang/bin
rm -f erl
rm -f erlc
rm -f epmd
rm -f run_erl
rm -f to_erl
rm -f dialyzer
rm -f typer
rm -f escript
rm -f ct_run
ln -s ../lib/erlang/bin/erl erl
ln -s ../lib/erlang/bin/erlc erlc
ln -s ../lib/erlang/bin/epmd epmd
ln -s ../lib/erlang/bin/run_erl run_erl
ln -s ../lib/erlang/bin/to_erl to_erl
ln -s ../lib/erlang/bin/dialyzer dialyzer
ln -s ../lib/erlang/bin/typer typer
ln -s ../lib/erlang/bin/escript escript
ln -s ../lib/erlang/bin/ct_run ct_run
[1]+  Exit 2                  make

解决办法重新编译安装下OpenSSL

1. 安装openssl

wget http://www.openssl.org/source/openssl-1.0.1s.tar.gz

tar -zvxf openssl-1.0.1s.tar.gz

cd openssl-1.0.1s

./config --prefix=/usr/local/openssl

修改Makefile:

vi Makefile

将原来的:CFLAG=     -DOPENSSL_THREADS

修改为: CFLAG= -fPIC -DOPENSSL_THREADS

也就是添加-fPIC

执行编译安装:

make && make install

然后重新安装erlang就好了

tar xf otp_src_20.1.tar.gz

cd otp_src_20.1

./configure --prefix=/usr/local/erlang --with-ssl=/usr/local/openssl

make&& make install
发布了284 篇原创文章 · 获赞 258 · 访问量 121万+

猜你喜欢

转载自blog.csdn.net/meimeieee/article/details/103165784