Wednesday, 31 August 2011

libmozjs.so: cannot open shared object file + CouchDB

 Well all the couchdb learner ever ran into this error well it seem that you just miss something

 (If you have already have installed and compile couchdb  with xulrunner skip this step)
 First install the xulrunner package for your distribution.

 For Ubuntu guys its straight forward command (I guess it would be same for other guys as well) 
sudo apt-get install xulrunner-x.y.z-dev
(Note there are other dependencies related to couchdb  installation based on your distribution google and find it) Ubuntu follower here a straight forward link to install couchdb in Ubuntu .

 Once xulrunner and all the related dependencies installed .
 
 Just type the below command
./configure  --with-js-include=/usr/lib/xulrunner-devel-w.x.y.z/include --with-js-lib=/usr/lib/xulrunner-devel-w.x.y.z/lib 
then
sudo make && sudo make install
Oops !!! I missed something (But What ? Compiled and Installation happened successfully :))
Well It seem that we just didn't created the xulrunner.conf  which was the reason why the above error was generating let quickly  fix the error.
sudo vi /etc/ld.so.conf.d/xulrunner.conf
Now add the following lines to your file.
/usr/lib/xulrunner-w.x.y.z
/usr/lib/xulrunner-devel-w.x.y.z
Once done save the file and run ldconfig.
sudo /sbin/ldconfig
That it now your ready to go and hack couchdb.

Hope that it help you in someway or other

Thanks You

No comments:

Post a Comment

What did I learn today?

Welcome to the what did I learn today series. The intention of this blog spot is to compose the stuff that I learnt day-to-day basics and jo...