【问题标题】:Can't install pandoc in OS X 10.7.5 using Homebrew无法使用 Homebrew 在 OS X 10.7.5 中安装 pandoc
【发布时间】:2016-10-31 19:32:36
【问题描述】:

我刚刚在 Lion 10.7.5 上安装了 Homebrew(它确实抱怨它不受支持,所以我知道这可能是原因)。我尝试安装 pandoc,显然 cryptonite 引起了问题。

~ $ brew install pandoc
Warning: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading https://hackage.haskell.org/package/pandoc-1.18/pandoc-1.18.tar.
Already downloaded: /Users/username/Library/Caches/Homebrew/pandoc-1.18.tar.gz
==> cabal sandbox init
==> cabal update
==> cabal install --jobs=4 --max-backjumps=100000 --only-dependencies --constrai
Last 15 lines from /Users/username/Library/Logs/Homebrew/pandoc/03.cabal:
Installed pandoc-types-1.17.0.4
Downloading texmath-0.8.6.7...
Configuring texmath-0.8.6.7...
Building texmath-0.8.6.7...
Installed texmath-0.8.6.7
cabal: Error: some packages failed to install:
connection-0.2.6 depends on cryptonite-0.20 which failed to install.
cryptonite-0.20 failed during the building phase. The exception was:
ExitFailure 1
http-client-tls-0.3.3 depends on cryptonite-0.20 which failed to install.
tls-1.3.8 depends on cryptonite-0.20 which failed to install.
x509-1.6.4 depends on cryptonite-0.20 which failed to install.
x509-store-1.6.2 depends on cryptonite-0.20 which failed to install.
x509-system-1.6.4 depends on cryptonite-0.20 which failed to install.
x509-validation-1.6.5 depends on cryptonite-0.20 which failed to install.

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues

Warning: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

我希望我可以在 10.7.5 上安装 pandoc。这是 2011 年初的 MBP,具有 4 GB RAM。较新的版本运行速度很慢,所以我宁愿不要从 Lion 升级,除非我必须这样做。

更新:我最终升级到小牛队。一切正常(有些小问题,没什么大不了的)。 Homebrew 安装正常,然后 pandoc 与 Homebrew 一起安装,现在一切正常。

【问题讨论】:

  • pandoc.org/installing.html 获取.dmg(不确定哪个pandoc 版本仍支持lion,您可能需要购买旧版本...)
  • 是的,最新版本 1.18 不支持 Lion。也许这就是它无法使用 Homebrew 安装的原因,因为它根本无法安装。我需要找出支持 Lion 的版本。

标签: homebrew osx-lion pandoc


【解决方案1】:

受到https://discourse.brew.sh/t/how-to-install-old-version-of-a-formula 的启发,我找到了解决方法。

由于 Homebrew 不再提供 Pandoc < 2.0,我们需要将其潜入当前公式,如下所示:

  • $ cd "$(brew --repo homebrew/core)"
  • Formula/pandoc.rb中,将url的内容替换为https://hackage.haskell.org/package/pandoc-1.19.2.4/pandoc-1.19.2.4.tar.gz,将sha256的内容替换为bbe08c1f7fcfea98b899f9956c04159d493a26f65d3350aa6579aa5b93203556

现在您可以安装 Pandoc:$ brew install pandoc

【讨论】:

    猜你喜欢
    • 2018-10-20
    • 2016-06-11
    • 1970-01-01
    • 2013-12-21
    • 2012-12-30
    • 2015-04-15
    • 2015-03-01
    • 1970-01-01
    • 2013-02-06
    相关资源
    最近更新 更多