読者です 読者をやめる 読者になる 読者になる

/dev/null

(◞‸◟)

MacPortsなしでMacOS X 10.8にZenityをインストールしようとしたら頓挫

winetrickのGUIフロントエンドを起動させるにはZenityと呼ばれる物が必要なようです。

MacPortsだと簡単に入るっぽいのですがパッケージ管理はhomebrewに一任していて、何よりMacPortsの関連バイナリフルインストールな思想が辛いのでもう使いたくありません。 しかたがないのでソースからインストールしてみます。

以下殴り覚書

まずZenityをDL.

http://ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/zenity/2.20/zenity-2.20.1.tar.gz

解凍したからターミナルから作業します。

とりあえずconfigure

~/Downloads/zenity-2.20.1]$ ./configure                                                                                                                             [13:37:20]
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: error: gnome-doc-utils >= 0.3.2 not found

gnome-doc-utilsをインストール。

[~/Downloads/zenity-2.20.1]$ brew install gnome-doc-utils

再configure

checking for intltool >= 0.35.0... 0.36.1 found
checking for xgettext... no
checking for msgmerge... no
checking for msgfmt... no
configure: error: GNU gettext tools not found; required for intltool

getTextがないのでインストール

$ brew install gettext                                                                                                                    
Warning: gettext-0.19.2 already installed

既に入ってるぽいのに読み込まれない。

brewのファイルをリンクさせます

$ brew link gettext                                                                                                                      
Warning: gettext is keg-only and must be linked with --force
Note that doing so can interfere with building software.

forceをつけないといけない

$ brew link gettext --force                                                                                                              
Linking /usr/local/Cellar/gettext/0.19.2... 194 symlinks created

再度configure

checking for ZENITY... configure: error: Package requirements (gtk+-2.0 >= 2.9.2 libglade-2.0 libgnomecanvas-2.0 glib-2.0) were not met:

No package 'gtk+-2.0' found
No package 'libglade-2.0' found
No package 'libgnomecanvas-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ZENITY_CFLAGS
and ZENITY_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

とりあえずgtk+をいれる

$ brew install gtk+

configure


checking for ZENITY... configure: error: Package requirements (gtk+-2.0 >= 2.9.2 libglade-2.0 libgnomecanvas-2.0 glib-2.0) were not met:

Package 'xcb-shm', required by 'cairo', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ZENITY_CFLAGS
and ZENITY_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

xcb-shmとかいうのはbrewにない。 pkg-config-pathを教える。 https://github.com/Homebrew/homebrew/issues/14123

export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig

configure

checking for ZENITY... configure: error: Package requirements (gtk+-2.0 >= 2.9.2 libglade-2.0 libgnomecanvas-2.0 glib-2.0) were not met:

No package 'libglade-2.0' found
No package 'libgnomecanvas-2.0' found

libgladeとlibgnomecanvasいれる

$ brew instal libglade

$ brew instal libgnomecanvas

再度configure


checking for ZENITY... configure: error: Package requirements (gtk+-2.0 >= 2.9.2 libglade-2.0 libgnomecanvas-2.0 glib-2.0) were not met:

Package 'libxml-2.0', required by 'libglade-2.0', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ZENITY_CFLAGS
and ZENITY_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

libxml2はalready installedなのでlink

$ brew link libxml2 --force                                                                                                              
Linking /usr/local/Cellar/libxml2/2.9.1... 20 symlinks created

configure

configure: creating ./config.status
config.status: creating Makefile
config.status: creating zenity.spec
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating src/gdialog
config.status: creating data/Makefile
config.status: creating help/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

多分通った。 makeをかける

$ make                                                                                                                                 
make  all-recursive




Making all in data
make[2]: Nothing to be done for `all'.
Making all in help
/bin/sh: scrollkeeper-config: command not found
/bin/sh: scrollkeeper-config: command not found
The file '/Templates/C/scrollkeeper_cl.xml' does not exist.
Please check your ScrollKeeper installation.
make[2]: *** [zenity-C.omf] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

makeでコケて力尽きたのでここまで。