Can't install Mongodb on Centos 7

Hi everyone,
I was unable to install mongodb on Centos 7. The repository file’s content is listed below.

[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc

This problem will appear when I try to install. Please refer below

Please advise me on how to resolve this issue. Thank you.

Hi @arshraf_jalil,
Try It as baseurl:

https://repo.mongodb.org/yum/redhat/7/mongodb-org/6.0/x86_64/

And then try to reinstall

Regards

1 Like

Looks like your host is only pulling 32bit repos (i386). A 64bit host is required for mongodb.

4 Likes

You are correct @chris . Thank you very much. I was able to install MongoDB after switching from 32bit to 64bit operating system

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.