You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Volker Mische <vo...@gmail.com> on 2010/04/21 22:13:46 UTC

Re: Dependency problem while installing the new CouchDB-0.11.0 (libmozjs-dev)

For me it works when I'm in the CouchDB src directory:

"var foo = 1;" > test.js && LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.9 
bin/couchjs_dev test.js

Cheers,
   Volker

On 21.04.2010 21:27, Dan Smythe wrote:
> Well, while I did get CouchDB 0.11 to compile, it certainly doesn't work
> correctly. The error log is littered with items such as:
>
> [Sat, 17 Apr 2010 21:17:47 GMT] [debug] [<0.91.0>] Linked process died
> abnormally:<0.9403.127>  (reason: {epipe,
>
> [{erlang,port_command,
>                                                           [#Port<0.2987390>,
>                                                            [91,
>
> [34,<<"reset">>,34],
>                                                             44,
>                                                             [123,
>                                                              [34,
>
> <<"reduce_limit">>,
>                                                               34],
>
>   58,<<"true">>,125],
>                                                             93,10]]},
>                                                          {couch_os_process,
>                                                           writeline,2},
>                                                          {couch_os_process,
>                                                           writejson,2},
>                                                          {couch_os_process,
>                                                           handle_call,3},
>                                                          {gen_server,
>                                                           handle_msg,5},
>                                                          {proc_lib,
>
> init_p_do_apply,3}]})
> [Sat, 17 Apr 2010 21:17:57 GMT] [debug] [<0.9407.127>] OS Process
> #Port<0.2987391>  Input  :: ["reset",{"reduce_limit":true}]
>
> [Sat, 17 Apr 2010 21:17:57 GMT] [error] [<0.387.0>] OS Process Error
> <0.9398.127>  :: {os_process_error,{exit_status,1}}
>
> [Sat, 17 Apr 2010 21:17:57 GMT] [error] [<0.9410.127>]
> {error_report,<0.28.0>,
>      {<0.9410.127>,crash_report,
>       [[{pid,<0.9410.127>},
>         {registered_name,[]},
>         {error_info,
>             {exit,
>                 {bad_return_value,{os_process_error,"OS process timed
> out."}},
>                 [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
>         {initial_call,{couch_os_process,init,['Argument__1']}},
>         {ancestors,
>             [couch_query_servers,couch_secondary_services,couch_server_sup,
>              <0.29.0>]},
>         {messages,[{#Port<0.2987393>,{data,{eol,<<"kill -9 2707">>}}}]},
>         {links,[<0.91.0>]},
>         {dictionary,[]},
>         {trap_exit,false},
>         {status,running},
>         {heap_size,610},
>         {stack_size,23},
>         {reductions,226}],
>        []]}}
>
> As well as this:
>
> reserved slot index out of range
> reserved slot index out of range
>
> And can be reproduced with something simple like:
>
> [root@ ]# echo "var foo = 1;">  test.js&&  couchjs test.js
> reserved slot index out of range
>
> Any ideas?
>
> Cheers~
>
> On Wed, Apr 21, 2010 at 12:01 PM, Volker Mische<vo...@gmail.com>wrote:
>
>> On 21.04.2010 20:47, Julian Moritz wrote:
>>
>>> Hi,
>>>
>>> Magesh S schrieb:
>>>
>>>> i'm getting the following dependency error while installing the new
>>>> couchDB
>>>>
>>>>     configure: error: Could not find the js library.
>>>>     Is the Mozilla SpiderMonkey library installed?
>>>>
>>>> the above error is thrown when i do ./configure
>>>>
>>>>
>>> I've got still a crashing version of couchdb installed, since I've got
>>> xulrunner version 1.9.1.9 on my system running which seems not to be
>>> compatible with version 0.11 of couchdb.
>>>
>>> so atm maybe it's not possible to install couchdb on an ubuntu desktop
>>> machine.
>>>
>>>
>> When does it crash? Have you set the correct paths?
>> I use for configure:
>> ./configure --with-js-lib=/usr/lib/xulrunner-devel-1.9.1.9/lib
>> --with-js-include=/usr/include/xulrunner-1.9.1.9/unstable
>>
>> And for running it:
>> LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.8 ./utils/run
>>
>> Cheers,
>>   Volker
>>
>


Re: Dependency problem while installing the new CouchDB-0.11.0 (libmozjs-dev)

Posted by Dan Smythe <xk...@gmail.com>.
I was able to get it working again, and not running into errors. It appears
that it compiled silently without errors against the wrong spidermonkey
libraries, despite my attempts to compile against the later ones ( 1.8 ).

After setting the js-include paths correctly, I was able to alleviate the
problem. So if anyone else runs into a similar issues, MAKE CERTAIN that the
js libraries you compiled against are the same on the destination host.

A more descriptive error message would be useful.

Cheers~


On Wed, Apr 21, 2010 at 1:13 PM, Volker Mische <vo...@gmail.com>wrote:

> For me it works when I'm in the CouchDB src directory:
>
> "var foo = 1;" > test.js && LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.9
> bin/couchjs_dev test.js
>
> Cheers,
>  Volker
>
>
> On 21.04.2010 21:27, Dan Smythe wrote:
>
>> Well, while I did get CouchDB 0.11 to compile, it certainly doesn't work
>> correctly. The error log is littered with items such as:
>>
>> [Sat, 17 Apr 2010 21:17:47 GMT] [debug] [<0.91.0>] Linked process died
>> abnormally:<0.9403.127>  (reason: {epipe,
>>
>> [{erlang,port_command,
>>
>>  [#Port<0.2987390>,
>>                                                           [91,
>>
>> [34,<<"reset">>,34],
>>                                                            44,
>>                                                            [123,
>>                                                             [34,
>>
>> <<"reduce_limit">>,
>>                                                              34],
>>
>>  58,<<"true">>,125],
>>                                                            93,10]]},
>>                                                         {couch_os_process,
>>                                                          writeline,2},
>>                                                         {couch_os_process,
>>                                                          writejson,2},
>>                                                         {couch_os_process,
>>                                                          handle_call,3},
>>                                                         {gen_server,
>>                                                          handle_msg,5},
>>                                                         {proc_lib,
>>
>> init_p_do_apply,3}]})
>> [Sat, 17 Apr 2010 21:17:57 GMT] [debug] [<0.9407.127>] OS Process
>> #Port<0.2987391>  Input  :: ["reset",{"reduce_limit":true}]
>>
>> [Sat, 17 Apr 2010 21:17:57 GMT] [error] [<0.387.0>] OS Process Error
>> <0.9398.127>  :: {os_process_error,{exit_status,1}}
>>
>> [Sat, 17 Apr 2010 21:17:57 GMT] [error] [<0.9410.127>]
>> {error_report,<0.28.0>,
>>     {<0.9410.127>,crash_report,
>>      [[{pid,<0.9410.127>},
>>        {registered_name,[]},
>>        {error_info,
>>            {exit,
>>                {bad_return_value,{os_process_error,"OS process timed
>> out."}},
>>                [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
>>        {initial_call,{couch_os_process,init,['Argument__1']}},
>>        {ancestors,
>>            [couch_query_servers,couch_secondary_services,couch_server_sup,
>>             <0.29.0>]},
>>        {messages,[{#Port<0.2987393>,{data,{eol,<<"kill -9 2707">>}}}]},
>>        {links,[<0.91.0>]},
>>        {dictionary,[]},
>>        {trap_exit,false},
>>        {status,running},
>>        {heap_size,610},
>>        {stack_size,23},
>>        {reductions,226}],
>>       []]}}
>>
>> As well as this:
>>
>> reserved slot index out of range
>> reserved slot index out of range
>>
>> And can be reproduced with something simple like:
>>
>> [root@ ]# echo "var foo = 1;">  test.js&&  couchjs test.js
>> reserved slot index out of range
>>
>> Any ideas?
>>
>> Cheers~
>>
>> On Wed, Apr 21, 2010 at 12:01 PM, Volker Mische<volker.mische@gmail.com
>> >wrote:
>>
>>  On 21.04.2010 20:47, Julian Moritz wrote:
>>>
>>>  Hi,
>>>>
>>>> Magesh S schrieb:
>>>>
>>>>  i'm getting the following dependency error while installing the new
>>>>> couchDB
>>>>>
>>>>>    configure: error: Could not find the js library.
>>>>>    Is the Mozilla SpiderMonkey library installed?
>>>>>
>>>>> the above error is thrown when i do ./configure
>>>>>
>>>>>
>>>>>  I've got still a crashing version of couchdb installed, since I've got
>>>> xulrunner version 1.9.1.9 on my system running which seems not to be
>>>> compatible with version 0.11 of couchdb.
>>>>
>>>> so atm maybe it's not possible to install couchdb on an ubuntu desktop
>>>> machine.
>>>>
>>>>
>>>>  When does it crash? Have you set the correct paths?
>>> I use for configure:
>>> ./configure --with-js-lib=/usr/lib/xulrunner-devel-1.9.1.9/lib
>>> --with-js-include=/usr/include/xulrunner-1.9.1.9/unstable
>>>
>>> And for running it:
>>> LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.8 ./utils/run
>>>
>>> Cheers,
>>>  Volker
>>>
>>>
>>
>