I already tried that option, it even broke something else.
but got
1> application:start(couch).
{error,{"no such file or directory","couch.app"}}It looks like erl is not inheriting or not obeying sudo But finally, the below step did help me solve privilege issues, 1. sudo bash 2. set ERL_LIBS 3. export it 4. erl Actual steps are 1. sudo bash 2. ERL_LIBS=/usr/local/lib/couchdb/erlang/lib 3. export ERL_LIBS 4. echo $ERL_LIBS --- to verify the var is set properly 5. erl 6. solved in my macbook OS-X 10.5.8 :) Thanks paul. On Sat, Oct 31, 2009 at 8:10 PM, Paul Davis <[email protected]>wrote: > Senthilkumar, > > You'll need to make sure that the user running the Erlang shell has > permissions to read/write to all the required directories as usual. A > quick test would be to do > > $ ERL_LIBS=/usr/local/lib/couchdb/erlang/lib sudo erl > 1> application:start(couch). > > Paul Davis > > On Sat, Oct 31, 2009 at 8:49 PM, Senthilkumar Peelikkampatti > <[email protected]> wrote: > > Paul, > > Thanks for the quick reply, > > > > May be I am doing something wrong, > > > > These are the things I did to run couchdb using shell scripts > > > > 1. pull the source from SVN directly > > 2. ./bootstrap and ./configure > > 3. make && sudo make install > > 4. I usually start in admin mode (sudo ./couchdb ) > > > > Now, > > for emulator start, I tried with your approach and got the following > > error > > > > application: couch > > exited: {bad_return,{{couch_app,start, > > [normal, > > > ["/usr/local/etc/couchdb/default.ini", > > > "/usr/local/etc/couchdb/local.ini"]]}, > > {'EXIT',{{badmatch,{error,shutdown}}, > > [{couch_server_sup,start_server,1}, > > > {application_master,start_it_old,4}]}}}} > > > > I verified that the above config default.ini and local.ini is available > at > > the above location. Is there something wrong? > > > > -- > > Regards, > > Senthilkumar Peelikkampatti, > > http://pmsenthilkumar.blogspot.com/ > > > > > > On Sat, Oct 31, 2009 at 7:28 PM, Paul Davis <[email protected] > >wrote: > > > >> Senthilkumar, > >> > >> The basic application loading should work something like this: > >> > >> $ ERL_LIBS=/usr/local/lib/couchdb/erlang/lib erl > >> 1> application:start(couch). > >> > >> Paul Davis > >> > >> On Sat, Oct 31, 2009 at 8:18 PM, Senthilkumar Peelikkampatti > >> <[email protected]> wrote: > >> > Paul, > >> > I am on 0.11.xxx > >> > Detailed one below, > >> > Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2] [async-threads:0] > >> > [hipe] [kernel-poll:true] > >> > -- > >> > Regards, > >> > Senthilkumar Peelikkampatti, > >> > http://pmsenthilkumar.blogspot.com/ > >> > > >> > Eshell V5.7.2 (abort with ^G) > >> > 1> Apache CouchDB 0.11.0b830800 (LogLevel=info) is starting. > >> > Apache CouchDB has started. Time to relax. > >> > > >> > On Sat, Oct 31, 2009 at 6:44 PM, Paul Davis < > [email protected] > >> >wrote: > >> > > >> >> On Sat, Oct 31, 2009 at 7:01 PM, Senthilkumar Peelikkampatti > >> >> <[email protected]> wrote: > >> >> > I found almost 7-8 times faster when I use hovercraft compare to > http > >> >> > interfaced client like couchbeam or ecouch > >> >> > >> >> That sounds about right. > >> >> > >> >> > Besides, I am also trying to embed couchdb with my other Erlang > >> >> application > >> >> > but when I looked at the startup parameter of the couchdb it is not > a > >> >> naive > >> >> > job to eliminate all the hard work of shell script. > >> >> > >> >> What version are you on? Trunk and 0.10.x should both simplify the > >> >> startup procedure for starting in the VM by doing something like > >> >> application:start(couch). > >> >> > >> >> HTH, > >> >> Paul Davis > >> >> > >> > > >> > > > > > > > > -- > > Regards, > > Senthilkumar Peelikkampatti, > > http://pmsenthilkumar.blogspot.com/ > > > -- Regards, Senthilkumar Peelikkampatti, http://pmsenthilkumar.blogspot.com/
