2

I am trying to set up couchdb for development locally. Was going through the troubleshooting page http://docs.couchdb.org/en/latest/install/troubleshooting.html and it had some instructions to check a few deps that were needed to set it up correctly.

Like crypto:md5_init(). and snappy:compress("gogogogogogogogogogogogogogo"). which are not there on my machine locally, my question is that how do I install these packages using a package management tool like rebar3 something like rebar3 install to just have the library on my machine, instead of adding it to a config file as a dep and running rebar.

Is there anyway to do this?

1 Answer 1

2

For use crypto, you need install erlang-crypto in your computer:

$ sudo apt-get install erlang-crypto

Then for run/stop crypto in Erlang shell:

1> crypto:start().
ok
2> crypto:stop().
=INFO REPORT==== dd-mmm-yyyy::hh:mm:ss.mmmmm ===
    application: crypto
    exited: stopped
    type: temporary
2
  • thanks, will I have to follow this procedure for other libraries like snappy too? find their apt repos and install them?
    – sumopal
    Mar 22, 2020 at 13:48
  • 1
    Not sure, I suppose you will need also install erlang-tools, then need to take a look what exactly functionality you still needed. Sometime you can add to project some library as dependencies use rebar etc.
    – vkatsuba
    Mar 22, 2020 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.