我正在尝试使用 GNU C 库稳定版本 2.5 为 RHEL5 (Linux v2.6.18) 构建 Rust。
运行 Rust make 时自动下载的 Rust 预构建 Bootstrap 版本与 glibc 2.5 不兼容——我收到以下错误。
x86_64-unknown-linux-gnu/stage0/bin/rustc:/lib64/libc.so.6: 版本 GLIBC_2.7' 未找到(x86_64-unknown-linux-gnu/stage0/bin 需要/使用rust )
x86_64-unknown-linux-gnu/stage0/bin/rustc:/lib64/libc.so.6: version
GLIBC_2.6' not found(x86_64-unknown-linux-gnu/stage0/bin/rustc 需要)
不幸的是,升级 glibc 不是目标操作系统的选项
我有什么方法可以在我的平台上构建 Rust 吗?
最佳答案
您需要先构建一个更新的 gcc 和 glibc 副本。别担心,您只能将它用于 Rust 的东西(将它放在不同的目录中,并在运行 Rust 东西时将该目录添加到 LD_LIBRARY_PATH
),但它确实需要一些更新的东西。
关于linux - 使用 glibc 2.5 在 Linux 上构建 Rust 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25260968/