MAC OS(Marvericks) でKeePass2のファイルを読む(準備その2)

MAC OS(Marvericks) でKeePass2のファイルを読む(準備その1)

この作業の続きです。実際に発行したコマンドとその結果を貼り付け。※どうやら、brewのインストール完了時にビールのアイコンが出るのだが、それを貼り付けようとすると、Wordpressの内部処理でダメになるようだ…?これはこれで怖いな。

この時点ではまだ、KeepassX2のインストールまで到達できていない。



homebrew でのインストール


作業ログ

cmake


$ brew install cmake



Macmini:Desktop rebine$ brew install cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.1
######################################################################## 100.0%
==> Pouring cmake-2.8.12.mavericks.bottle.1.tar.gz
  /usr/local/Cellar/cmake/2.8.12: 701 files, 36M



libgcrypt


$ brew install libgcrypt



Macmini:Desktop rebine$ brew install libgcrypt
==> Installing libgcrypt dependency: libgpg-error
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.12.tar.bz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libgpg-error/1.12
==> make install
  /usr/local/Cellar/libgpg-error/1.12: 15 files, 172K, built in 76 seconds
==> Installing libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.3.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file cipher/rijndael.c
Hunk #1 succeeded at 725 (offset -5 lines).
Hunk #2 succeeded at 780 (offset -5 lines).
Hunk #3 succeeded at 839 (offset -5 lines).
Hunk #4 succeeded at 857 (offset -5 lines).
Hunk #5 succeeded at 918 (offset -5 lines).
Hunk #6 succeeded at 1045 (offset -5 lines).
Hunk #7 succeeded at 1057 (offset -5 lines).
==> ./configure --prefix=/usr/local/Cellar/libgcrypt/1.5.3 --disable-asm --with-
==> make CFLAGS= -std=gnu89 -fheinous-gnu-extensions
==> make check
==> make install
  /usr/local/Cellar/libgcrypt/1.5.3: 14 files, 680K, built in 3.5 minutes}}}



zlib


$ brew tap homebrew/dupes
$ brew info zlib



Macmini:Downloads rebine$ brew tap homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew-dupes'...
remote: Counting objects: 1039, done.
remote: Compressing objects: 100% (594/594), done.
remote: Total 1039 (delta 561), reused 903 (delta 445)
Receiving objects: 100% (1039/1039), 193.72 KiB | 150.00 KiB/s, done.
Resolving deltas: 100% (561/561), done.
Checking connectivity... done
Tapped 40 formula
 
Macmini:Downloads rebine$ brew info zlib
zlib: stable 1.2.8
http://www.zlib.net/
 
This formula is keg-only.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
 
Not installed
From: https://github.com/homebrew/homebrew-dupes/commits/master/zlib.rb
==> Options
--universal
	Build a universal binary



$ brew install zlib



Macmini:Downloads rebine$ brew install zlib
==> Downloading http://zlib.net/zlib-1.2.8.tar.gz
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.8
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
 
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/zlib/lib
    CPPFLAGS: -I/usr/local/opt/zlib/include
 
==> Summary
  /usr/local/Cellar/zlib/1.2.8: 9 files, 384K, built in 12 seconds



$ sudo ln -s -f /usr/local/opt/zlib/lib/libz.1.2.8.dylib /usr/lib/libz.dylib


他でも新しいバージョンで使うかもしれないから、OSインストールされているものを切り替え。
keepass実行のためには必須ではないと思う。

libtiff


$ brew install libtiff



Macmini:Downloads rebine$ brew install libtiff
==> Installing libtiff dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mav
######################################################################## 100.0%
==> Pouring jpeg-8d.mavericks.bottle.tar.gz
  /usr/local/Cellar/jpeg/8d: 18 files, 780K
==> Installing libtiff
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-l
==> make install
  /usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M, built in 59 seconds




qt


※2013/12/01 追記。既に本家のリポジトリにqtのパッチがあたっていたので、通常のインストールを記載。

$ brew install qt



$ brew install qt
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/qt-4.8.5.ma
######################################################################## 100.0%
==> Pouring qt-4.8.5.mavericks.bottle.3.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
==> Summary
  /usr/local/Cellar/qt/4.8.5: 2780 files, 112M




下記はqtのインストールでエラーが発生していたときの記録(2013/10/30 ~ ?)

パッチを公開してくれていた人がいた。

$ brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb



