先到https://bgithub.xyz/sxyazi/yazi/releases下载了gnu二进制文件。结果解压缩后,运行报缺少高版本c库文件错。
root@kylin-gtj:/par# yazi/ya
yazi/ya: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by yazi/ya)
于是用git clone命令克隆源代码编译
git clone --depth=1 https://bgithub.xyz/sxyazi/yazi
Cloning into 'yazi'...
remote: Enumerating objects: 1108, done.
remote: Counting objects: 100% (1108/1108), done.
remote: Compressing objects: 100% (963/963), done.
remote: Total 1108 (delta 104), reused 703 (delta 87), pack-reused 0 (from 0)
Receiving objects: 100% (1108/1108), 1.10 MiB | 1.52 MiB/s, done.
Resolving deltas: 100% (104/104), done.
root@kylin-gtj:/par# cd yazi
root@kylin-gtj:/par/yazi# cargo build release
error: unexpected argument 'release' found
Usage: cargo build [OPTIONS]
For more information, try '--help'.
root@kylin-gtj:/par/yazi# cargo build --release
Compiling gimli v0.32.3
error: failed to run custom build command for `tikv-jemalloc-sys v0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7`
Caused by:
process didn't exit successfully: `/par/yazi/target/release/build/tikv-jemalloc-sys-d97a6609702cbba5/build-script-build` (exit status: 101)
编译出错了,无意中看到releases下也有musl的二进制文件,下载后解压缩,在命令行执行。
yazi-aarch64-unknown-linux-musl$ ./yazi
成功了。
左侧是目录名,中间是文件名,右侧是文件内容或文件类型和描述,用方向建选择,打开文件显示的速度很快,格式文件以语法高亮显示,汉字显示也完全正常。



3415

被折叠的 条评论
为什么被折叠?



