Install mongodb need the libcurl3,but mine is libcurl4

603 views
Skip to first unread message

cbl...@gmail.com

unread,
Apr 13, 2019, 2:10:51 PM4/13/19
to mongodb-user
When I install mongodb,it need the dependence libcurl3,but my system has install libcurl4.
And the libcurl3 couldn't find in my source,it is replaced by libcurl4,
How I goon?

Andrew Morrow

unread,
Apr 15, 2019, 10:08:50 AM4/15/19
to mongod...@googlegroups.com

Hi -

More information will be required to answer this question.

What version of MongoDB are you trying to install? What distro and version are you trying to install it on? Where did you obtain the MongoDB packages or tarballs you are installing?

Thanks,
Andrew


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/a19525bf-c6a5-43c1-917c-e3b8470d6198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shin.Ice

unread,
May 26, 2019, 5:22:19 PM5/26/19
to mongodb-user
Hi,

I'm attaching me to this thread with more or less the same issue, I'm doing an OS upgrade an not a clean installation with a running mongo on version 4.0.9
I run a Debian testing and need to upgrade to libcurl4 that breaks my mongodb installation since libcurl4 is needed.

As I saw in the mongo jira (SERVER-35885) the problem should be solved and looking at the "[mongodb-user] Re: libcurl3 dependency error" thread and your hint ( @acm ) with readelf, it yes clearly tells "libcurl.so.4" but I see the problem in the package it selfe.

 # readelf -a mongod  | grep curl | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]

 # apt show mongodb-org-server | grep Depends

Depends: libc6 (>= 2.18), libcurl3 (>= 7.16.2), libgcc1 (>= 1:4.2), libssl1.1 (>= 1.1.0), adduser, tzdata

# apt install libcurl4
...snip...
The following packages will be REMOVED:
  libcurl3 mongodb-org mongodb-org-server php7.0-curl
The following NEW packages will be installed:
  libcurl4 php7.3-common php7.3-curl
...snip...

If there isn't any further problem with libcurl4, why don't update/change the depency inside the deb?

Thanks and greetings
Shin


Am Montag, 15. April 2019 16:08:50 UTC+2 schrieb acm:

Hi -

More information will be required to answer this question.

What version of MongoDB are you trying to install? What distro and version are you trying to install it on? Where did you obtain the MongoDB packages or tarballs you are installing?

Thanks,
Andrew


On Sat, Apr 13, 2019 at 2:10 PM <cbl...@gmail.com> wrote:
When I install mongodb,it need the dependence libcurl3,but my system has install libcurl4.
And the libcurl3 couldn't find in my source,it is replaced by libcurl4,
How I goon?

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongod...@googlegroups.com.

Shin.Ice

unread,
Jul 3, 2019, 3:59:42 AM7/3/19
to mongodb-user
It's sad to see that no one cares about this problem.
I sent a mail also to the maintainer of the deb package, asking for help and even a clarification. What i got back was something I did not expected, he is no longer the maintainer of the deb (current releases are still build with his name), but he redirected me to this group.

Yeah it's a rant, a rant because it is difficult to choose if it is better to use a software and watch how the other gets outdated or even kick it.

Stephen Steneker

unread,
Jul 10, 2019, 2:22:07 AM7/10/19
to mongodb-user
On Wednesday, 3 July 2019 17:59:42 UTC+10, Shin.Ice wrote:
It's sad to see that no one cares about this problem.
I sent a mail also to the maintainer of the deb package, asking for help and even a clarification. What i got back was something I did not expected, he is no longer the maintainer of the deb (current releases are still build with his name), but he redirected me to this group.

Hi,

Can you please confirm the version of Debian you are using? The Debian Testing (Sid) rolling releases are not supported for packaged installs from mongodb.org as dependencies will change over the rolling release cycle.

For MongoDB 4.0, Debian 8 & 9 are currently supported: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/. I believe the libcurl conflict was introduced during the Debian 10 (Buster) development cycle, so Ubuntu 18.04 and Debian 10 will have libcurl4 dependencies but Debian 9 is still using libcurl3.

The initial release of Debian 10 was only a few days ago. There's a request for Debian 10 support that you can watch/upvote if relevant: SERVER-42115.

Regards,
Stennie

Skyrider

unread,
Sep 24, 2019, 6:53:52 AM9/24/19
to mongodb-user
Any updates regarding this case? I can't use libcurl4 (with php7.3-curl) without breaking mongod  that relies on libcurl3. Using ubuntu 18.04 btw.

Stennie

unread,
Sep 24, 2019, 11:41:51 PM9/24/19
to mongodb-user
On Tuesday, 24 September 2019 20:53:52 UTC+10, Skyrider wrote:
Any updates regarding this case? I can't use libcurl4 (with php7.3-curl) without breaking mongod  that relies on libcurl3. Using ubuntu 18.04 btw.

Hi Skyrider,

The thread you commented on is about Debian 10.

Ubuntu 18.04 is already supported for MongoDB 4.0+ (and will use the correct libcurl dependency), so just make sure you install the packages as per https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/. For an overview of platform support please see Supported Platforms in the MongoDB Production Notes.

If you are still having difficulty, please start a new thread detailing the steps you've taken to install or upgrade MongoDB in your environment (and including the specific version of MongoDB server you are using).

Thanks,
Stennie
Reply all
Reply to author
Forward
0 new messages