How to include library in Erlang\OTP

Viewed 105

I'm new in RabbitMQ, I want to use rabbitmq with ssl (AMQPs). Now the issue is when I read the Erlang/OTP Requirements for TLS Support, and checked my erlang setup with command code:all_loaded(). I got list of modules that are loaded in erlang but not found which are required to use ssl over rabbitmq (public_key, crypto, asn1, and ssl).

Upon checking my C:/program files/ erl-24.2.1/lib, I have the folder for respective library but I'm not sure how can I enable those libraries.

Please help me to enable those libraries in erlang otp.

Note: I'm using this on windows OS.

1 Answers

You should familiarize yourself working with Erlang's built-in function documentation :) (link)

> code:is_loaded(crypto).    
false
> code:ensure_loaded(crypto).
{module,crypto}
> code:is_loaded(crypto).    
{file,"c:/ProgramFiles/erl-24.2/lib/crypto-5.0.5/ebin/crypto.beam"}

Related