chenzw2
V2EX  ›  macOS

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

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