This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Install MongoDB on RasPi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Install MongoDB on RasPi" Watch "Install MongoDB on RasPi" New topic
Author

Install MongoDB on RasPi

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

http://c-mobberley.com/wordpress/index.php/2013/10/14/raspberry-pi-mongodb-installation-the-working-guide/
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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

Joined: Sep 26, 2006
Posts: 9344
    
    2

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

Joined: Sep 26, 2006
Posts: 9344
    
    2

It took almost 7 hours to get MongoDB compiled on the RasPi!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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

Joined: Aug 16, 2005
Posts: 14074
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Install MongoDB on RasPi
 
Similar Threads
Client UI for mongoDB
SD card shows only 56MB after RasPi Linux flash
Why rmic does not compile the remote interface implementing?
downloading and installing mysql
Remove all GUI on my RasPi