![EC2에 libsodium 설치](https://linux55.com/image/13674/EC2%EC%97%90%20libsodium%20%EC%84%A4%EC%B9%98.png)
AWS Ec2(Linux) 인스턴스에 R 및 관련 패키지를 설치하려고 합니다. 이러한 패키지는 libsodium에 대한 종속성으로 인해 실패합니다.
R 실패
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libsodium was not found. Try installing:
* deb: libsodium-dev (Debian, Ubuntu, etc)
* rpm: libsodium-devel (Fedora, EPEL)
* csw: libsodium_dev (Solaris)
* brew: libsodium (OSX)
If libsodium is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libsodium.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
EC2에 libsodium을 설치해보세요
[ec2-user@ip-xxx R]$ sudo yum install libsodium
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
No package libsodium available.
Error: Nothing to do
libsodium-devel을 제공하는 경우에도 마찬가지입니다.
[ec2-user@ip-xxx R]$ yum info libsodium-devel
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Error: No matching Packages to list
===편집====
제안대로여기RHEL용 EPEL(sudo yum install epel-release)을 설치하려고 했더니 amazon-extras로 리디렉션되어 다음과 같이 설치했습니다.
ec2-user@ip-xxx R]$ sudo amazon-linux-extras install epel
Installing epel-release
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-R3.4 amzn2extra-docker amzn2extra-epel
17 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
amzn2extra-R3.4 | 3.0 kB 00:00:00
amzn2extra-docker | 3.0 kB 00:00:00
amzn2extra-epel | 3.0 kB 00:00:00
(1/9):
:
(9/9): amzn2-core/2/x86_64/primary_db | 51 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================
Package Arch Version Repository Size
==============================================================================
Installing:
epel-release noarch 7-11 amzn2extra-epel 15 k
Transaction Summary
===============================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
그러나 여전히 "libsodium을 찾을 수 없습니다"라는 오류가 발생하여 실패합니다.
[ec2-user@ip-xxx R]$ sudo find / -iname libsodium [ec2-user@ip-xxx R]$
AWS EC2에 libsodium을 설치하는 방법에 대한 조언을 부탁드립니다.
인사.
답변1
AWS Linux 2에 libsodium을 성공적으로 설치했습니다.뒤쪽에EPEL을 설치합니다:
1. EPEL을 설치합니다:
sudo amazon-linux-extras install epel
2. libsodium을 설치합니다:
sudo yum install libsodium-devel.x86_64
(정확한 패키지 이름을 검색할 수 있습니다 yum search libsodium-devel
. 제 경우 실제 패키지 이름은 다음을 실행하여 제공됩니다.libsodium-devel.x86_64