Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Install MongoDB on RasPi

 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone here tried this? Would the plain Linux version of the MongoDB packages work? From what I see after searching for install instructions for MongoDB on RasPi, there is a particular fork that most of them point to!

https://github.com/skrabban/mongo-nonx86

From what I read on the GitHub of that fork is that, it is MongoDB version 1.8 and since this would be a fresh install for my on my RasPi, I would want to install the latest version of MongoDB. Has anyone installed the standard Linux package of MongoDB on your RasPi?

 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richard Tookey wrote:http://c-mobberley.com/wordpress/index.php/2013/10/14/raspberry-pi-mongodb-installation-the-working-guide/


I actually knew that blog. The problem is that the Github fork he refers to in that article is for an older version of MongoDB. I'm actually looking for a fork that is nonx86 based for a newer MongoDB version.
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With no options left, I'm trying the 1.8 version as mentioned in the blog post. It is almost 2 hours and the compilation is still going on!
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It took almost 7 hours to get MongoDB compiled on the RasPi!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
It took us 4 hours to compile opencv and over 3 hours to compile image magik. By contrast it took 2.5 minutes to compile the later on a Mac. In other words, plan accordingly, this is normal. And if you have the ability, keep/host the compiled version so you don't have to do it again.

reference for stats
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did leave it run the whole night and it completed successfully. I did manage to install it as well. Like I mentioned in my other thread, I will now burn the entire SD card image to a backup so that I could restore it anytime I want and not go through the pain of compiling MongoDB again!
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15279
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Raspberry Pi is not a fast computer. On Devoxx (the Java conference in Antwerp, Belgium) a few weeks ago there were a number of presentations about the Raspberry Pi and in one of them, someone showed a graph that shows what the speed of the RPi is relative to a Samsung Galaxy S4, a Core i7 and other processors.

I don't remember the numbers exactly, but an S4 is already a few times faster than an RPi, and a Core i7 is hundreds of times faster.

So you can expect heavy things like compiling MongoDB to take a long time.
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that the RasPi is comparatively slower. All I'm doing on it is purely subject to experimentation. The main reason that I bought those RasPi boxes are completely for a different purpose. I have plans to use them as a dashcam for my car!

But that would take some time and until then I want to pimp them up some heavy duty stuff like MongoDB! Hence the experiment!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic