Yes there was a missing dependency to erlang-asn1 on centos 6.4
Perhaps the wiki document (http://docs.couchdb.org/en/latest/install/unix.html ) can just say yum install erlang instead of several (but incomplete) erlang-* it installs.
The complete erl package does get this specific dependency (and any others if they were missing)
Thanks Vivek On 11/21/2013 10:07 AM, Robert Newson wrote:
asn1 comes from your erlang install, we don't ship it, but it implies you're missing standard parts of erlang. I'm assuming debian or ubuntu, therefore "apt-get install erlang-asn1" and probably others. The policy that forces package maintainers to subdivide erlang because it's possible but not wise irks me. B. On 21 November 2013 14:58, Vivek Pathak <[email protected]> wrote:Thanks - I tried it. There is something odd going on. It says there is no such app, and while couchdb source seems to refer to it, I can not find it anywhere in the filesystem. Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [kernel-poll:false] Eshell V5.8.5 (abort with ^G) 1> application:start(asn1). {error,{"no such file or directory","asn1.app"}} # pwd /opt/apache-couchdb-1.5.0/src # grep -R asn1 * couchdb/couch_app.erl: case start_apps([crypto, asn1, public_key, sasl, inets, oauth, ssl, ibrowse, syntax_tools, compiler, xmerl, mochiweb, os_mon]) of On 11/21/2013 09:36 AM, Robert Newson wrote:{app_would_not_start,asn1} is pretty telling. try 'erl' then "application:start(asn1)." and see what error you get. If it's a not_started for some other app, try starting that one. You'll probably do this a few times before finding the thing that fails to start. Likely, it will be one that requires zlib or libssl or something. B. On 21 November 2013 14:31, Vivek Pathak <[email protected]> wrote:Hi I was following the steps given in http://docs.couchdb.org/en/latest/install/unix.html for couchdb 1.5 install from source. After installing dependencies through the yum commands, I could build and install couchdb. Next I made changes to its home directory and gave permissions for user couchdb to those directories. Then I started couchdb but got error : sudo -i -u couchdb /usr/local/bin/couchdb {"init terminating in do_boot",{{badmatch,{error,{{app_would_not_start,asn1},{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}} Crash dump was written to: erl_crash.dump init terminating in do_boot () Both erl and js-devel versions appear to be reasonable for what is given in the install guide. The crash dump is a large file. Is there any guide on how to actually locate what is causing the problem? Thank you Vivek
