caskformula / homebrew-caskformula

Tap containing formulae for casks
83 stars 34 forks source link

Error when installing Inkscape #72

Open Southpaw1496 opened 5 years ago

Southpaw1496 commented 5 years ago

I’m trying to install a program called Inkscape. After saying brew install caskformula/caskformula/inkscape it installs about a million things, updating stuff and whatever, and after about 10 minutes it says

`An exception occurred within a child process:

ChecksumMismatchError: SHA256 mismatch

Expected: 1f037cc29cee8e0c60ab4753d4151741c8170e4849129bac68fdc60925eb971d

Actual: 7ce4f70f1cb03cd0bab7dc94821a89bf71600bd59c763ae0d78c48f33db3d9ac

Archive: /Users/john/Library/Caches/Homebrew/downloads/369b021412bac03164fd51cdf072f9e402caea5fabf430466d2d9779d6208a36–93ccf03162cd2e46d962822d5507865f3451168c.diff`

To retry an incomplete download, remove the file above.

What’s wrong with this?

iforrest commented 5 years ago

I'm getting the same issue as well.

IAmOrion commented 5 years ago

+1

jhihn commented 5 years ago

I have no idea. I've read the bugs, I've fixed the checksum error, I've tried everything I can think of, it won't compile because of the pdfinput extension.

mgawryluk commented 5 years ago

Same here, no idea how to resolve it.

nobodywasishere commented 5 years ago

Same here.

https://github.com/Homebrew/homebrew-core/issues/16342#issuecomment-320568043 I tried this but it didn't work either.

This is the error I get: $ brew install caskformula/caskformula/inkscape ==> Installing inkscape from caskformula/caskformula ==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+download/inkscap Already downloaded: /Users/michael/Library/Caches/Homebrew/downloads/3e16227cc7b60cf452cbbdbe1f45f0c365882d5436c4ca79f9ad6061e184d68a--inkscape-0.92.2.tar.bz2 ==> Downloading https://gitlab.com/inkscape/inkscape/commit/93ccf03162cd2e46d9 Already downloaded: /Users/michael/Library/Caches/Homebrew/downloads/369b021412bac03164fd51cdf072f9e402caea5fabf430466d2d9779d6208a36--93ccf03162cd2e46d962822d5507865f3451168c.diff Error: An exception occurred within a child process: ChecksumMismatchError: SHA256 mismatch Expected: 1f037cc29cee8e0c60ab4753d4151741c8170e4849129bac68fdc60925eb971d Actual: 7ce4f70f1cb03cd0bab7dc94821a89bf71600bd59c763ae0d78c48f33db3d9ac Archive: /Users/michael/Library/Caches/Homebrew/downloads/369b021412bac03164fd51cdf072f9e402caea5fabf430466d2d9779d6208a36--93ccf03162cd2e46d962822d5507865f3451168c.diff To retry an incomplete download, remove the file above.

Here is the file it wants me to remove: https://drive.google.com/file/d/1u1gijpUpANFcil_Ss9TQraSq9qOhhnEV/view?usp=sharing

afonic commented 5 years ago

Please see #67

jhihn commented 5 years ago

67 doesn't work either.

afonic commented 5 years ago

@jhihn it seems like you have an unrelated error, the checksum error can be fixed if you get the Git version as it doesn't apply the commit that the causes that error to get thrown.

Generally it may be a good idea to download Inkscape from the official website and not build it through this cask, if you have trouble.

jhihn commented 5 years ago

I'm a reasonably competent developer and I've been through all the bug threads it starts with this checksum error, I work through the various bugs and sub bugs 4 hours later and I end up becoming a flat earther.

EDIT: Good news everyone! The latest HEAD (6afa35c3d3) does indeed build!

==> Cloning https://gitlab.com/inkscape/inkscape.git
Updating /Users/jhihn/Library/Caches/Homebrew/inkscape--git
From https://gitlab.com/inkscape/inkscape
 - branch                  master     -> FETCH_HEAD
   7d565313e8..6afa35c3d3  0.92.x     -> origin/0.92.x
==> Checking out branch 0.92.x
warning: unable to rmdir 'share/extensions': Directory not empty
Switched to branch '0.92.x'
Your branch is behind 'origin/0.92.x' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)
HEAD is now at 6afa35c3d3 fix poppler 0.72.0 build
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEB
==> make
==> make install
🍺  /usr/local/Cellar/inkscape/HEAD-6afa35c_1: 1,037 files, 116.9MB, built in 24 minutes 15 **seconds**

... 0 errors. :-)

And I am no longer a flat Earther.

ggsalas commented 5 years ago

+1

mdahlman commented 5 years ago

I feel happy reading about the cessation of flat Earthing and the +1... But for someone like me who is NOT a reasonably competent developer, how should I interpret this?

Currently this fails for me on Mojave just like it does for others: brew install caskformula/caskformula/inkscape

Is the problem now understood? And we can expect that the homebrew install will start working someday soon? Is there an immediate workaround that is obvious-ish to others based on jhihn's post?

jhihn commented 5 years ago

brew install caskformula/caskformula/inkscape --HEAD --branch-0.92

Should work now. The .92 branch was fixed

ggsalas commented 5 years ago

Hi @jhihn I have installed inkscape with brew install caskformula/caskformula/inkscape --HEAD --branch-0.92 after do:

brew uninstall inkscape
brew cleanup

The result:

mdahlman commented 5 years ago

I got exactly the same "black page" results as ggsalas. For now I just switched to the downloadable .dmg. But I would prefer to use homebrew someday soon.

ggsalas commented 5 years ago

@mdahlman where I can find the .dmg file to install inscape? Thanks!

ggsalas commented 5 years ago

I receive your link @mdahlman Thanks. The problem with the dmg is that require XQuartz, and the version on brew not. I think the brew version works much better. Also I don't know if there is a dmg that not requires XQuartz.

josemarfdc commented 5 years ago

Hi @jhihn I have installed inkscape with brew install caskformula/caskformula/inkscape --HEAD --branch-0.92 after do:

brew uninstall inkscape
brew cleanup

The result:

  • I have not icon on the macos
  • I can open inscape from console but is inusable, se the screenshot (page area is black):
screen shot 2018-12-27 at 13 33 48

I have the same problem [macOS Mojave 10.14.2]

davidorme commented 5 years ago

Same issue here - installed using:

brew install caskformula/caskformula/inkscape --HEAD --branch-0.92

It has checked out the following branch (as expected): https://gitlab.com/inkscape/inkscape/commits/0.92.x

After launching from the command line, I get the black screen as in the previous post and other windows and buttons are unresponsive. I can click on a tool and use it on the document but nothing visible appears.

I'm running macOS Mojave 10.14.2 and XQuartz 2.7.11. I previously tried to install without --HEAD and got the SHA sum mismatch. That installed all the dependencies, so that the HEAD install just installed inkscape. Gist of install here:

https://gist.github.com/davidorme/6123c81b2aac8bd37a71c1f63b1f973f

posttechguy commented 5 years ago

I am trying to update rsync and getting


==> Downloading https://homebrew.bintray.com/bottles/rsync-3.1.3_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring rsync-3.1.3_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/rsync/3.1.3_1: 9 files, 756.1KB
==> `brew cleanup` has not been run in 30 days, running now...
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the caskformula/caskformula tap:
  /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb:49

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/caskformula/homebrew-caskformula/issues```