本家様 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 に加えた方がいいのかも

最新の60件
2024-04-19 2024-04-18 2024-04-17 2024-04-16 2024-04-15 2024-04-11 2024-04-06 2024-04-05 2024-03-30 2024-03-29 2024-03-19 2024-03-17 2024-03-15 2024-03-06 2024-03-05 2024-03-03 2024-02-23 2024-02-22 2024-02-21 2024-02-20 2024-02-19 2024-02-18 2024-02-17 2024-02-13 2024-02-12 2024-02-09 2024-02-04 2024-02-03 2024-01-31 2024-01-30 2024-01-29 2024-01-28 2024-01-22 2024-01-16 2024-01-13 2024-01-09 2024-01-08 2024-01-07 2024-01-03 2023-12-22 2023-12-17

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-01-28 (土) 19:02:04