やってみる

アウトプットすべく己を導くためのブログ。その試行錯誤すらたれ流す。

GIMP2.99.6をインストールしたかったが失敗した

 開発版だがGTK3、Python3を使うようバージョンアップする。ぜひとも入れたかったのだが残念。

成果物

情報源

手順

flatpakをインストールする

 パッケージマネージャflatpakをインストールする。

sudo apt install -y flatpak
$ flatpak --version
Flatpak 1.2.5

開発版GIMP2.99.6をインストールする

方法1: インストーラを入手する

wget https://flathub.org/beta-repo/appstream/org.gimp.GIMP.flatpakref
org.gimp.GIMP.flatpakref

 インストーラが起動しなかった……。

方法2: flatpakでインストールする

flatpak install --user https://flathub.org/beta-repo/appstream/org.gimp.GIMP.flatpakref

 選択肢が出てくる。意味不明だが適当にすべてYを入力する。途中から面倒になってEnterのみ。

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/pi/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

The remote 'flathub-beta', refered to by 'org.gimp.GIMP' at location https://dl.flathub.org/beta-repo/ contains additional applications.
Should the remote be kept for future installations? [Y/n]: Y
The application org.gimp.GIMP depends on runtimes from:
  https://dl.flathub.org/repo/
Configure this as new remote 'flathub' [Y/n]: Y
Required runtime for org.gimp.GIMP/arm/beta (runtime/org.gnome.Platform/arm/3.36beta) found in remote flathub-beta
Do you want to install it? [Y/n]: 

org.gimp.GIMP permissions:
    ipc      network      wayland      x11      file access [1]      dbus access [2]      tags [3]

    [1] /tmp, host, xdg-config/GIMP, xdg-config/gtk-3.0, xdg-run/gvfs
    [2] org.freedesktop.FileManager1, org.gtk.vfs, org.gtk.vfs.*
    [3] GTK+3, development


        ID                                   Arch           Branch             Remote                 Download
 1.     org.gnome.Platform                   arm            3.36beta           flathub-beta           < 290.3 MB
 2.     org.gnome.Platform.Locale            arm            3.36beta           flathub-beta           < 322.8 MB (partial)
 3.     org.gimp.GIMP                        arm            beta               flathub-beta            < 63.2 MB

Proceed with these changes to the user installation? [Y/n]: 

 しばらくしたらエラーになった……。空きならあるはずなのだが?

...
        ID                                   Arch           Branch             Remote                 Download
 1. [] org.gnome.Platform                   arm            3.36beta           flathub-beta              37.9 MB / 290.3 MB
 2. [ ] org.gnome.Platform.Locale            arm            3.36beta           flathub-beta           < 322.8 MB (partial)
 3. [ ] org.gimp.GIMP                        arm            beta               flathub-beta            < 63.2 MB

Error: While pulling runtime/org.gnome.Platform/arm/3.36beta from remote flathub-beta: Error writing to file descriptor: デバイスに空き領域がありません
^[[33;61Rerror: Failed to install org.gnome.Platform: While pulling runtime/org.gnome.Platform/arm/3.36beta from remote flathub-beta: Error writing to file descriptor: デバイスに空き領域がありません

 システムメニューに表示する。開発版、安定版、どちらか一方のみしか表示できない。以下のコマンドで指定する。

flatpak make-current --user org.gimp.GIMP beta
flatpak make-current --user org.gimp.GIMP stable

 起動する。

flatpak run org.gimp.GIMP//beta

 更新する。

flatpak update

方法3: ソースコードからビルドする

wget https://download.gimp.org/mirror/pub/gimp/v2.99/gimp-2.99.6.tar.bz2
tar -jxvf gimp-2.99.6.tar.bz2
cd gimp-2.99.6
./configure --help
./configure
make

 configureすると以下エラーになった。

$ ./configure
...
configure: error: Your intltool is too old.  You need intltool 0.40.1 or later.

 ググった。

sudo apt-get update -y
sudo apt-get install -y intltool

 再度やる。

./configure
...
checking for gobject-introspection... configure: error: gobject-introspection-1.0 is not installed

 ググった。

sudo apt install libgirepository1.0-dev

 再度やる。

./configure
configure: error: Vala-plugins are enabled, but could not find vala compiler
sudo add-apt-repository ppa:vala-team
sudo apt update
sudo apt install valac
sudo apt install vala-0.42-doc
sudo apt install valac-dbg
$ valac --version
Vala 0.42.5
$ apt search vala | grep vala-
...
vala-0.42-doc/stable 0.42.5-1 all
...

所感

 

対象環境

$ uname -a
Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux