9
09 Inkscape はpoppler0.57.0_1でインストール
Inkscape で日本語入力が出来る様にする為の方法は、
表題の通り「Inkscape はpoppler0.57.0_1でインストール」です。
+++++++++++++++必要な手続きは
#01 : brew switch poppler 0.57.0_1
#02 : brew install caskformula/homebrew-caskformula/inkscape
+++++++++++++++
MacOSX El Capitan で
「直接」「日本語入力」が出来るInkscapeをお楽しみください!!
************************************************
解決策を以下の場所に解決策を発見。「dschneiderch 」と言う人物のコメントです。
caskformula/ homebrew-caskformula issues
I managed to install inkscape today with brew install caskformula/homebrew-caskformula/inkscape
It looks like brew downloaded and installed poppler 0.59 (which was an upgrade from 0.57 on my system and broke my R setup). I used brew switch poppler 0.57 to revert the links to the older version of poppler and now inkscape installs fine
と書かれていましたので、早速「brew switch poppler 0.57.0_1」を実行後
「brew install caskformula/homebrew-caskformula/inkscape」を試したら、
無事
Installing inkscape from caskformula/caskformula
==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+down
Already downloaded: /Users/WAKAMATSU/Library/Caches/Homebrew/inkscape-0.92.2.tar.bz2
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/inkscape/0.92.2 --disab
==> make
==> make install
/usr/local/Cellar/inkscape/0.92.2: 1,019 files, 128.7MB, built in 27 minutes 10 seconds
と表示されインストールに再興したことを確認。
直ぐに「$ inkscape」をTerminal から起動させ、日本語入力も出来ることを確認した。
////////////////////////// 此処からは、独り言 ////////////////////////
3日間も失敗すると、ダンダン攻め方が判り出しました。
書き方が悪いのですが、「諸悪の根源は poppler0.59.0_1」に「有り!!」
何れにも「共通する問題箇所」はbrew upgrade poppler で更新した、
ver.0.59.0_1のpoppler。
このverを削除してもinstall brew caskformula/homebrew-caskformula/inkscape
を実行すると「poppler 0.59.0_1」が呼び出され、途中でエラーが吐き出される。
============= 以下は失敗した例の羅列です。=======
$brew install caskformula/caskformula/inkscape --with-gtk3
も試みたが、
make
Last 15 lines from /Users/WAKAMATSU/Library/Logs/Homebrew/inkscape/03.make:
inline Object Object::dictLookup(const char *key, int recursion)
^
extension/internal/pdfinput/pdf-parser.cpp:774:8: error: 'free' is a private member of 'Object'
obj2.free();
^
/usr/local/Cellar/poppler/0.59.0_1/include/poppler/Object.h:291:8: note: declared private here
void free();
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [extension/internal/pdfinput/pdf-parser.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
とコメントが表示され「fatal error」とも書かれている。
======================
=========== Cask inkscape のインストールでは通常の
「Inkscape-0.92.2-1-x11-10.7-x86_64.dmg」からのアプリのインストールと
変わらないので「日本語入力」は、直接できない。同一のアプリ。
Installing Cask inkscape
Error: It seems there is already an App at '/Applications/Inkscape.app'.
Error: Install incomplete.
============================
此処数日間「Inkscape」のインストールで手間取っていた。
brew install caskformula/caskformula/inkscape
この設定からコンパイルに失敗。
出てくるコメントは以下の通り。
///////////////////////////////////////////////////////2017年9月7日 & 2017年9月8日
==> Installing inkscape from caskformula/caskformula
==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+down
Already downloaded: /Users/WAKAMATSU/Library/Caches/Homebrew/inkscape-0.92.2.tar.bz2
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/inkscape/0.92.2 --disab
==> make
Last 15 lines from /Users/WAKAMATSU/Library/Logs/Homebrew/inkscape/03.make:
~~~~~~~~~~~~~~~~~ ^~~~
/usr/local/include/poppler/Page.h:199:3: note: 'getContents' declared here
Object getContents() { return contents.fetch(xref); }
^
extension/internal/pdfinput/pdf-input.cpp:850:13: error: 'free' is a private member of 'Object'
obj.free();
^
/usr/local/Cellar/poppler/0.59.0_1/include/poppler/Object.h:291:8: note: declared private here
void free();
^
2 errors generated.
make[3]: *** [extension/internal/pdfinput/pdf-input.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/caskformula/homebrew-caskformula/issues
//////////////////////////////////////////////////
事の始まり2017年9月6日
============Terminal から起動できたInkscapeで
$inkscape
dyld: Library not loaded: /usr/local/opt/poppler/lib/libpoppler.68.dylib
Referenced from: /usr/local/bin/inkscape
Reason: image not found
Trace/BPT trap: 5
===================
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/lib/libpoppler-qt5.1.dylib
/usr/local/lib/libpoppler-qt5.a
/usr/local/lib/libpoppler-qt5.dylib
/usr/local/lib/libpoppler.67.dylib
/usr/local/lib/pkgconfig/poppler-qt5.pc
。。。。。。。。。。。。。。。。。。
以上の5つを「brew prune」の実行をしてみる。
再インストールを実行するが、
Receiving objects: 100% (288988/288988), 1.47 GiB | 443.00 KiB/s, done.
Resolving deltas: 100% (216371/216371), done.
Checking out files: 100% (4023/4023), done.
==> Checking out branch master
==> ./autogen.sh
Last 15 lines from /Users/WAKAMATSU/Library/Logs/Homebrew/inkscape/01.autogen.sh:
2017-09-06 00:11:37 +0900
./autogen.sh
で、終わってしまう。
/////////////////////////////
調べた結果は、以前インストールしている場合は、一旦削除しないと
上手く行かない。と言う事実。