vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: Flutter 在 aarch64 CPU上不能运行

Open VillagerTom opened this issue 9 months ago • 2 comments

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

VillagerTom avatar Feb 27 '25 07:02 VillagerTom

从Flutter官方仓库下载SDK并软链接至vfox目录,运行正常。 Screenshot_2025-02-27-23-18-50-60_84d3000e3f4017145260f7618db1d683.jpg

VillagerTom avatar Feb 27 '25 15:02 VillagerTom

在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: 无法执行二进制文件:可执行文件格式错误

VillagerTom avatar Feb 27 '25 17:02 VillagerTom