• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Install MongoDB on RasPi

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://c-mobberley.com/wordpress/index.php/2013/10/14/raspberry-pi-mongodb-installation-the-working-guide/
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It took almost 7 hours to get MongoDB compiled on the RasPi!
 
author & internet detective
Posts: 40913
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic