2016-10-31 4 views
0

Je viens d'installer Homebrew sur Lion 10.7.5 (il s'est plaint qu'il n'est pas supporté, donc je suis conscient que cela peut être la raison). J'ai essayé d'installer Pandoc, et apparemment la cryptonite cause des problèmes.Impossible d'installer Pandoc sous OS X 10.7.5 en utilisant Homebrew

~ $ 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. 

J'espère pouvoir installer pandoc sur 10.7.5. C'est un MBP début 2011 avec 4 Go de RAM. Les versions les plus récentes tournent très lentement, donc je préférerais ne pas mettre à niveau de Lion, sauf si je dois le faire. MISE À JOUR: J'ai fini par passer à Mavericks. Tout a bien fonctionné (quelques hoquet, rien de majeur). Homebrew installé bien, puis pandoc a été installé avec Homebrew et maintenant tout bourdonne.

+0

obtenir un '.dmg' de http://pandoc.org/installing.html (pas sûr que la version pandoc supporte toujours le lion, vous devrez peut-être opter pour un plus ancien ...) – mb21

+0

Yup, le plus récent version, 1.18, ne supporte pas Lion. Peut-être que c'est pourquoi il ne peut pas être installé en utilisant Homebrew, car il ne peut pas être installé du tout. J'ai besoin de savoir quelle version supporte Lion. – user36386

Répondre

0

Inspiré par https://discourse.brew.sh/t/how-to-install-old-version-of-a-formula, j'ai trouvé une solution de contournement.

Comme Homebrew ne propose pas Pandoc < 2.0 plus, nous avons besoin de se faufiler dans la formule actuelle comme ceci:

  • $ cd "$(brew --repo homebrew/core)"
  • En Formula/pandoc.rb, remplacer le contenu de url avec https://hackage.haskell.org/package/pandoc-1.19.2.4/pandoc-1.19.2.4.tar.gz et le contenu sha256 avec bbe08c1f7fcfea98b899f9956c04159d493a26f65d3350aa6579aa5b93203556

maintenant, vous pouvez installer Pandoc: $ brew install pandoc.