SHA 256 mismatch
Saratsin opened this issue ยท 4 comments
I've tried to install basset ios by Homebrew, and always getting the following error:
brew install basset_ios
==> Installing basset_ios from polidea/tap
==> Downloading https://github.com/Polidea/basset-ios/archive/1.4.2.tar.gz
==> Downloading from https://codeload.github.com/Polidea/basset-ios/tar.gz/1.4.2
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: aca128ce7679103a46f8a3c26024365ed378fe4dc818f4fe0c149fb1e4764dfe
Actual: 0893f09128a863218c3f0e66608b83bfe06cdf75cb4587761220e304ebdfca5c
Archive: /Users/taras/Library/Caches/Homebrew/basset_ios-1.4.2.tar.gz
To retry an incomplete download, remove the file above.
I've tried several times to install, removed temporary files, updating Homebrew, but no success. Any idea, what can it be?
I have the same problem.
I had this problem but worked around it: you can brew edit basset_ios
and change the checksum there to the correct 0893...
value above. brew install basset_ios
will then succeed.
Ugh, but then when I run basset_ios
, it's not happy with ImageMagic 7's MagickWand. brew uninstall basset_ios imagemagick
then brew edit basset_ios
and change:
depends_on "imagemagick" => "--with-librsvg"
to
depends_on "imagemagick@6" => "--with-librsvg"
brew install basset_ios
works, and basset_ios
seems happy.
@xvonabur thanks for opening that PR. Unfortunately, looks like the author of this repo hasn't maintained it in the past few years
@bryanstearns your solution almost got me there, but not quite. Took me a good while to figure out how to make this work, and turns out we have to use imagemagick@6
with basset_ios
like you mentioned, but we also must have imagemagick
7 (aka simply imagemagick
) installed, to have identify available. Lastly, you must also specify MAGICK_HOME
in your environment's PATH so that it knows where to find imagemagic@6
. To make this all easier, I rewrote the README here: https://github.com/rogerluan/basset-ios (#6), so the full installation process can be executed as:
brew tap Polidea/tap
curl -s https://raw.githubusercontent.com/rogerluan/basset-ios/master/patched_basset_ios.rb > /usr/local/Homebrew/Library/Taps/polidea/homebrew-tap/basset_ios.rb
brew install imagemagick
brew install basset_ios
That will:
- Fetch the brew from tap
- Patch the sha256 and the imagemagick version
- Install imagemagick 7
- Finally Install basset_ios
Last, but definitely not least, set up MAGIC_HOME
env var. Quoted from my fork:
Add this to your
~/.zshrc
file (or your bash profile file, depending on your shell environment):# The last part of the path should be whatever version of imagemagic@6 you have installed. Type in until the imagemagic@6 >part and then press Tab to let it auto-complete with the version it has installed. export MAGICK_HOME=/usr/local/Cellar/imagemagick@6/6.9.11-28/After adding the
export
line, close Terminal and reopen it. Alternatively, you can run that same line as a command in Terminal.
Hope this helps people out there!