You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Senthilkumar Peelikkampatti <se...@gmail.com> on 2009/11/21 03:51:36 UTC

Couchdb and erlang library issues

Couchdb is injecting itself into Erlang lib and one of the library I am most
interested in is "mochiweb". I have an Erlang application which also uses
Mochiweb and both lib uses different version. My app actually isolates
Mochiweb into different directory and uses erlang library (ERL_LIBS) to put
it in library path. It is nice isolation which couchdb lacks or I am not
aware of this isolation from couchdb. Do you guys have any thought on this?
How in this situation, mutual differential libraries are handled?

-- 
Regards,
Senthilkumar Peelikkampatti,
http://pmsenthilkumar.blogspot.com/

Re: Couchdb and erlang library issues

Posted by Senthilkumar Peelikkampatti <se...@gmail.com>.
This is really my mistake as i didn't mention which system i have this
issue. Thanks Adam.


On Fri, Nov 20, 2009 at 9:26 PM, Adam Kocoloski <ko...@apache.org> wrote:

> Ah, thanks for the clarification.  I shouldn't have been so definitive, I
> wasn't aware that's how the Windows build worked.  Thanks for bringing this
> up.  Best,
>
> Adam
>
> On Nov 20, 2009, at 10:23 PM, Senthilkumar Peelikkampatti wrote:
>
> > Thanks Adam, In Mac it is doing as you explained but in windows currently
> it
> > is not.
> >
> > On Fri, Nov 20, 2009 at 9:00 PM, Adam Kocoloski <ko...@apache.org>
> wrote:
> >
> >> On Nov 20, 2009, at 9:51 PM, Senthilkumar Peelikkampatti wrote:
> >>
> >>> Couchdb is injecting itself into Erlang lib and one of the library I am
> >> most
> >>> interested in is "mochiweb". I have an Erlang application which also
> uses
> >>> Mochiweb and both lib uses different version. My app actually isolates
> >>> Mochiweb into different directory and uses erlang library (ERL_LIBS) to
> >> put
> >>> it in library path. It is nice isolation which couchdb lacks or I am
> not
> >>> aware of this isolation from couchdb. Do you guys have any thought on
> >> this?
> >>> How in this situation, mutual differential libraries are handled?
> >>>
> >>> --
> >>> Regards,
> >>> Senthilkumar Peelikkampatti,
> >>> http://pmsenthilkumar.blogspot.com/
> >>
> >> Hi, CouchDB is certainly not injecting itself into the Erlang lib
> >> directory; it installs OTP apps including mochiweb in
> >> $PREFIX/lib/couchdb/erlang/lib.  The startup script uses ERL_LIBS to add
> >> this directory to the code path on startup.
> >>
> >> Currently the CouchDB startup script does not preserve a user's current
> >> value of ERL_LIBS, so that may be one area for improvement.  Best,
> >>
> >> Adam
> >>
> >>
> >
> >
> > --
> > Regards,
> > Senthilkumar Peelikkampatti,
> > http://pmsenthilkumar.blogspot.com/
>
>


-- 
Regards,
Senthilkumar Peelikkampatti,
http://pmsenthilkumar.blogspot.com/

Re: Couchdb and erlang library issues

Posted by Adam Kocoloski <ko...@apache.org>.
Ah, thanks for the clarification.  I shouldn't have been so definitive, I wasn't aware that's how the Windows build worked.  Thanks for bringing this up.  Best,

Adam

On Nov 20, 2009, at 10:23 PM, Senthilkumar Peelikkampatti wrote:

> Thanks Adam, In Mac it is doing as you explained but in windows currently it
> is not.
> 
> On Fri, Nov 20, 2009 at 9:00 PM, Adam Kocoloski <ko...@apache.org> wrote:
> 
>> On Nov 20, 2009, at 9:51 PM, Senthilkumar Peelikkampatti wrote:
>> 
>>> Couchdb is injecting itself into Erlang lib and one of the library I am
>> most
>>> interested in is "mochiweb". I have an Erlang application which also uses
>>> Mochiweb and both lib uses different version. My app actually isolates
>>> Mochiweb into different directory and uses erlang library (ERL_LIBS) to
>> put
>>> it in library path. It is nice isolation which couchdb lacks or I am not
>>> aware of this isolation from couchdb. Do you guys have any thought on
>> this?
>>> How in this situation, mutual differential libraries are handled?
>>> 
>>> --
>>> Regards,
>>> Senthilkumar Peelikkampatti,
>>> http://pmsenthilkumar.blogspot.com/
>> 
>> Hi, CouchDB is certainly not injecting itself into the Erlang lib
>> directory; it installs OTP apps including mochiweb in
>> $PREFIX/lib/couchdb/erlang/lib.  The startup script uses ERL_LIBS to add
>> this directory to the code path on startup.
>> 
>> Currently the CouchDB startup script does not preserve a user's current
>> value of ERL_LIBS, so that may be one area for improvement.  Best,
>> 
>> Adam
>> 
>> 
> 
> 
> -- 
> Regards,
> Senthilkumar Peelikkampatti,
> http://pmsenthilkumar.blogspot.com/


Re: Couchdb and erlang library issues

Posted by Senthilkumar Peelikkampatti <se...@gmail.com>.
Thanks Adam, In Mac it is doing as you explained but in windows currently it
is not.

On Fri, Nov 20, 2009 at 9:00 PM, Adam Kocoloski <ko...@apache.org> wrote:

> On Nov 20, 2009, at 9:51 PM, Senthilkumar Peelikkampatti wrote:
>
> > Couchdb is injecting itself into Erlang lib and one of the library I am
> most
> > interested in is "mochiweb". I have an Erlang application which also uses
> > Mochiweb and both lib uses different version. My app actually isolates
> > Mochiweb into different directory and uses erlang library (ERL_LIBS) to
> put
> > it in library path. It is nice isolation which couchdb lacks or I am not
> > aware of this isolation from couchdb. Do you guys have any thought on
> this?
> > How in this situation, mutual differential libraries are handled?
> >
> > --
> > Regards,
> > Senthilkumar Peelikkampatti,
> > http://pmsenthilkumar.blogspot.com/
>
> Hi, CouchDB is certainly not injecting itself into the Erlang lib
> directory; it installs OTP apps including mochiweb in
> $PREFIX/lib/couchdb/erlang/lib.  The startup script uses ERL_LIBS to add
> this directory to the code path on startup.
>
> Currently the CouchDB startup script does not preserve a user's current
> value of ERL_LIBS, so that may be one area for improvement.  Best,
>
> Adam
>
>


-- 
Regards,
Senthilkumar Peelikkampatti,
http://pmsenthilkumar.blogspot.com/

Re: Couchdb and erlang library issues

Posted by Adam Kocoloski <ko...@apache.org>.
On Nov 20, 2009, at 9:51 PM, Senthilkumar Peelikkampatti wrote:

> Couchdb is injecting itself into Erlang lib and one of the library I am most
> interested in is "mochiweb". I have an Erlang application which also uses
> Mochiweb and both lib uses different version. My app actually isolates
> Mochiweb into different directory and uses erlang library (ERL_LIBS) to put
> it in library path. It is nice isolation which couchdb lacks or I am not
> aware of this isolation from couchdb. Do you guys have any thought on this?
> How in this situation, mutual differential libraries are handled?
> 
> -- 
> Regards,
> Senthilkumar Peelikkampatti,
> http://pmsenthilkumar.blogspot.com/

Hi, CouchDB is certainly not injecting itself into the Erlang lib directory; it installs OTP apps including mochiweb in $PREFIX/lib/couchdb/erlang/lib.  The startup script uses ERL_LIBS to add this directory to the code path on startup.

Currently the CouchDB startup script does not preserve a user's current value of ERL_LIBS, so that may be one area for improvement.  Best,

Adam