when I put mongo command on terminal it gives me error like
mongo: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
|
when I put mongo command on terminal it gives me error like mongo: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory |
||||
|
|
|
i guess you installed mongodb by this command :
if then try this
Here is a nice tutorial about Getting started with MongoDB under Ubuntu Hope this helps. UPDATE: This bug is fixed in the version 1:1.2.2-1ubuntu1.1. see the bug entry. |
||||
|
|
|
This sounds like you simply downloaded mongodb tarball and installed it without all of the dependencies. You should either download the deb file or setup apt to get the deb from the 10gen repos. See here. Your error is most likely due to the fact that you're missing the xulrunner package, which is part of the mozilla/firefox stuff. Mongo uses the javascript engine that is part of firefox. One note: due to the fact that mongo depends on xulrunner, xulrunner depends on lots of other things, be prepared to install lots of seemingly unnecessary packages to get mongo running. |
|||
|
|