我正在以这种方式在Raspberry Pi 3B +上安装最新版本的alpine-pkg-glibc:
# Install Dependencies
RUN apk --no-cache add ca-certificates wget \
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-bin-2.29-r0.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-i18n-2.29-r0.apk \
&& apk add glibc-bin-2.29-r0.apk glibc-i18n-2.29-r0.apk glibc-2.29-r0.apk
但是我收到此错误:
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armhf/APKINDEX.tar.gz
(1/3) Installing glibc (2.29-r0)
(2/3) Installing glibc-bin (2.29-r0)
(3/3) Installing glibc-i18n (2.29-r0)
Executing glibc-bin-2.29-r0.trigger
/usr/glibc-compat/sbin/ldconfig: line 1: syntax error: unexpected "("
ERROR: glibc-bin-2.29-r0.trigger: script exited with error 2
OK: 63 MiB in 61 packages
Removing intermediate container 5d82962062fa
---> 524153539aee
Step 6/12 : RUN /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
---> Running in 6640abb3a3db
/usr/glibc-compat/bin/localedef: line 1: syntax error: unexpected ")"
The command '/bin/sh -c /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8' returned a non-zero code: 2
有什么问题的想法吗?
谢谢
答案 0 :(得分:1)
二进制文件在 https://github.com/sgerrand/alpine-pkg-glibc/仅适用于 x86_64 。
尽管您应该能够为Rpi构建它: https://github.com/chrisanthropic/docker-alpine-rpi-glibc-builder/blob/master/Dockerfile
或者,如果v2.22为您工作,那么这里有一个Rpi ARM二进制文件: https://github.com/armhf-docker-library/glibc/releases