vfox
vfox copied to clipboard
[BUG]: Flutter 在 aarch64 CPU上不能运行
Version 0.6.1 OS Ubuntu in Termux proot-distro, aarch64
Describe the bug
使用vfox安装任意版本flutter并运行,终端输出以下内容,并返回错误码127:
/home/tom/.version-fox/cache/flutter/v-3.27.4/flutter-3.27.4/bin/internal/shared.sh: line 265: /home/tom/.version-fox/cache/flutter/v-3.27.4/flutter-3.27.4/bin/cache/dart-sdk/bin/dart: cannot execute: required file not found
Reproduction steps
- 在Termux中安装
proot-distro
pkg install proot-distro
- 使用
proot-distro安装任意发行版并启动
proot-distro install ubuntu
proot-distro login ubuntu
- 根据文档安装vfox
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | tee /etc/apt/sources.list.d/versionfox.list
apt-get update
apt-get install vfox
echo 'eval "$(vfox activate bash)"' >> ~/.bashrc
- 安装任意版本flutter并运行
vfox add flutter
vfox install [email protected]
vfox use [email protected]
flutter --version
从Flutter官方仓库下载SDK并软链接至vfox目录,运行正常。
在Armbian中使用出现相同报错:
❯ flutter --version
Building flutter tool...
/home/tom/.version-fox/cache/flutter/v-3.16.5/flutter-3.16.5/bin/internal/shared.sh: 行 24: /home/tom/.version-fox/cache/flutter/v-3.16.5/flutter-3.16.5/bin/cache/dart-sdk/bin/dart: 无法执行二进制文件:可执行文件格式错误