YUM/dnf를 사용하여 liblzma-dev를 설치하는 방법

YUM/dnf를 사용하여 liblzma-dev를 설치하는 방법

Docker 이미지를 빌드합니다. samtools를 만들어 보세요. 내가 설치한 것:

FROM rockylinux:8
RUN dnf -y update && dnf -y upgrade && dnf -y --allowerasing install wget libcurl curl git vim cmake gcc gcc-c++ zip unzip zlib zlib-devel tbb tbb-devel tar bzip2 bzip2-devel ncurses-devel

그래서 YUM과 dnf는 있지만 apt-get은 없습니다. samtools를 빌드하려고 하면 이 오류가 발생합니다.

configure: error: liblzma development files not found

The CRAM format may use LZMA2 compression, which is implemented in HTSlib
by using compression routines from liblzma <http://tukaani.org/xz/>.

Building HTSlib requires liblzma development files to be installed on the
build machine; you may need to ensure a package such as liblzma-dev (on Debian
or Ubuntu Linux), xz-devel (on RPM-based Linux distributions or Cygwin), or
xz (via Homebrew on macOS) is installed; or build XZ Utils from source.

Either configure with --disable-lzma (which will make some CRAM files
produced elsewhere unreadable) or resolve this error to build HTSlib.
configure: error: ./configure failed for htslib-1.13

내가 찾은이것, 그러나 apt-get이 필요합니다.

내가 시도한 것과 실패한 방법:

[root@29b6e2a8aef2 samtools-1.13]# dnf -y install liblzma-devel
Last metadata expiration check: 0:48:17 ago on Wed Oct  4 00:25:57 2023.
No match for argument: liblzma-devel
Error: Unable to find a match: liblzma-devel
[root@29b6e2a8aef2 samtools-1.13]# dnf -y install liblzma*
Last metadata expiration check: 0:48:23 ago on Wed Oct  4 00:25:57 2023.
Package xz-libs-5.2.4-4.el8_6.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@29b6e2a8aef2 samtools-1.13]# dnf -y install xz-libs seems
Last metadata expiration check: 0:50:48 ago on Wed Oct  4 00:25:57 2023.
Package xz-libs-5.2.4-4.el8_6.aarch64 is already installed.
No match for argument: seems
Error: Unable to find a match: seems
[root@29b6e2a8aef2 samtools-1.13]# dnf -y install xz-libs
Last metadata expiration check: 0:50:54 ago on Wed Oct  4 00:25:57 2023.
Package xz-libs-5.2.4-4.el8_6.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@29b6e2a8aef2 samtools-1.13]# dnf -y install xz-libs*
Last metadata expiration check: 0:51:02 ago on Wed Oct  4 00:25:57 2023.
Package xz-libs-5.2.4-4.el8_6.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

답변1

liblzma 개발 파일을 제공하는 RockyLinux 8 패키지는 다음과 같습니다.BaseOS 저장소의 xz-devel.

BaseOS 저장소는 기본적으로 활성화되어야 하며 다음 명령을 사용하여 모든 RockyLinux 8 시스템에서 설치할 수 있어야 합니다.dnf install xz-devel

관련 정보