Install Unix CouchDB + KERL

I am trying to install CouchDB on my Unreal Planlab machines from source packages.

I installed Erlang r16b01 using Kerl: http://docs.basho.com/riak/1.3.0/tutorials/installation/Installing-Erlang/#Install-using-kerl

I installed openssl from the source package.

So, I ran "./configure --with-erlang = path / to / erlang / using / kerl" and I get an error

"configure: error: Could not find the Erlang crypto library"

This error indicates that Erlang has not been compiled with OpenSSL support.

So, I tried to use   "KERL_CONFIGURE_OPTIONS=--with-ssl=path/to/openssl/lib" (Not sure if I am using the above command correctly) Then I reinstalled and restarted Erlang. This still causes the same error.

I checked if Erlang, if it can execute "crypto.start ()", and it allows me to enter the command, but it does not have the answer "ok", as in the document: http://dennisreimann.de/blog/installing- couchdb-and-erlang-on-ubuntu-hardy /


Please, help!

+4
source share
1 answer

1) Did you first create a custom couchdb and then do everything like this user? Including assembly and installation of erlang? It could be easier.

2) There is an error in your test, you need to complete your command in the erl shell with a dot, otherwise you will not get an answer, as you already noticed. crypto:start().true:

$ erl
Eshell V6.1  (abort with ^G)                                                                        
1> crypto:start().                                                                                    
** exception error: undefined function crypto:start/0 

After successful assembly and installation, it will respond normally:

$ erl
Eshell V6.1  (abort with ^G)                                                                              
1> crypto:start().                                                                                    
ok

And you can also stop it after:

2> crypto:stop().                                                                                    
ok
3> 
=INFO REPORT==== 10-Aug-2014::20:22:06 ===
    application: crypto
    exited: stopped
    type: temporary

3) OpenSSL, , openssl. 0.9.8 OpenSSL. , debian ubuntu, :

sudo apt-get install openssl libssl-dev

- , openssl ( openssl, ).

4) , . , unix, :

fooobar.com/questions/651270/...

crypto:start(). - , . , .

5) kerl . , debian/ubuntu, ~/.kerlrc

KERL_CONFIGURE_OPTIONS="--with-ssl=/usr/lib/ssl"

, , ssl, , .

, , . http://www.erlang.org/doc/installation_guide/INSTALL.html , :

KERL_CONFIGURE_OPTIONS="--with-ssl"

kerl , https://github.com/yrashk/kerl/issues/31

6) , --with-erlang couchdb, ? , , .

, , . erlang, .

, kerl erlang --with-erlang couchdb. --with-erlang kerl, kerl couchdb, couchdb script.

+1

Source: https://habr.com/ru/post/1537613/


All Articles