[OpenIndiana-discuss] Building couchdb
Paul Johnston
Paul.A.Johnston at manchester.ac.uk
Sat Nov 6 09:39:28 UTC 2010
On 11/ 6/10 04:47 AM, Moinak Ghosh wrote:
> On Sat, Nov 6, 2010 at 2:33 AM, Paul Johnston
> <Paul.A.Johnston at manchester.ac.uk> wrote:
>> Hi
>> Continuing my attempt to build couchdb.
>> Just wondering if anyone has sucessfully built it on OpenIndiana?
>> I've got it to build but running it I get:
>>
>> paulj at openindiana:~/Downloads/apache-couchdb-1.0.1$ pfexec
>> /usr/local/bin/couchdb
>> Apache CouchDB 1.0.1 (LogLevel=info) is starting.
>>
> ...
>> =INFO REPORT==== 5-Nov-2010::20:57:50 ===
>> application: couch
>> exited: {bad_return,{{couch_app,start,
>> [normal,
>> ["/usr/local/etc/couchdb/default.ini",
>> "/usr/local/etc/couchdb/local.ini"]]},
>> {'EXIT',"ld.so.1: beam.smp: fatal: relocation error:
>> file /usr/lib/libicuuc.so.40: symbol __1cG__CrunKpure_error6F_v_: referenced
>> symbol not found"}}}
>> type: temporary
>>
>> Now it seems I'm really close but there seems to be a problem with libicuuc
>> I got icu from:
>> 499 pfexec pkg install library/icu
>> 500 pfexec pkg install developer/icu
>>
>> Love the message CrunKpure :-)
>> Any thoughts?
>>
> That is a symbol from SUN Studio's C++ runtime lib:
> echo "__1cG__CrunKpure_error6F_v_" | /opt/SUNWspro/bin/c++filt
> void __Crun::pure_error()
>
> /usr/bin/nm /usr/lib/libCrun.so.1 | grep __1cG__CrunKpure_error6F_v_
> [365] | 30008| 47|FUNC |GLOB |0 |12
> |__1cG__CrunKpure_error6F_v_
>
> This looks like libicuuc is not linked properly. Since CouchDB is in
> Erlang as a workaround you can preload that library via this env
> variable:
> LD_PRELOAD=/usr/lib/libCrun.so.1
>
> Regards,
> Moinak.
Fraid no joy yet!
paulj at openindiana:~$ echo $LD_PRELOAD
/usr/lib/libCrun.so.1
paulj at openindiana:~$ pfexec /usr/local/bin/couchdb
Apache CouchDB 1.0.1 (LogLevel=info) is starting.
=CRASH REPORT==== 6-Nov-2010::09:38:06 ===
crasher:
initial call: application_master:init/4
pid: <0.30.0>
registered_name: []
exception exit: {bad_return,
{{couch_app,start,
[normal,
["/usr/local/etc/couchdb/default.ini",
"/usr/local/etc/couchdb/local.ini"]]},
{'EXIT',
"ld.so.1: beam.smp: fatal: relocation
error: file /usr/lib/libicuuc.so.40: symbol __1cG__CrunKpure_error6F_v_:
referenced symbol not found"}}}
in function application_master:init/4
ancestors: [<0.29.0>]
messages: [{'EXIT',<0.31.0>,normal}]
links: [<0.29.0>,<0.7.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 1597
stack_size: 24
reductions: 187
neighbours:
=INFO REPORT==== 6-Nov-2010::09:38:06 ===
application: couch
exited: {bad_return,{{couch_app,start,
[normal,
["/usr/local/etc/couchdb/default.ini",
"/usr/local/etc/couchdb/local.ini"]]},
{'EXIT',"ld.so.1: beam.smp: fatal: relocation
error: file /usr/lib/libicuuc.so.40: symbol __1cG__CrunKpure_error6F_v_:
referenced symbol not found"}}}
type: temporary
Cheers Paul
More information about the OpenIndiana-discuss
mailing list