rabbitmq 添加用户时报如下错误
Error description:
{could_not_start,rabbit,
{notsup,
[{crypto,sha256,1,[{file,"crypto.erl"},{line,857}]},
{rabbit_password,hash,2,
[{file,"src/rabbit_password.erl"},{line,34}]},
{rabbit_auth_backend_internal,add_user,2,
[{file,"src/rabbit_auth_backend_internal.erl"},{line,173}]},
{rabbit,insert_default_data,0,
[{file,"src/rabbit.erl"},{line,565}]},
{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]},
{rabbit_boot_steps,run_step,2,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]},
{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,
[{file,"src/rabbit_boot_steps.erl"},{line,26}]},
{rabbit_boot_steps,run_boot_steps,1,
[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}
因为erlang的crypto模块没有正确安装,安装erlang的时候,configure完可能会有如下提示
crypto : No usable OpenSSL found
jinterface : Java compiler disabled by user
odbc : ODBC library - link check failed
orber : No C++ compiler found
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
需要安装openssl以及openssl-devel两个包,之前系统只安装了openssl包