You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

M1芯片MacBook安装libgdiplus提示无mono-libgdiplus包问题咨询

M1芯片MacOS 12 Monterey安装libgdiplus失败的解决方法

问题原因

mono-libgdiplus包已从Homebrew核心仓库移除,默认搜索无法找到对应安装包。

解决步骤

  • 第一步:添加mono官方Homebrew tap
    执行命令:
    brew tap mono/mono
  • 第二步:执行安装命令
    tap添加完成后重新执行安装指令:
    brew install mono-libgdiplus

适配M1芯片路径配置(可选)

M1芯片Mac的Homebrew默认安装路径为/opt/homebrew,若后续运行依赖libgdiplus的程序时提示找不到动态库,执行对应配置:

  • 使用默认zsh shell的用户执行:
echo 'export DYLD_FALLBACK_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH"' >> ~/.zshrc
source ~/.zshrc
  • 使用bash shell的用户执行:
echo 'export DYLD_FALLBACK_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH"' >> ~/.bash_profile
source ~/.bash_profile

内容的提问来源于stack exchange,提问作者Doniyor Niazov

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.26 10:36:09