chenzw2
V2EX  ›  macOS

macbook m4 需要运行一个 x86 程序来打包插件,请问有解决方案吗?

  •  
  •   chenzw2 · Sep 18, 2025 · 2247 views
    This topic created in 412 days ago, the information mentioned may be changed or developed.

    由于插件需要在 x86 环境使用,所有需要使用 x86 的程序来打包,目前打包器有以下几个:plugin-darwin-amd64 、plugin-darwin-arm64 、plugin-linux-amd64 、plugin-linux-arm64 ,需要使用 plugin-linux-amd64 来打包,但是运行 plugin-linux-amd64 会报错:不支持 x86 二进制程序。

    macos 的 m4 系统安装虚拟机,也只能使用 arm 的虚拟机,没法安装 x86 架构的虚拟机的,各位大佬有遇到这类问题吗?都是怎么解决的呢?

    6 replies  •  2025-09-18 15:53:30 +08:00
    ericguo
    ericguo
    Sep 18, 2025
    1
    那就不支持 x86 体系的插件呗,简单的很。
    或者找台 x86 体系的电脑打包?如果你找不到,那就是第一句话的理由。
    hwdq0012
    hwdq0012
    Sep 18, 2025
    2
    你在开玩笑吗。m 系列本来就能运行 x86_64 ,rosetta 搜一下
    hwdq0012
    hwdq0012
    Sep 18, 2025
    3
    查了一下,32 位 x86 程序( macOS 从 Catalina 开始就完全放弃 32 位支持了)
    xtreme1
    xtreme1
    Sep 18, 2025
    4
    对性能没要求用 UTM 硬跑呗.
    deplives
    deplives
    Sep 18, 2025
    5
    租个按时的云电脑吧,几块钱解决了
    virusdefender
    virusdefender
    Sep 18, 2025
    6
    linux amd64 的话,用 orbstack 之类的就可以运行,自带转译
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4325 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 09:54 · PVG 17:54 · LAX 01:54 · JFK 04:54
    ♥ Do have faith in what you're doing.