「GIMP for Mac」を「sudo port install gimp」でインストールしたけど・・・

無料の高機能なペイントソフトの「GIMP for Mac」が「X11」なしで動作可能になったってことに、いまさら気がついたのでインストールを行うことにした。

多分本家のGIMP - GNU Image Manipulation Programにいき、ダウンロードのページGIMP - Downloadsで、

「sudo port install gimp」で簡単にできるようなことが書いてあったので、macportsでインンストールすることにしたが、思いのほか嵌ってしまった。(だから、GIMP2.8をMacでインストール・起動できない人へのメモ | 774no874でも書かれているが、http://gimp.lisanet.de/Website/Download.htmlにいって、自分のMacのOSにピッタリのGIMP2.8をダウンロードしてくるのが正解のようです。)

まずは、普通に「sudo port install gimp」ってすると、

$ sudo port install gimp
Password:
Warning: port definitions are more than two weeks old, consider using selfupdate
--->  Computing dependencies for gimp

(省略)

Error: org.macports.activate for port gdk-pixbuf2 returned:
Error: Failed to install gdk-pixbuf2
Please see the log file for port gdk-pixbuf2 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gdk-pixbuf2/gdk-pixbuf2/main.log
Error: The following dependencies were not installed: gimp-app gimp2 gegl gtk2 gdk-pixbuf2 hicolor-icon-theme pango Xft2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser lensfun libopenraw boost icu librsvg libart_lgpl libcroco libgsf gnome-vfs desktop-file-utils popt gconf dbus-glib dbus orbit2 libidl pkgconfig policykit eggdbus gnome-mime-data libbonobo libspiro lua openexr ilmbase w3m boehmgc gimp-help-en iso-codes lcms libexif libgnomeui audiofile libbonoboui libgnome esound libgnomecanvas libglade2 libgnome-keyring gnome-keyring autoconf help2man p5.12-locale-gettext m4 automake gtk-doc docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl gnome-doc-utils libxslt py27-libxml2 rarian libgcrypt libgpg-error libtasn1 libtool libmng libwmf poppler poppler-data py27-gtk py27-cairo py27-gobject webkit-gtk enchant aspell texinfo hunspell geoclue gst-plugins-base gstreamer bison flex libsoup glib-networking gnutls lzo2 libproxy mesa xorg-dri2proto xorg-glproto xorg-libXmu gimp-jp2 gimp-lqr-plugin liblqr gtk-nodoka-engine coreutils gmp gutenprint icns-gimp ufraw cfitsio dcraw gtkimageview xsane sane-backends libusb-compat libusb net-snmp
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gimp failed

って感じでエラーになったので、macportsも古いみたいなので、とりあえずアップデートすることにした。

$ sudo port -d selfupdate
Password:

(省略)

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

「port upgrade outdated」もしろってことなので、

$ sudo port upgrade outdated
Password:

(省略)

Error: Requested variants "+x11" do not match original selection "".
Please use the same variants again, perform 'port clean gdk-pixbuf2' or specify the force option (-f).
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

で、ここでエラーになっているのに、かまわず「sudo port upgrade installed」ってしてしまう。

$ sudo port upgrade installed
Password:
Error: Requested variants "+x11" do not match original selection "".
Please use the same variants again, perform 'port clean gdk-pixbuf2' or specify the force option (-f).
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

「port clean gdk-pixbuf2」ってしろってことなので、

$ sudo port clean gdk-pixbuf2 -f
--->  Cleaning gdk-pixbuf2

そして再度「sudo port upgrade installed」ってすると

$ sudo port upgrade installed
--->  Computing dependencies for gdk-pixbuf2
--->  Fetching archive for gdk-pixbuf2

(省略)

--->  Computing dependencies for mecab
Error: Unable to upgrade port: Can't install mecab because conflicting ports are installed: mecab-utf8
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

以前インストールしたmecabがコンフリクトしてるみたいなので、とりあえずmecabをアンインストールする。

$ sudo port uninstall mecab*
Password:
Deprecated: please install 'mecab-utf8' instead of 'mecab +utf8'.
Note: upgrading mecab will be completed if mecab-utf8 is successfully installed, although the process fails due to a conflict.
--->  Uninstalling mecab @0.994_0+ipadic+utf8
--->  Cleaning mecab
--->  The following versions of mecab-utf8 are currently installed:
--->      mecab-utf8 @0.994_0+ipadic
--->      mecab-utf8 @0.996_0+ipadic (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

なんか、エラーが出てるけどこれは無視して、

$ sudo port upgrade installed
--->  Fetching archive for nkf

(省略)

--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

あらためて、「sudo port install gimp」(もしかすると、これはいらなかったかもしれなしれない)

$ sudo port install gimp
Password:
--->  Computing dependencies for gimp
--->  Cleaning gimp
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

で、起動する。

「アプリケーション」から「MacPorts」を見つけて、

GIMP.app」をクリック。

無事起動しました。

しかし・・・!!!冒頭で「X11」なしで動作可能って書いたのに、「X11」上で動いてる・・・

で、結局http://gimp.lisanet.de/Website/Download.htmlにいって、自分のMacのOSにピッタリのGIMP2.8をダウンロードしてインストールしました。チャンチャン(トホホ・・・)