Macmini:Downloads rebine$ brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb
######################################################################## 100.0%
==> Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt
Already downloaded: /Library/Caches/Homebrew/qt-4.8.5.tar.gz
==> Patching
patching file src/plugins/bearer/corewlan/qcorewlanengine.mm
patching file src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm
patching file src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 248 with fuzz 1.
==> /usr/local/bin/wget http://trac.webkit.org/export/157771/trunk/WebKitLibrari
==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license
==> make
==> make install
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
==> Summary
  /usr/local/Cellar/qt/4.8.5: 2775 files, 118M, built in 73.0 minutes




qtではまった時に出たログ


$ brew install -v qt


このように、-v つけると詳細がでるらしい。
まあ。ログファイルを見ろという話もあるけれど。
/usr/local/Libraly/Homebrew/Log/ だったかなぁ。。後で実機で確認予定。

Macmini:Downloads rebine$ brew install -v qt
==> Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/qt-4.8.5.tar.gz
tar xf /Library/Caches/Homebrew/qt-4.8.5.tar.gz
==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -no-3dnow -platform unsupported/macx-clang -no-qt3support -nomake docs -arch x86_64
./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -no-3dnow -platform unsupported/macx-clang -no-qt3support -nomake docs -arch x86_64
brew: superenv added: -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -L/usr/local/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -Wl,-headerpad_max_install_names
 
 
 
 
Build type:    unsupported/macx-clang
Architecture:  macosx ( x86_64 )
Using framework: Cocoa
 
Build .................. libs tools translations
Configuration ..........  release largefile stl mmx sse sse2 sse3 ssse3 sse4_1 sse4_2 avx  x86_64 absolute_library_soname  minimal-config small-config medium-config large-config full-config no-pkg-config phonon phonon-backend accessibility opengl shared reduce_exports ipv6 getaddrinfo ipv6ifname getifaddrs png no-freetype system-zlib nis cups iconv openssl corewlan concurrent xmlpatterns multimedia audio-backend svg script scripttools declarative release qt_framework  x86_64
Debug .................. no
Qt 3 compatibility ..... no
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... yes
Phonon module .......... yes
Multimedia module ...... auto
SVG module ............. yes
WebKit module .......... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ no
MMX/3DNOW/SSE/SSE2/SSE3. yes/no/yes/yes/yes
SSSE3/SSE4.1/SSE4.2..... yes/yes/yes
AVX..................... yes
Graphics System ........ default
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... yes
Iconv support .......... yes
Glib support ........... auto
GStreamer support ...... auto
PulseAudio support ..... auto
Large File support ..... yes
GIF support ............ plugin
TIFF support ........... plugin (qt)
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
MNG support ............ plugin (qt)
zlib support ........... system
Session management ..... auto
OpenGL support ......... yes (Desktop OpenGL)
OpenVG support ......... no
SQLite support ......... plugin (qt)
OpenSSL support ........ yes (run-time)
Alsa support ........... no
CoreWlan support ....... yes
ICD support ............ auto
libICU support ......... auto
Use system proxies ..... no
brew: superenv removed: -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -L/usr/local/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -Wl,-headerpad_max_install_names
Undefined symbols for architecture x86_64:
  "_WKCreateMediaUIBackgroundView", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKCreateMediaUIControl", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTClearMediaDownloadCache", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTClearMediaDownloadCacheForSite", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTGetSitesInMediaDownloadCache", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTIncludeOnlyModernMediaFileTypes", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieDataRate", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieDisableComponent", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieGetType", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieHasClosedCaptions", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieMaxTimeLoaded", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieMaxTimeLoadedChangeNotification", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieMaxTimeSeekable", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieResolvedURL", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieSelectPreferredAlternates", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieSetShowClosedCaptions", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKQTMovieViewSetDrawSynchronously", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKWindowSetAlpha", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
  "_WKWindowSetScaledFrame", referenced from:
      InitWebCoreSystemInterface() in WebSystemInterface.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: a59e2adfdb81da6a57f5f4c4b1a4a9b9863087da
CPU: dual-core 64-bit penryn
OS X: 10.9-x86_64
Xcode: 5.0.1
CLT: 5.0.1.0.1.1382131676
X11: N/A
==> ENV
HOMEBREW_CC: clang
CXXFLAGS: -fvisibility=hidden
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_VERBOSE: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin
 
Error: qt did not build
 
These open issues may also help:
    https://github.com/mxcl/homebrew/pull/22283
    https://github.com/mxcl/homebrew/issues/23480