Installing older version of imagemagick with homebrew

天大地大妈咪最大 提交于 2019-12-05 07:30:02

You can define your own Homebrew formula in a GitHub Gist and install it with

brew install path/to/your/GistToYourPersonalImageMagickFormula

for example here or here

If it's for Ruby 1.8.6 compatibility, or any 6.5.9-x version will do, there is an ImageMagick 6.5.9.x formula provided as imagemagick-ruby186 in the homebrew-versions tap. This will be easiest, and will be supported by future updates.

brew tap homebrew/versions
brew install imagemagick-ruby186

Those 6.5.9.x versions of the original imagemagick formula are so old that they may have compatibility problems with the current brew ruby scripts. (They currently give "Formulae require at least a URL" errors; your error was probably a similar issue.) To get those to install, you'll probably have to roll back all of Homebrew to that point in time before doing the build, with a git checkout on the entire repo, not just the one file.

That other answer you linked will fail for the same reason - it's another mechanism of doing the same thing, just acquiring the old version of the imagemagick.rb formula via the web instead of through git, so it'll have the same compatibility problems.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!