Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHA 256 mismatch #3

Open
Saratsin opened this issue Nov 11, 2017 · 4 comments
Open

SHA 256 mismatch #3

Saratsin opened this issue Nov 11, 2017 · 4 comments

Comments

@Saratsin
Copy link

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?

@weiran
Copy link

weiran commented Nov 12, 2017

I have the same problem.

@xvonabur
Copy link

I've opened a PR for it.

@bryanstearns
Copy link

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.

@rogerluan
Copy link

rogerluan commented Sep 6, 2020

@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:

  1. Fetch the brew from tap
  2. Patch the sha256 and the imagemagick version
  3. Install imagemagick 7
  4. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants