Fedora39に2023-10のe2studioをインストールする方法

# やりたいこと
[これ](https://www.renesas.com/jp/ja/document/uid/e-studio-2023-10-linux-host)をダウンロードしてインストールする

# 結論
installerを個別で実行する

# 経緯

こんな感じでエラーになる
```
$ chmod +x ~/Downloads/e2studio_installer-2023-10_linux_host.run
$ ~/Downloads/e2studio_installer-2023-10_linux_host.run
Dec 28, 2023 1:04:24 PM org.apache.aries.spifly.BaseActivator log
INFO: Registered provider org.slf4j.simple.SimpleServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle slf4j.simple
SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.
Installer:
An error has occurred. See the log file
/home/voyager/.eclipse/129990100_linux_gtk_x86_64/configuration/1703736263000.log.
```

ログを見てみると
`libswt-pi4-gtk.so`が無いらしい

```
!SESSION 2023-12-28 14:02:34.805 -----------------------------------------------
eclipse.buildId=unknown
java.version=17.0.8
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -install.nolock
Command-line arguments:  -os linux -ws gtk -arch x86_64 -install.nolock

!ENTRY org.eclipse.osgi 4 0 2023-12-28 14:02:38.744
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
        no swt-pi4-gtk-4962r3 in java.library.path: /tmp/.mount_e2studheYydt/opt/e2studio_installer/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.stripped.linux.x86_64_17.0.8.v20230801-1951/jre/lib/server:/tmp/.mount_e2studheYydt/opt/e2studio_installer/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.stripped.linux.x86_64_17.0.8.v20230801-1951/jre/lib:/tmp/.mount_e2studheYydt/opt/e2studio_installer/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.stripped.linux.x86_64_17.0.8.v20230801-1951/jre/../lib:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu/libcanberra-0.30:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu/krb5/plugins/preauth:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules:/tmp/.mount_e2studheYydt//usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/printbackends:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-riscv64:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-aarch64:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-x86-64:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-mips64el:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-loongarch64:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-s390x:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-armel:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-ppc:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-ppc64le:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-x86:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/com.sun.jna_5.13.0.v20230812-1000/com/sun/jna/linux-arm:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.stripped.linux.x86_64_17.0.8.v20230801-1951/jre/lib:/tmp/.mount_e2studheYydt//opt/e2studio_installer/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.stripped.linux.x86_64_17.0.8.v20230801-1951/jre/lib/server:/tmp/.mount_e2studheYydt//lib/x86_64-linux-gnu:/tmp/.mount_e2studheYydt//lib/x86_64-linux-gnu/security:/tmp/.mount_e2studheYydt//lib/x86_64::/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
        no swt-pi4-gtk in java.library.path:
...
```

pi3しかねぇっす
```
~$ rpm -ql eclipse-swt  | grep -E ".*.so"
/usr/lib64/eclipse-swt/libswt-atk-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-awt-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-cairo-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-glx-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-pi3-gtk-4960r6.so
/usr/lib64/eclipse-swt/libswt-webkit-gtk-4960r6.so
```

本家で落として来ないとだめなのか？と思い
https://download.eclipse.org/releases/2023-09/202309131000/plugins/
に行ってみるがやはりpi3(*1)しか無い。
なんだ、pi4って ubuntuにしかないのか？

(*1) org.eclipse.swt.gtk.linux.x86_64_3.124.100.v20230825-1346.jar

ん？ubuntuにもpi3しか無いぞ。どういうこと？
https://packages.ubuntu.com/ja/mantic/amd64/libswt-gtk-4-jni/filelist

ちょっとgdbで見てみるか
installerを実行してるのね。
```
$ gdb ~/Downloads/e2studio_installer-2023-10_linux_host.run 
...
(gdb) r
...
process 158810 is executing new program: /tmp/.mount_e2stud7iAKqu/AppRun
process 158810 is executing new program: /tmp/.mount_e2stud7iAKqu/opt/e2studio_installer/installer  
...
^C
Program received signal SIGINT, Interrupt.
```

コピって見てみる
```
mkdir ~/e2studio_installer
cp -r /tmp/.mount_e2stud7iAKqu/* ~/e2studio_installer/
```

実行してみたら
```
cd ~/e2studio_installer/
opt/e2studio_installer/installer
```
あれ、動いたぞ？
![e2studio_installer.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2383810/cb147d53-3953-7f24-bc74-bc1d6b0bc5db.png)

起動も普通に出来ました。
```
~/.local/share/renesas/e2_studio/eclipse/e2studio &
```
![e2studio.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2383810/c56ca88a-a981-f093-a297-e76f52585df4.png)