Skip to content

Instantly share code, notes, and snippets.

@cuibonobo
Created July 29, 2014 01:23
Show Gist options
  • Select an option

  • Save cuibonobo/e56cfcfbd2fb387afe4c to your computer and use it in GitHub Desktop.

Select an option

Save cuibonobo/e56cfcfbd2fb387afe4c to your computer and use it in GitHub Desktop.
Installing Mongo on a Raspberry Pi

Source

mongoDB 2.6 and Node.js 0.10.29 on Raspberry Pi

Jul 21

andyRaspberry Pi mongodb, nodejs

mongoDB on Raspberry PiA while back, I compiled mongoDB 2.1 for Raspberry Pi based upon instructions found on other sites and kind work by developers sharing code on Github. I acquired a Raspberry Pi B+ and tried to compile mongoDB as I had done previously. I quickly found out that the (old) compiled version (2.1.1) no longer functions under Raspian.

I had also been trying out Arch Linux for R-Pi as it was "lighter" and did not include all the GUI/X components that I don't use. I use R-Pi for more server centric things and use frame buffer apps for video and images (omxplayer, fbi, fim).

I saw a comment to a posting when Googling for new info for mongoDB on R-Pi. It said, simply, "use Arch Linux". So I did! I had a little trouble getting Arch Linux to run on the B+ but after a firmware update obtained by a "pacman -Syu" on a R-Pi model B, I could now boot and use Arch Linux on the R-Pi B+ :)

I did simple installs via "pacman -S" for "mongodb" and "nodejs". I now have full mongoDB 2.6.3 with utilities, Node.js 0.10.29 and npm 1.4.21 working just fine. Sure mongoDB is pretty slow and can only handle 2GB DBs but I've partitioned my data into multiple DBs and combine queries and results using JavaScript.

My effusive thanks go to the Arch Linux Package maintainers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment