caskformula / homebrew-caskformula

Tap containing formulae for casks
83 stars 34 forks source link

Error installing Inkscape #46

Open bgsufn opened 6 years ago

bgsufn commented 6 years ago

I am attempting to install on High Sierra 10.13.4. I get the following error at the end:

Error: An unexpected error occurred during the brew link step

The formula built, but is not symlinked into /usr/local

Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Any idea what I can do to fix?

alexandreleroux commented 6 years ago

I just tried installing Inkscape from brew on High Sierra 10.13.4 as well. While being a total newbie, it seemed to work:

iMac-Vivre-ensemble:~ Alex$ brew install caskformula/caskformula/inkscape
# ... long long list of updates happening, then ...
==> Installing caskformula/caskformula/inkscape
==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+download/inkscape-0.92.2.tar.bz2
==> Downloading from https://launchpadlibrarian.net/332184472/inkscape-0.92.2.tar.bz2
######################################################################## 100,0%
==> Downloading https://gitlab.com/inkscape/inkscape/commit/93ccf03162cd2e46d962822d5507865f3451168c.diff
######################################################################## 100,0%
==> Patching
==> Applying 93ccf03162cd2e46d962822d5507865f3451168c.diff
patching file CMakeScripts/DefineDependsandFlags.cmake
patching file config.h.cmake
patching file src/extension/internal/pdfinput/pdf-input.cpp
patching file src/extension/internal/pdfinput/pdf-parser.cpp
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/inkscape/0.92.2_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-d
==> make
==> make install
🍺  /usr/local/Cellar/inkscape/0.92.2_1: 1,022 files, 120.3MB, built in 10 minutes 47 seconds
iMac-Vivre-ensemble:~ Alex$

I didn't get the permission denied errors you're reporting. Hope this helps nonetheless! Now I'm stucked at launching Inkscape, which aborts..

klavergne commented 6 years ago

I think I'm getting a different error, but it's still during the install process:

==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+download/inkscape-0.92.2.tar.bz2
Already downloaded: /Users/klavergne/Library/Caches/Homebrew/inkscape-0.92.2.tar.bz2
==> Downloading https://gitlab.com/inkscape/inkscape/commit/93ccf03162cd2e46d962822d5507865f3451168c.diff
Already downloaded: /Users/klavergne/Library/Caches/Homebrew/inkscape--patch-1f037cc29cee8e0c60ab4753d4151741c8170e4849129bac68fdc60925eb971d.diff
==> Patching
==> Applying 93ccf03162cd2e46d962822d5507865f3451168c.diff
patching file CMakeScripts/DefineDependsandFlags.cmake
patching file config.h.cmake
patching file src/extension/internal/pdfinput/pdf-input.cpp
patching file src/extension/internal/pdfinput/pdf-parser.cpp
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cella
==> make
Last 15 lines from /Users/klavergne/Library/Logs/Homebrew/inkscape/03.make:
  void doShowText(GooString *s);
                             ^
/tmp/inkscape-20180427-68023-1p0tvhi/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2735:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
  char *name = args[0].getName();
        ^      ~~~~~~~~~~~~~~~~~
5 errors generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/inkscape-20180427-68023-1p0tvhi/inkscape-0.92.2/src/extension/internal/pdfinput/svg-builder.cpp:1023:48: error: assigning to 'char *' from incompatible type 'const char *'
        _font_specification = font->getName()->getCString();
                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/svg-builder.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
make: *** [all] Error 2
ecdemis123 commented 6 years ago

I am also getting the same error, let me know if you figure something out! I'll keep searching and let you know if I find anything

djinnome commented 6 years ago

I tried to install inkscape on Mac OS X Sierra 10.12.6 brew install caskformula/caskformula/inkscape just like @alexandreleroux but I got the same error as @klavergne and @ecdemis123

I am now attempting to install this way:

brew tap caskroom/cask
brew cask install inkscape

Now instead of trying to download a tarball, homebrew is downloading a dmg file. Will update this comment if I get it working

gakhov commented 6 years ago

I had the same error as @klavergne on Mac OS High Sierra The solution proposed by @djinnome worked well. Thank you

klavergne commented 6 years ago

What @djinnome proposed worked for me, too! Thank you!

consta commented 6 years ago

+1 - got the same error as @klavergne, solution by @djinnome helped, thanks!

orestesgaolin commented 6 years ago

I have different error while installing with brew install caskformula/caskformula/inkscape:

/tmp/inkscape-20180527-78362-1zizvn/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:41:10: fatal error: 'goo/GooHash.h' file not found
#include "goo/GooHash.h"
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
make: *** [all] Error 2

I tried to install Inkscape as @djinnome proposed, but it doesn't work for me. Firstly, I have to install xquartz as a dependency, and only then I can install inkscape. Unfortunately, the app doesn't launch. Both xquartz and inkscape icons show in dock, but even after 10 mins window doesn't show up.

I have MBP13 with macOS 10.13.4