couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Woodruff <jasonwoodr...@btinternet.com>
Subject Re: Geocouch installation
Date Tue, 06 Dec 2011 15:23:50 GMT
Jason

FIXED

Many thanks for the swift reply.

I had set the environment variable as stated in the Readme: ERL_FLAGS="-pa
/path/to/geocouch/build"
But, your reply enabled me to think about why Erlang couldn't find the
directory.

I had downloaded geocouch into the Downloads directory of my home directory
and hadn't seen the point of moving it.  However, given that Erlang
couldn't perhaps find it, I moved it to /usr/local/src/geocouch ...

Et voila, it works (using the ERL_FLAGS from the ReadMe).

Haven't run the tests yet, though ...

best regards
Jason

On 6 December 2011 13:24, Jason Smith <jhs@iriscouch.com> wrote:

> Hi, Jason. I think this error means that Erlang cannot find your
> couch_spatial.beam file.
>
> I wrote the GeoCouch integration and activation used in Couchbase
> Single Server (or at least, their version of CouchDB)
>
>
> https://github.com/couchbase/couchdb/blob/master/bin/couchdb.tpl.in#L237-251
>
> Basically, set the $ERL_ZFLAGS environment variable before executing
> CouchDB.
>
> export ERL_ZFLAGS="-pz /path/to/geocouch/ebin"
>
> That basically runs `erl -pz /path/to/geocouch/ebin`. The -pz flag
> means to add the specified directory to the end (z) of the search path
> (p).
>
> On Tue, Dec 6, 2011 at 11:58 AM, Jason Woodruff
> <jasonwoodruff@btinternet.com> wrote:
> > OS Ubuntu 11.10
> > Couchdb 1.1.1
> >
> > I have the following in couchdb.log when starting couchdb with geocouch
> > installed:
> >
> > [Tue, 06 Dec 2011 10:40:49 GMT] [error] [<0.86.0>]
> {error_report,<0.31.0>,
> >                       {<0.86.0>,supervisor_report,
> >                        [{supervisor,{local,couch_secondary_services}},
> >                         {errorContext,start_error},
> >                         {reason,
> >                             {'EXIT',
> >                                 {undef,
> >                                     [{couch_spatial,start_link,[]},
> >                                      {supervisor,do_start_child,2},
> >                                      {supervisor,start_children,3},
> >                                      {supervisor,init_children,2},
> >                                      {gen_server,init_it,6},
> >                                      {proc_lib,init_p_do_apply,3}]}}},
> >                         {offender,
> >                             [{pid,undefined},
> >                              {name,spatial_manager},
> >                              {mfargs,{couch_spatial,start_link,[]}},
> >                              {restart_type,permanent},
> >                              {shutdown,1000},
> >                              {child_type,worker}]}]}}
> >
> > I thought I had installed as per the readme file for geocouch.
> >
> > However, there is one ambiguity that I am finding confusing and that is
> the
> > value of <vanilla-couch>.  The readme states this is the path to the
> > couchdb source.  However, the geocouch.ini file is copied to the
> /default.d
> > directory in the installed couchdb and not the source?  Is this correct?
> >
> > The datebase does start, but with the above error.  Curl cannot connect.
> >
> > best regards
> >
> > jason
>
>
>
> --
> Iris Couch
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message