本家様 https://bio3d.colorado.edu/PEET/
imodのetomoからコールすることが可能なのでGUIで運転できます.
あとpeetはMatlabで書かれていて、そのバイナリーが提供されている. なのでMatlab runtimeを用意すれば動きます
入手 †
https://bio3d.colorado.edu/ftp/PEET/
から
「linux/Particle_1.15.1a_linux.sh」(43MB)
と
Matlab-runtimeの「linux/ParticleRuntimeV99_linux.tgz」(2.8GB)
を入手します
展開 †
[root@rockylinux9 ~]# cat /etc/redhat-release
Rocky Linux release 9.1 (Blue Onyx)
[root@rockylinux9 ~]# cd /apps/
[root@rockylinux9 apps]# bash src/Particle_1.15.1a_linux.sh --help
This self-extracting installer will install PEET in a specified location
(default: /usr/local/) and configure startup files on Linux or Windows.
(The installed package will be named Particle). Available options which
can enterred on the command line after the installer name are:
--dir dir Install or extract to dir (default = /usr/local). This
directory must exist and you must have write permission.
-e, -extract Extract the compressed package (only). Do not install.
--script dir Place the PEET startup scripts in directory dir
(default = /etc/profile.d).
--skip Skip copying or modifying startup scripts.
--debian Modify /etc/csh.cshrc and /etc/bash.bashrc instead of copying
startup scripts to /etc/profile.d. This option is set
automatically for Ubuntu versions prior to 10.
-y, --yes Do not prompt for confirmation.
-?, -h, --help Print this help message
Long form (--) options my be abbreviated by their unique prefixes.
[root@rockylinux9 apps]#
インストールはimodと同じ感覚かな
[root@rockylinux9 apps]# bash src/Particle_1.15.1a_linux.sh --dir /apps --script /apps
This script will:
remove any prior version and install PEET in /apps
copy /apps/Particle/Particle.csh to /apps
copy /apps/Particle/Particle.sh to /apps
Add the option --h to see a list of available alternatives.
Okay to proceed (y/n)? [n]: y
Extracting Particle_1.15.1a_linux.tgz...
Installing...
Copying /apps/Particle/Particle.csh to /apps
Copying to /apps
[root@rockylinux9 apps]#
っが、この「/apps/Particle.sh」と「/apps/Particle.csh」は微妙...EnvironmentModulesを使うなら消した方がいいかな
次にMatlab-runtimeを展開します
まずは確認
[root@rockylinux9 apps]# tar tvf src/ParticleRuntimeV99_linux.tgz |less
drwxr-xr-x heumannj/hvem 0 2020-09-23 10:09 ParticleRuntime/
drwxr-xr-x heumannj/hvem 0 2020-09-23 10:14 ParticleRuntime/v99/
drwxr-xr-x heumannj/hvem 0 2020-09-23 10:09 ParticleRuntime/v99/mcr/
drwxr-xr-x heumannj/hvem 0 2020-09-23 10:14 ParticleRuntime/v99/mcr/toolbox/
:
[root@rockylinux9 apps]#
なので /apps の直下に配置させます
[root@rockylinux9 apps]# tar xf src/ParticleRuntimeV99_linux.tgz
EnvironmentModules †
PEETのアプリに Matlab-runtime の場所を定義します
編集先は「/apps/Particle/particle.cfg」で下記のように修正します
| --- /apps/Particle/particle.cfg.orig 2022-03-19 08:49:51.000000000 +0900
+++ /apps/Particle/particle.cfg 2023-01-28 18:45:13.085752305 +0900
@@ -1,5 +1,5 @@
# Set the MATLAB Component Runtime path and architecture
-MCR_ROOT=/usr/local/ParticleRuntime/v99
+MCR_ROOT=/apps/ParticleRuntime/v99
MATLABARCH=glnxa64
# To prevent cache contention, make MCR cache local to each macine and
|
そして EnvironmentModules は
[root@rockylinux9 ~]# vi /apps/modulefiles/PEET
#%Module1.0
set PARTICLE /apps/Particle
setenv PARTICLE_DIR $PARTICLE
prepend-path PATH $PARTICLE/bin
prepend-path MANPATH $PARTICLE/man
[root@rockylinux9 ~]#
rm -rf /apps/Particle/Particle.csh /apps/Particle/Particle.sh
メモ †
imodのetomoと連携させるならimodのEnvironmentModules に加えた方がいいのかも