Open breathe opened 11 years ago
a closer look shows that this is the same problem reported here:
https://github.com/iriscouch/build-couchdb/issues/60
It doesn't seem very 'batteries included' for this to be a problem with the build ... The only workaround I could figure that keeps compatibility with other built components (eg init.d script) -- is to move the couchdb script to _couchhack and generate a wrapper which calls couchdb with the correct ERL_FLAGS set ...
Can there be a better way ...?
Yes, this is a pain point.
I will merge in the changes I made long ago which make CouchDB search for its own plugins.
build-couchdb with geocouch plugin is producing a non-functioning couchdb for me on centos-6.3 ...
building with
$ ./build-couchdb/build/bin/couchdb Apache CouchDB 1.2.1 (LogLevel=info) is starting. [error] [<0.93.0>] {error_report,<0.31.0>, {<0.93.0>,supervisor_report, [{supervisor,{local,couch_secondary_services}}, {errorContext,start_error}, {reason, {'EXIT', {undef, [{couch_spatial,start_link,[],[]}, {supervisor,do_start_child,2, [{file,"supervisor.erl"},{line,303}]}, {supervisor,start_children,3, [{file,"supervisor.erl"},{line,287}]}, {supervisor,init_children,2, [{file,"supervisor.erl"},{line,253}]}, {gen_server,init_it,6, [{file,"gen_server.erl"},{line,304}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,227}]}]}}}, {offender, [{pid,undefined}, {name,spatial_manager}, {mfargs,{couch_spatial,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}]}]}} {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/build/etc/couchdb/default.ini","/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/build/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump init terminating in do_boot ()