mac*_*eee 1 linux docker alpine-linux
当我尝试readelf在Apline3.5 上安装软件包时,收到此错误消息。
$ apk add --no-cache readelf
client readelf
fetch http://dl- cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
readelf (missing):
required by: world[readelf]
Run Code Online (Sandbox Code Playgroud)
我只想用一些命令解决这个问题。
这是因为,我希望能够使用Dockerfile做到这一点。我该怎么办??
您需要使用binutils相同的软件包
$ apk add --update binutils
(1/2) Installing binutils-libs (2.28-r2)
(2/2) Installing binutils (2.28-r2)
Executing busybox-1.26.2-r5.trigger
OK: 13 MiB in 14 packages
$ readelf
Usage: readelf <option(s)> elf-file(s)
Display information about the contents of ELF format files
Options are:
-a --all Equivalent to: -h -l -S -s -r -d -V -A -I
-h --file-header Display the ELF file header
-l --program-headers Display the program headers
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2479 次 |
| 最近记录: |