Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VillagerTom opened this issue Feb 27, 2025 · 2 comments
Open

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

VillagerTom opened this issue Feb 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@VillagerTom
Copy link

VillagerTom commented Feb 27, 2025

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 VillagerTom added the bug Something isn't working label Feb 27, 2025
@VillagerTom
Copy link
Author

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

@VillagerTom
Copy link
Author

在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 VillagerTom changed the title [BUG]: Flutter 在 Termux Proot 中不能使用 [BUG]: Flutter 在 aarch64 CPU上不能运行 Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant