MongoDB 7 build Issue

Hi Team,

While I tried to install mongodb7 version. It’s dependency python2 rpm asking to install. Here I have cheked with unix team. They confirmed python2 is desupported verion. Kindly help me to fix the issue.

yum install mongodb-org

Updating Subscription Management repositories.
Last metadata expiration check: 0:04:21 ago on Wed 06 Mar 2024 01:40:20 PM UTC.
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
mongodb-org x86_64 7.0.6-1.el7 mongodb-org-7.0 6.2 k
Installing dependencies:
cyrus-sasl x86_64 2.1.27-6.el8_5 rhel-8-for-x86_64-baseos-rpms 96 k
cyrus-sasl-plain x86_64 2.1.27-6.el8_5 rhel-8-for-x86_64-baseos-rpms 48 k
mongodb-database-tools x86_64 100.9.4-1 mongodb-org-7.0 52 M
mongodb-mongosh x86_64 2.1.5-1.el8 mongodb-org-7.0 51 M
mongodb-org-database x86_64 7.0.6-1.el7 mongodb-org-7.0 6.3 k
mongodb-org-database-tools-extra x86_64 7.0.6-1.el7 mongodb-org-7.0 12 k
mongodb-org-mongos x86_64 7.0.6-1.el7 mongodb-org-7.0 25 M
mongodb-org-server x86_64 7.0.6-1.el7 mongodb-org-7.0 36 M
mongodb-org-tools x86_64 7.0.6-1.el7 mongodb-org-7.0 6.2 k
python2 x86_64 2.7.18-15.module+el8.9.0+20125+68111a8f rhel-8-for-x86_64-appstream-rpms 111 k
python2-libs x86_64 2.7.18-15.module+el8.9.0+20125+68111a8f rhel-8-for-x86_64-appstream-rpms 6.0 M
python2-pip-wheel noarch 9.0.3-19.module+el8.9.0+19487+7dc18407 rhel-8-for-x86_64-appstream-rpms 892 k
python2-setuptools-wheel noarch 39.0.1-13.module+el8.9.0+19487+7dc18407 rhel-8-for-x86_64-appstream-rpms 287 k
Installing weak dependencies:
python2-pip noarch 9.0.3-19.module+el8.9.0+19487+7dc18407 rhel-8-for-x86_64-appstream-rpms 1.6 M
python2-setuptools noarch 39.0.1-13.module+el8.9.0+19487+7dc18407 rhel-8-for-x86_64-appstream-rpms 642 k
Enabling module streams:
python27 2.7

Transaction Summary

Install 16 Packages

Total size: 174 M

Kindly follow this when posting:

Check the mongodb repository is setup correctly.
The output shows el7 mongodb packages but the native dependencies (cyrus-sasl, cyrus-sasl-plain) are from el8. This suggests the system is RHEL8 but the monogdb repository configured is RHEL7, and the RHEL7 package mongodb-org-database-tools-extra does indeed have a dependency on python2

Thanks for your kind of update. Now I can able to install with out python2 rpm.

Here one support I need.

After installation. I tried to connect MongoDB. mongosh is working but mongo is not working.

Can you help me on this.

mongosh mongodb://localhost:27956-----It’s working

mongo mongodb://localhost:27956-----It’s not working

Glad to hear that worked for you @jaya_kumar1

mongo was deprecated with MongoDB 5.0 and removed in MongoDB 6.0.

mongosh is the command line client now.

Hi Chris,

Thanks you so much. Your kind of help.