Amazon Linux 시스템에 MongoDB Community Edition을 설치해야 합니다.
나는 다음에 설명된 단계를 따랐습니다.몽고DB 문서매우 간단합니다:
- 다음 위치에 repo 파일 생성
/etc/yum.repos.d
- 다음을 통해 설치됨
sudo yum install -y mongodb-org
그러나 극복할 수 없는 종속성 오류가 발생합니다. 출력은 다음과 같습니다.
sh-4.2$ sudo yum install -y mongodb-org
Loaded plugins: dkms-build-requires, priorities, update-motd, upgrade-helper, versionlock
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
libnvidia-container/x86_64/signature | 455 B 00:00:00
libnvidia-container/x86_64/signature | 2.0 kB 00:00:00 !!!
mongodb-org-4.2 | 2.4 kB 00:00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Mon Dec 9 22:52:43 2019
Downloaded: Mon Dec 9 22:52:27 2019
nvidia-container-runtime/x86_64/signature | 455 B 00:00:00
nvidia-container-runtime/x86_64/signature | 2.0 kB 00:00:00 !!!
nvidia-docker/x86_64/signature | 455 B 00:00:00
nvidia-docker/x86_64/signature | 2.0 kB 00:00:00 !!!
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:4.2.2-1.amzn2 will be installed
--> Processing Dependency: mongodb-org-tools = 4.2.2 for package: mongodb-org-4.2.2-1.amzn2.x86_64
--> Processing Dependency: mongodb-org-shell = 4.2.2 for package: mongodb-org-4.2.2-1.amzn2.x86_64
--> Processing Dependency: mongodb-org-server = 4.2.2 for package: mongodb-org-4.2.2-1.amzn2.x86_64
--> Processing Dependency: mongodb-org-mongos = 4.2.2 for package: mongodb-org-4.2.2-1.amzn2.x86_64
--> Running transaction check
---> Package mongodb-org-mongos.x86_64 0:4.2.2-1.amzn2 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.18)(64bit) for package: mongodb-org-mongos-4.2.2-1.amzn2.x86_64
---> Package mongodb-org-server.x86_64 0:4.2.2-1.amzn2 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.18)(64bit) for package: mongodb-org-server-4.2.2-1.amzn2.x86_64
---> Package mongodb-org-shell.x86_64 0:4.2.2-1.amzn2 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.18)(64bit) for package: mongodb-org-shell-4.2.2-1.amzn2.x86_64
---> Package mongodb-org-tools.x86_64 0:4.2.2-1.amzn2 will be installed
--> Finished Dependency Resolution
Error: Package: mongodb-org-shell-4.2.2-1.amzn2.x86_64 (mongodb-org-4.2)
Requires: libc.so.6(GLIBC_2.18)(64bit)
Error: Package: mongodb-org-mongos-4.2.2-1.amzn2.x86_64 (mongodb-org-4.2)
Requires: libc.so.6(GLIBC_2.18)(64bit)
Error: Package: mongodb-org-server-4.2.2-1.amzn2.x86_64 (mongodb-org-4.2)
Requires: libc.so.6(GLIBC_2.18)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
또한 다음을 실행할 때 yum whatprovides */libc.so.6
파일이 컴퓨터에 설치되어 있음을 알고 있습니다 .
Loaded plugins: dkms-build-requires, priorities, update-motd, upgrade-helper, versionlock
libnvidia-container 40/40
nvidia-container-runtime 18/18
nvidia-docker 14/14
mongodb-org-4.2/filelists_db | 2.8 kB 00:00:00
glibc-2.17-196.172.amzn1.i686 : The GNU libc libraries
Repo : amzn-main
Matched from:
Filename : /lib/i686/nosegneg/libc.so.6
Filename : /lib/libc.so.6
glibc-2.17-196.172.amzn1.x86_64 : The GNU libc libraries
Repo : amzn-main
Matched from:
Filename : /lib64/libc.so.6
glibc-2.17-222.173.amzn1.i686 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib/i686/nosegneg/libc.so.6
Filename : /lib/libc.so.6
glibc-2.17-222.173.amzn1.x86_64 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib64/libc.so.6
glibc-2.17-260.175.amzn1.i686 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib/i686/nosegneg/libc.so.6
Filename : /lib/libc.so.6
glibc-2.17-260.175.amzn1.x86_64 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib64/libc.so.6
glibc-2.17-292.178.amzn1.i686 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib/i686/nosegneg/libc.so.6
Filename : /lib/libc.so.6
glibc-2.17-292.178.amzn1.x86_64 : The GNU libc libraries
Repo : amzn-updates
Matched from:
Filename : /lib64/libc.so.6
glibc-2.17-292.178.amzn1.x86_64 : The GNU libc libraries
Repo : @amzn-updates
Matched from:
Filename : /lib64/libc.so.6
그렇다면 이 장애물을 극복하려면 어떻게 해야 할까요?
답변1
이는 최대 GLIBC_2.17을 지원하는 Amazon Linux(2013.03+)인 Amazon Linux 1을 사용하고 있기 때문입니다. GLIBC_2.18의 경우 Amazon Linux 2 AMI를 사용하고 mongo 설치를 위한 리포지토리를 구성합니다. 올바른 저장소를 구성하고 패키지를 다시 설치하십시오. 다음은 두 가지 모두에 대한 링크입니다. https://docs.mongodb.com/v4.0/tutorial/install-mongodb-on-amazon/