-1

I would like to install the latest version of MongoDB on my rpi 3 but apt-get install the version 2.4.

How can I install the latest?

closed as unclear what you're asking by roaima, Jeff Schaller, GAD3R, Jesse_b, Hauke Laging Apr 1 '18 at 0:00

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What do you define as "the latest" version? The latest one in a RPi repository? The bleeding-edge development version somewhere in github-land? Some other version? – roaima Mar 31 '18 at 15:26
1

You need a 64bit OS, So copy that to your sdcard first.

Then you can install(3.2) from a repository

apt show mongodb-server 2>/dev/null | grep Version
Version: 1:3.2.11-2+deb9u1

or install(3.6) from source;

apt install git python-pip
mkdir /opt/mongodb
cd /opt/mongodb
wget http://prdownloads.sourceforge.net/scons/scons-3.0.1.tar.gz
tar -xzf scons-3.0.1.tar.gz
cd scons-3.0.1
python setup.py install
cd ../
git clone --depth 1 https://github.com/mongodb/mongo.git --branch v3.6
cd mongo
pip install -r buildscripts/requirements.txt
scons-3.0.1 core MONGO_VERSION=3.6.0-$(git rev-parse --short HEAD)
scons-3.0.1 install
  • What do I need to copy on my sdcard? – kamal951 Mar 31 '18 at 13:35
  • Which OS do you recommend me to take? – kamal951 Mar 31 '18 at 14:35
  • Yes, the latest Raspbian is armv7l, so a 32 bit. – kamal951 Mar 31 '18 at 15:36
  • I don’t know if this is the start of an answer, but it certainly doesn’t include installing the latest mongodb... – Jeff Schaller Mar 31 '18 at 16:28
  • There is 32-bit mongodb, only its maximal db size is limited to 32 bits. – peterh Mar 31 '18 at 17:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.