fu7mu4’s diary

はてなダイアリーから移転しました。

gimpを巡る冒険

gimpを玖侶之子(Leopard)にmacportで入れてみた。

やってみた

まずは、これだ。

$ time sudo port install gimp2 +quarts
さあ、何個入ったかな?
  • aalib @1.4rc5_4
  • curl @7.19.5_0
  • dbus @1.2.14_0
  • dbus-glib @0.80_0
  • babl @0.0.22_0
  • XviD @1.2.2_0
  • cppunit @1.12.1_0
  • dirac @1.0.2_0
  • libmp4v2 @1.5.0.1_0
  • faac @1.28_1
  • faad2 @2.6.1_1
  • gmake @3.81_0
  • lame @3.98.2_1
  • libtheora @1.0_0
  • liboil @0.3.16_0
  • schroedinger @1.0.7_0
  • x264 @20090408_1
  • ffmpeg @0.5_2
  • urw-fonts @1.0.7pre44_0
  • graphviz @2.24.0_0+macosx
  • xmlcatmgr @2.2_1
  • docbook-xml-4.1.2 @4.1.2_1
  • docbook-xml-4.2 @4.2_0
  • docbook-xml-4.3 @4.3_0
  • docbook-xml-4.4 @4.4_0
  • docbook-xml-4.5 @4.5_0
  • docbook-xml-5.0 @5.0_0
  • docbook-xsl @1.75.1_0
  • iso-codes @3.10.1_0
  • libxml2 @2.7.3_0
  • libxslt @1.1.24_2
  • p5-xml-parser @2.36_0
  • db46 @4.6.21_5
  • gdbm @1.8.3_1
  • sqlite3 @3.6.16_0
  • python26 @2.6.2_3
  • py26-libxml2 @2.6.21_0
  • getopt @1.1.4_1
  • gnome-common @2.26.0_0
  • intltool @0.40.6_0
  • rarian @0.8.1_0
  • gnome-doc-utils @0.16.1_1
  • gtk-doc @1.11_1
  • atk @1.26.0_1
  • jasper @1.900.1_4
  • shared-mime-info @0.60_0
  • xorg-compositeproto @0.4_0
  • xorg-fixesproto @4.1_0
  • xorg-libXfixes @4.0.3_1
  • xorg-libXcomposite @0.4.0_1
  • xorg-libXcursor @1.1.9_1
  • xorg-damageproto @1.1.0_0
  • xorg-libXdamage @1.1.1_1
  • xorg-libXi @1.2.1_1
  • xorg-xineramaproto @1.1.2_0
  • xorg-libXinerama @1.0.3_1
aidの説明

#################################################################################################
# Startup items have been generated that will aid in
# starting dbus with launchd. They are disabled
# by default. Execute the following command to start them,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
# Sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
##################################################################################################

どうでもいいけどSudoでなくて、sudoですよね?

ffmpegの説明

# This build of ffmpeg includes GPLed code and
# is therefore licensed under GPL.
#
# The following modules are GPLed:
#
# postproc
# swscale
# libfaad
# libx264
# libxvid
#
# To include only LGPLed code use variant +no_gpl
#

docbook

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.1.2/catalog.xml".
######################################################################

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.2/catalog.xml".
######################################################################

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.3/catalog.xml".
######################################################################

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.4/catalog.xml".
######################################################################

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.5/catalog.xml".
######################################################################

######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it. To do so, run
# "xmlcatmgr remove nextCatalog /opt/local/share/xsl/docbook-xsl/catalog.xml".
######################################################################

python26

To fully complete your installation and make python 2.6 the default, please run

sudo port install python_select
sudo python_select python26

gtk2脂肪のお知らせ

Error: Target org.macports.fetch returned: cairo must be built without the +no_x11 variant.
Error: The following dependencies failed to build: gegl gtk2 libopenraw boost boost-jam librsvg libart_lgpl libcroco libgsf gnome-vfs desktop-file-utils popt gconf orbit2 libidl policykit gnome-mime-data libbonobo libspiro lua openexr ilmbase w3m boehmgc libexif libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libgcrypt libgpg-error libtasn1 libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libmng lcms libwmf poppler openjpeg poppler-data py25-gtk py25-cairo py25-numpy fftw-3 py25-nose py25-setuptools python25 py25-gobject
Error: Status 1 encountered during processing.

real 57m56.540s
user 33m10.478s
sys 16m43.563s

糸冬了〜〜〜

こうかな?

$ sudo port deactivate cairo @1.8.8_0+macosx+no_x11
$ sudo port install cairo

GO!

もういっかーい!

$ time sudo port install gimp2 +quarts

さて入ったのは?

  • gtk2 @2.16.4_0+x11
  • boost-jam @3.1.17_0
  • boost @1.39.0_2
  • libopenraw @0.0.8_0
  • libart_lgpl @2.3.20_0
  • libcroco @0.6.2_0
  • popt @1.15_0
  • desktop-file-utils @0.15_1
  • libidl @0.8.13_0
  • orbit2 @2.14.17_1
  • policykit @0.9_0
  • gconf @2.26.2_0
  • gnome-mime-data @2.18.0_3
  • gnome-vfs @2.24.1_0
  • libbonobo @2.24.1_0
  • libgsf @1.14.15_0
  • librsvg @2.26.0_1
  • libspiro @20071029_0
  • lua @5.1.4_0
  • ilmbase @1.0.1_2
  • openexr @1.6.1_1
  • boehmgc @7.1_0+darwin_9
  • w3m @0.5.2_1
  • gegl @0.0.22_3
  • libexif @0.6.17_0
  • hicolor-icon-theme @0.10_0
  • p5-xml-namespacesupport @1.10_0
  • p5-xml-sax @0.96_1
  • p5-xml-simple @2.18_0
  • icon-naming-utils @0.8.90_0
  • gnome-icon-theme @2.26.0_0
  • libgpg-error @1.7_0
  • libgcrypt @1.4.4_0
  • libtasn1 @1.7_0
  • gnome-keyring @2.26.3_0
  • libglade2 @2.6.4_0
  • audiofile @0.2.6_2
  • esound @0.2.41_1
  • libgnome @2.26.0_0
  • libgnomecanvas @2.26.0_0
  • libbonoboui @2.24.1_0
  • libgnomeui @2.24.1_0
  • lcms @1.18a_0
  • libmng @1.0.10_0
  • libwmf @0.2.8.4_2
  • openjpeg @1.3_3
  • poppler-data @0.2.1_0
  • poppler @0.11.1_0
  • fftw-3 @3.2.2_0
  • python25 @2.5.4_6+darwin_9+macosx
  • py25-setuptools @0.6c9_0
  • py25-nose @0.10.4_0
  • py25-numpy @1.3.0_0
  • py25-cairo @1.8.2_0+darwin_9
  • py25-gobject @2.18.0_0+darwin_9
  • py25-gtk @2.14.1_0+darwin_9
  • gimp2 @2.6.6_2+darwin_9+x11
でもういっかいpythonの説明

To fully complete your installation and make python 2.5 the default, please run

sudo port install python_select
sudo python_select python25

時間

real 154m5.823s
user 90m48.168s
sys 50m28.192s

とりあえず、installできた!

始動!

X11.appを起動してから、

$ gimp

で起動できました。

あれ、エラー?

Xlib: extension "RANDR" missing on display ":0.0".
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Not enough memory
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
GConf エラー: 設定サーバ (gconfd) に接続できませんでした: いくつか考えられる原因として、ORBit の TCP/IP ネットワークを有効にしていない、あるいはお使いのシステムで古い NFS のロックがクラッシュを引き起こしたことが考えられます。これに関連する情報については http://projects.gnome.org/gconf/ を参照して下さい: (詳細 - 1: セッションへの接続に失敗しました: Not enough memory)

ええっとー

設定サーバへを起動する設定してみた。

sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plis

gimp起動!

Xlib: extension "RANDR" missing on display ":0.0".
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Not enough memory

エラー減った!
ああ、でも再起動したらなおるんですかね?