couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Macdonald <>
Subject revisiting "error while loading shared libraries:"
Date Tue, 17 Nov 2009 22:00:03 GMT
Hi All,

I'm experimenting with couchdb on a CentOS 5.4 system. I'm compiling
erlang, javascript/spidermonkey and couchdb from tar balls. Versions
are couchdb 0.10, spidermonkey 1.8 rc1 and erlang R13B02-1.

I'm doing this from an unprivileged account and running couchdb by
hand by running bin/couchdb. Running the tests, I get many errors
related to couchdbjs not finding I found another thread in
which testing from the command line was suggested. I did that and
found I needed to set LD_LIBRARY_PATH. Running from the command line
now works, but it seems that couchdb clears the environment when

$ set | grep LD_
[couchdb@couchdb realtime]$ set | grep PATH
[couchdb@couchdb realtime]$ ls $LD_LIBRARY_PATH
couchdb  erlang

$ lib/couchdb/bin/couchjs share/couchdb/server/main.js

This a a 64-bit system. I don't know if that makes any difference. LDD
shows a sane value:

$ ldd lib/couchdb/bin/couchjs => /lib64/ (0x0000003465400000) => /usr/lib64/ (0x0000003468000000) => /home/couchdb/realtime/lib/ (0x00002b3cc6d82000)
(rest of output trimmed)

I've set selinux to permissive in case that was the issue. Nothing in
the system logs showing any selinux problems. I want to avoid putting
the javascript lib in a system directory if I can.

Any ideas?


Jeff Macdonald
Ayer, MA

View raw message