无法在 Alpine 上运行 curl 7.83.0

无法在 Alpine 上运行 curl 7.83.0

我正在尝试安装卷曲7.83在高山环境中,但它无法运行命令并给出以下错误

Error relocating /usr/bin/curl: curl_easy_nextheader: symbol not found
Error relocating /usr/bin/curl: curl_easy_header: symbol not found

我在文档中看到它们是新功能,但不知道是否可以禁用或修复它们。

我已尝试过--enable-headers-api但没有任何改变。

有什么想法吗?谢谢

答案1

您是否尝试过apk updateapk upgrade修复丢失的库?

根据描述这里该问题是由于您的 Alpine 发行版缺少库而引起的。

bash-4.3# apk update
bash-4.3# apk upgrade

bash-4.3# apk add -U curl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/1) Installing curl (7.58.0-r1)
Executing busybox-1.24.2-r13.trigger
OK: 430 MiB in 145 packages
bash-4.3# curl
Error relocating /usr/bin/curl: curl_mime_type: symbol not found
Error relocating /usr/bin/curl: curl_mime_data: symbol not found
Error relocating /usr/bin/curl: curl_mime_data_cb: symbol not found
Error relocating /usr/bin/curl: curl_mime_name: symbol not found
Error relocating /usr/bin/curl: curl_mime_encoder: symbol not found
Error relocating /usr/bin/curl: curl_mime_headers: symbol not found
Error relocating /usr/bin/curl: curl_mime_init: symbol not found
Error relocating /usr/bin/curl: curl_mime_filedata: symbol not found
Error relocating /usr/bin/curl: curl_mime_free: symbol not found
Error relocating /usr/bin/curl: curl_mime_subparts: symbol not found
Error relocating /usr/bin/curl: curl_mime_filename: symbol not found
Error relocating /usr/bin/curl: curl_mime_addpart: symbol not found

bash-4.3# apk upgrade
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.6.8-r1 -> 2.6.9-r0)
Executing busybox-1.24.2-r13.trigger
Continuing the upgrade transaction with new apk-tools:
(1/29) Upgrading musl (1.1.14-r14 -> 1.1.14-r16)
(2/29) Upgrading busybox (1.24.2-r13 -> 1.24.2-r14)
Executing busybox-1.24.2-r14.post-upgrade
...
(9/29) Upgrading libcurl (7.52.1-r2 -> 7.58.0-r1)
...
OK: 427 MiB in 145 packages
bash-4.3# curl
curl: try 'curl --help' or 'curl --manual' for more information

相关内容