UJP - pdfでdiffをとるdiff-pdf

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ ハウツー の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - pdfでdiffをとるdiff-pdf

pdfでdiffをとるdiff-pdf

カテゴリ : 
ハウツー
ブロガー : 
ujpblog 2018/5/21 23:59
 diff-pdfのパッケージを確認.
MBP2017:~ ujpadmin$ brew info diff-pdf🆑
diff-pdf: stable 0.2 (bottled)
Visually compare two PDF files
https://vslavik.github.io/diff-pdf/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/diff-pdf.rb
==> Dependencies
Build: pkg-config ✔, automake ✘, autoconf ✔
Required: wxmac ✘, cairo ✘, poppler ✘
==> Requirements
Required: x11 ✘
MBP2017:~ ujpadmin$
 インストールされてない依存関係のあるパッケージがあるので,次々とインストールしていく.
 まずはautomake.
MBP2017:~ ujpadmin$ brew install automake🆑
==> Downloading https://homebrew.bintray.com/bottles/automake-1.16.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring automake-1.16.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/automake/1.16.1: 131 files, 3MB
MBP2017:~ ujpadmin$
 問題なく終了.次はwxmac.これはCross-platform C++ GUI toolkit.
MBP2017:~ ujpadmin$ brew install wxmac🆑
==> Downloading https://homebrew.bintray.com/bottles/wxmac-3.0.4.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wxmac-3.0.4.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/wxmac/3.0.4: 810 files, 23.7MB
MBP2017:~ ujpadmin$
 次に,cairo.Vector graphics library with cross-device output supportとある.
MBP2017:~ ujpadmin$ brew install cairo🆑
==> Installing dependencies for cairo: pixman, libffi, glib
==> Installing cairo dependency: pixman
==> Downloading https://homebrew.bintray.com/bottles/pixman-0.34.0_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.34.0_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.34.0_1: 13 files, 1.3MB
==> Installing cairo dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.2.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.2.1.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of libffi.

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/libffi/lib
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/libffi/3.2.1: 16 files, 297.0KB
==> Installing cairo dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.56.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.56.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.56.1: 430 files, 23.7MB
==> Installing cairo
==> Downloading https://homebrew.bintray.com/bottles/cairo-1.14.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.12.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cairo/1.14.12: 118 files, 5.8MB
MBP2017:~ ujpadmin$
 そしてX11を.
MBP2017:~ ujpadmin$ brew install x11🆑
Error: No available formula with the name "x11"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
This similarly named formula was found:
x11vnc
To install it, run:
  brew install x11vnc🈁
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
MBP2017:~ ujpadmin$
 エラーがでた.x11vncをインストールしろとのこと.VNC server for real X displaysです.ライブラリ利用ようかなぁ.
MBP2017:~ ujpadmin$ brew install x11vnc🆑
==> Downloading https://homebrew.bintray.com/bottles/x11vnc-0.9.13_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring x11vnc-0.9.13_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/x11vnc/0.9.13_1: 30 files, 3.7MB
MBP2017:~ ujpadmin$
 問題なくx11vncはインストール完了.次に,XQuartzが入っているか確認.
MBP2017:~ ujpadmin$ brew cask info xquartz🆑
xquartz: 2.7.11
https://www.xquartz.org/
Not installed🈁
From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/xquartz.rb
==> Name
XQuartz
==> Artifacts
XQuartz.pkg (Pkg)
MBP2017:~ ujpadmin$
 インストールされてない.
 macOSでX Windowを使うには,XQuartzが必要なのでインストールしておく.
BP2017:~ ujpadmin$ brew cask install XQuartz🆑
==> Satisfying dependencies
==> Downloading https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask xquartz
==> Installing Cask xquartz
==> Running installer for xquartz; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.

==> installer: Package name is XQuartz 2.7.11
==> installer: Installing at base path /
==> installer: The install was successful.
🍺  xquartz was successfully installed!
MBP2017:~ ujpadmin$
 xquartzのインストールが終わったので,依存関係が解消しているか確認.
MBP2017:~ ujpadmin$ brew info diff-pdf🆑
diff-pdf: stable 0.2 (bottled)
Visually compare two PDF files
https://vslavik.github.io/diff-pdf/
/usr/local/Cellar/diff-pdf/0.2_30 (6 files, 206KB) *
  Poured from bottle on 2018-05-22 at 00:32:00
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/diff-pdf.rb
==> Dependencies
Build: pkg-config ✔, automake ✔, autoconf ✔
Required: wxmac ✔, cairo ✔, poppler ✔
==> Requirements
Required: x11 ✔
MBP2017:~ ujpadmin$
 x11も入っていることとして認識されている.
 本体の,diff-pdfをインストール.
MBP2017:~ ujpadmin$ brew install diff-pdf🆑
==> Downloading https://homebrew.bintray.com/bottles/diff-pdf-0.2_30.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring diff-pdf-0.2_30.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/diff-pdf/0.2_30: 6 files, 206KB
MBP2017:~ ujpadmin$
 問題なくインストールされました.X11をインストールするのにXQuartzを入れるというのがキモかな.

トラックバック


広告スペース
Google