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.
-
2I 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.Dougie– Dougie2019年09月20日 22:10:38 +00:00Commented Sep 20, 2019 at 22:10
-
1You 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?Ingo– Ingo2019年09月20日 22:19:09 +00:00Commented 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?tlfong01– tlfong012019年09月21日 04:14:05 +00:00Commented 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 driversMatthew Haywood– Matthew Haywood2019年09月21日 13:33:24 +00:00Commented Sep 21, 2019 at 13:33
-
I have tried the Raspian Buster 64 Kernel and the same has happened.Matthew Haywood– Matthew Haywood2019年09月21日 19:59:36 +00:00Commented Sep 21, 2019 at 19:59
2 Answers 2
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
Maybe try
sudo apt-get install -y mongodb-server
-
2Please 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.Ingo– Ingo2019年11月22日 11:28:25 +00:00Commented Nov 22, 2019 at 11:28