Snapパッケージの提供が中断している最新のEclipse(2020-09)をUbuntu Make(umake)でインストールする

Posted by 雅楽斎 on Saturday, September 26, 2020

TOC

かつてはリリースから程なくしてsnapでも提供されていたEclipse

Ubuntu(とsnapが動作するLinuxディストロ)でEclipseを使いたい場合、つい半年ほど前まではsnapパッケージがリリースされていて、コマンドひとつでインストール可能でした。

Snapを使用する

3ヶ月ごとのEclipseのリリースの度にそれほど間を置かずにSnapcraftersが最新版をリリースしてくれていたんですが、今年の6月から追従が止まってしまっています。

Eclipse 2020-06 launched · Issue #32 · snapcrafters/eclipse

Hi, Eclipse 2020-06 was launched recently. By what time can we expect the new release to be available for the snap users. https://twitter.com/EclipseJavaIDE/status/1273261977226350592 Thanks

内部で使用しているcoreというパッケージを更新する必要があるらしく、その解決ができずに作業が進まないという感じに端からは見えるのですが、結果として2020年9月現在はリリース済みのEclipse 2020-09はsnapパッケージでは提供されていません。1

Snap uses core18 · Issue #29 · snapcrafters/eclipse

@popey does this need to be changed? eclipse/.travis.yml Line 33 in ca53b05 - http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16

Ubuntu MakeでEclipse 2020-09をインストールする

EclipseはLinux版を直接ダウンロードするとtar.gzパッケージを展開してその中の実行ファイルから起動することになるので、システムに統合して使いたい場合にはあまり良い状態とはいえません。なんとかパッケージとして扱えるようにしたいので、今回はUbuntu Makeを使ってEclipse 2020-09をインストールします。

動作確認を行った環境はUbuntu MATE 20.04(amd64)です。

Ubuntu Makeをsnapでインストールする

GitHub - ubuntu/ubuntu-make: Easy setup of common tools for developers on Ubuntu.

Easy setup of common tools for developers on Ubuntu. - GitHub - ubuntu/ubuntu-make: Easy setup of common tools for developers on Ubuntu.

Ubuntu Makeは3種類のインストール方法2がありますが、現時点できちんと更新されていて手元の環境に影響を与えずEclipse 2020-09をインストールできるsnapで今回はインストールします。

# snap install ubuntu-make --classic

Ubuntu Makeでインストールできるパッケージの確認

Ubuntu MakeはEclipseに限らずプログラミング言語やChromeDriverのようなテスト用補助ツールもインストールできます。一覧はumake --listコマンドで表示できますが全部貼ると長いので気になるものをピックアップすると以下の様になります。

  • android
    • android-ndk
    • andoird-platform-tools
    • android-sdk
    • android-studio
  • dart
    • dart-sdk
    • flutter-sdk
  • electronics
    • arduino
    • eagle
  • games
    • blender
    • stencyl
  • go
    • go-lang
  • ide
    • atom
    • clion
    • datagrip
    • eclipse
    • goland
    • idea
    • liteide
    • netbeans
    • phpstorm
    • pycharm
    • rider
    • sublime-text
    • visual-studio-code
    • vscodium
    • webstorm
  • java
    • adoptopenjdk
    • openjfx
  • kotlin
    • kotlin-lang
  • nodejs
    • nodejs-lang
  • rust
    • rust-lang
  • scala
    • scala-lang
  • swift
    • swift-lang
  • web
    • chromedriver
    • geckodriver
    • phantomjs

端的に結構広いプログラミング言語とIDE、特にJetBrainsを手広くカバーしている印象です。上に書いた箇条書きの一段階目と二段階目を引数に指定してインストールします。

Ubuntu MakeでのEclipseのインストール

$ umake ide eclipse
Choose installation path: /home/hogehoge/.local/share/umake/ide/eclipse
100% |#########################################################################|
Installing Eclipse
|##############################################################################|
Installation done

メニュー→プログラミングの下にEclipseが登録されているので起動します。登録されていない場合はインストール時に表示された(指定していなければデフォルトの)パスの下にあるeclipse(上記の例では/home/hogehoge/.local/share/umake/ide/eclipse/eclipse)を実行します。

お疲れ様でした。

スポンサーリンク


  1. とはいえ、現在はedgeチャンネルをインストールすれば2020-06がインストールできるようなので、またsnapパッケージも最新を追従できるようになる気もしています [return]
  2. Ubuntuの標準パッケージ、PPA( https://launchpad.net/~lyzardking/+archive/ubuntu/ubuntu-make )、snap [return]

comments powered by Disqus