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

如何通过Homebrew安装指定旧版本Ghostscript 9.21

Ghostscript 9.21 版本Homebrew安装方案

方法一:官方推荐brew extract安装流程

  • 创建本地专属tap用于存放历史版本公式,避免修改官方源内容:
brew tap-new $USER/local-tap
  • 从homebrew-core提交历史中提取指定版本的Ghostscript公式到本地tap:
brew extract --version=9.21 ghostscript $USER/local-tap
  • 执行安装命令:
brew install ghostscript@9.21
  • 验证安装结果:
gs -v
  • 若需要将9.21设为系统默认调用版本,执行软链覆盖命令:
brew link ghostscript@9.21 --force

方法二:手动本地安装(无需创建本地tap)

  • 先将对应版本的ghostscript.rb公式文件下载到本地任意目录
  • 终端进入公式文件所在目录,执行本地安装命令:
brew install ./ghostscript.rb
  • 同样通过gs -v验证版本是否符合要求

注意:如果当前设备已安装高版本Ghostscript,安装前先执行brew unlink ghostscript解除高版本软链,避免依赖冲突导致安装失败。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.09.25 14:24:01