linux - MongoDB does not install on CentOS 6.7 -


i'm windows guy. when need use linux based os, choose ubuntu. however, time didn't give me choice.

i tried install mongodb link of mongodb site. have created repository file try install , error message:

error: package: mongodb-org-tools-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(cxxabi_1.3.5)(64bit) error: package: mongodb-org-mongos-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(glibcxx_3.4.14)(64bit) error: package: mongodb-org-shell-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(glibcxx_3.4.14)(64bit) error: package: mongodb-org-server-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(cxxabi_1.3.5)(64bit) error: package: mongodb-org-server-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(glibcxx_3.4.15)(64bit) error: package: mongodb-org-shell-3.2.1-1.amzn1.x86_64 (mongodb-org-3.2)        requires: libstdc++.so.6(glibcxx_3.4.15)(64bit) 

according message thought i'm missing libstdc++.so.6. have run command install it:

 yum install libstdc++.so.6 

i got message:

package libstdc++-4.4.7-16.el6.i686 installed , latest version 

this getting frustrating. why happening?

you screwed repository definitions bit. either run centos, in case mistakenly defined repository amazonlinux packages of mongodb. more case, since can reproduce problem misconfigured repo.

there chance, however, run on amazonlinux , defined centos repositories.

if positively sure on centos

the problem entered wrong repository. when using correct repo, mongodb installs , runs expected. however, rpm name different, both shown below:

working setup

most likely, have put wrong repo definition somehwere, below:

wrong repository

so, need find place repository amazon linux defined , replace correct one:

$ grep -l amazon -r /etc/yum.repos.d/* 

the problem here multiple repositories might defined. inspect files returned grep command, , remove respective repository definition. then, add correct repository definition, of time of writing is

[mongodb-org-3.2] name=mongodb repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 

if on amazonlinux

misconception

it has said that

amazonlinux != centos

they close (both based on rhel), not identical. specifically, package versions might differ. package versions used compile mongodb amazonlinux documented within rpm, , documentation sort of contract between package , system

i, mongodb, promise run on system has these packages in specified version.

a contract centos can not fulfill.

solution

simply follow installation instructions mongodb on amazonlinux.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -