Raspberry Pi MongoDB Setup

MongoDB on Raspberry Pi is a nice thing. But you can’t simply install the normal version. Fortunately someone still provide a special pi version. The MongoPi !

INSTALLATION:
1.  Install git and others

sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev

2. clone the git mongo pi repository

git clone git://github.com/RickP/mongopi.git

3. go in the folder were mongopi is located

cd mongopi
scons
 

4. wait (it take about 2,5 h)

5. the actual installation 😉 (it will be installed to /opt/mongo/ )

sudo scons --prefix=/opt/mongo install

6. Add MongoPI the the Path Variable

PATH=$PATH:/opt/mongo/bin/
export PATH

STARTING:

1. Run this command:

mongod

2. (if your are running into a error saying that the path /data/db does not exist – simply create it)

cd /
sudo mkdir /data/
cd data/
sudo mkdir db

3.
…..to be continued…..

Advertisements

Posted on August 5, 2013, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: