Wednesday, April 13, 2022

[SOLVED] How to Install mongod with libcurl4?

Issue

Debian10 upgraded to libcurl4 and as a result, the installation of mongo server fails. Is it possible to run mongod with libcurl4?

On executing the mongod binary I get /usr/bin/mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/bin/mongod).

On trying to install libcurl3 I get the message that libcurl4 replaces it.


Solution

This question is outdated. There is now a Debian10 version available.

(Old answer) For now, simply use the version built for Ubuntu 18.4 Visit https://www.mongodb.com/try/download/community and download the Ubuntu 18.4 version. Ubuntu is based on Debian Testing, so there shouldn't be issues regarding using that version. Mongo will probably update their Debian version soon. Then you may install the Debian10

There is already a Debian 10 version available in the same link.

After downloading you can use this command to install (provided your shell is in the same folder as the downloaded package):

sudo dpkg -i mongodb-org-server*.deb


Answered By - ndvo
Answer Checked By - Marilyn (WPSolving Volunteer)