Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I recently installed mongodb for a project for a data mining class I'm taking and while loading all the documents I needed I got an error specifying mongodb is out of memory and that I needed to install the 64 bit version to add additional records to the database.

Problem is, I don't know how to do that (or uninstall the 32 bit version..).

share|improve this question
    
How did you install -- with apt-get & friends? –  dampier Mar 20 '13 at 19:15
    
Yup, apt-get for sure. –  Ben Nelson Mar 20 '13 at 19:17
    
ok, next silly question :) you are running a 64-bit linux distro, right? –  dampier Mar 20 '13 at 19:21
    
thanks for your help! –  Ben Nelson Mar 20 '13 at 19:23
    
yeah i have the 32-bit version, just double checked –  Ben Nelson Mar 20 '13 at 19:24
add comment

1 Answer

Based on a little poking around and this thread, I think apt-get install mongodb or mongodb-10gen will "just work" and install a 32-bit mongo server on a 32-bit linux distro, or a 64-bit mongo server on a 64-bit distro.

Which do you have? Try this:

$ arch
x86_64

That tells me I'm running 64-bit linux. So I can choose to run either 32-bit mongo or 64-bit mongo. If there were a "32" in there, I'd be running a 32-bit linux distro, and could only run 32-bit mongo atop it.

Now, take all this with a grain of salt, as I personally use apt-get for practically everything except mongodb, which I manage several versions of concurrently.

So, I find it simpler and more predictable to just go to the 10gen distributions page, and download and untar the version I want. After that, executing the right bin/mongod just works right out of the box.

Hope this helps!

share|improve this answer
    
hey thanks! i'll try and untar the other mongo distro, i used apt-get so it got the 32 bit version since i have an i686 (32 bit os though) machine. hopefully it works out, i have 9+ million records in this database that i want to use for this project.. –  Ben Nelson Mar 20 '13 at 19:45
    
9M records -- no sweat! :) You will need a 64-bit OS though to run 64-bit mongod. –  dampier Mar 20 '13 at 19:52
    
Or use a cloud service like mongolab.com and be rid of such nonsensical distinctions. ( full disclosure: i work at MongoLab. :) –  dampier Mar 20 '13 at 19:55
    
ha, can you hook me up with 4gb fo free?! lol –  Ben Nelson Mar 20 '13 at 20:08
    
i have a question though, is it possible to run a virtual machine with 64 bit ubuntu on an ubuntu box with 64 bit mongodb installed on that? i dont wanna re install my operating system... –  Ben Nelson Mar 20 '13 at 20:09
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.