0

I can't seem to install the latest version of mongoDB on Raspberry pi 4. I have tried doing

sudo apt-get install mongodb 

This installs mongoDB 2.4.

asked Sep 20, 2019 at 20:17
5
  • 2
    I thought MongoDB needed a 64-bit OS. The current Raspbian version is 32-bit. So you either need to try with the Gentoo64 OS, try with the experimental Raspbian 64 kernel or try installing an old 32-bit version of Mongo. Commented Sep 20, 2019 at 22:10
  • 1
    You have already installed MongoDB raspberrypi.stackexchange.com/q/103781/79866 and you wrote here again "This installs mongoDB 2.4". So what's the question? Do you want another version? Commented Sep 20, 2019 at 22:19
  • Just now I tried your command to install mongodb. A couple of minutes later, I got the message "Processing triggers for systemd (241 ...), then *** Error: Timeout was reached ***. Are you asking how to solve the timeout problem? Commented Sep 21, 2019 at 4:14
  • no, it installs fine however when I go to run my node.js app it then creates an error which says that the version of mongodb installed is not up to date and doesn't work with the node mongo drivers Commented Sep 21, 2019 at 13:33
  • I have tried the Raspian Buster 64 Kernel and the same has happened. Commented Sep 21, 2019 at 19:59

2 Answers 2

0

You need a 64-bit OS to install the latest version of MongoDB on a Raspberry Pi.

Since the Pi platform is not officially supported anymore by MongoDB, you can compile from source by yourself by following these detailed instructions, or download the unofficial binaries I have created: https://github.com/themattman/mongodb-raspberrypi-binaries

answered Mar 2, 2023 at 21:23
-2

Maybe try

sudo apt-get install -y mongodb-server
Greenonline
2,9725 gold badges27 silver badges38 bronze badges
answered Nov 22, 2019 at 10:14
1
  • 2
    Please explain why do you believe that this will install the latest version of MongoDB and not version 2.4.14 as given in the default Raspbian repository. Commented Nov 22, 2019 at 11:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.