Gamessをインストールする前の環境(コンパイラー、科学計算向け数理パッケージ)構築

前提;仮想マシンのOSインストール時に選択したCentOS8のオプションにて 「サーバー」を選択したのでGnome環境なしだが「開発ツール」「科学的サポート」を選択したうえでインストールした。参考

GNU Compiler

GNUコンパイラーをdnf(yum)でインストールする。参考

429 sudo dnf group install "Development Tools"
430 sudo dnf install llvm-toolset
434 sudo dnf install gcc-gfortran

インストール結果を確認してみる。

[localuser@localhost ~]$ gcc --version
gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[localuser@localhost ~]$ g++ --version
g++ (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[localuser@localhost ~]$ gfortran --version
GNU Fortran (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[localuser@localhost ~]$

アーキテクチャーの確認

マシン種の確認 uname -a コマンドにより調べる。

tcsh(シェル環境)

通常の状態でConfigureが実行できなかった → 「Linuxの一部のバージョンでは、tcshRPMまたはDPKGが必要になる場合があります」(gamess/machines/readme.unix)。なお、「UNIX用のシェルにはBourne Shell、C Shell、Korn Shell、bashなど幾つかの種類が存在し、Red Hat Linux のデフォルトのshell はbash が採用されています。」参考

CentOS8のデフォルトはBashなのだが、Gamessのインストール環境はtcshで構成されているようなので、tcshをインストール、デフォルトシェルを置き換えたのちに、インストールでは別のセッションで入りなおす。

[localuser@localhost gamess]$ echo $SHELL
/bin/bash
[localuser@localhost gamess]$ chsh -l
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
[localuser@localhost gamess]$ sudo dnf install tcsh

[localuser@localhost gamess]$ chsh -s /bin/tcsh
[localuser@localhost gamess]$

ログインをし直して、シェルの設定が変更されているかを確認、作業ディレクトリに移動

[localuser@localhost ~]$ chsh -l
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/bin/csh
/bin/tcsh
/usr/bin/csh
/usr/bin/tcsh
[localuser@localhost ~]$ echo $SHELL
/bin/tcsh
[localuser@localhost ~]$ cd ~/gamess/gamess
[localuser@localhost gamess]$

Openblas (git clone + compile )

Gamessコンパイルにはユーザー権限で構築したOpenBLASを用いた。

489 mkdir ~/openblas
490 cd ~/openblas
491 git clone https://github.com/xianyi/OpenBLAS.git
493 cd OpenBLAS/
495 make USE_THREAD=0

実体ファイル → /home/localuser/openblas/OpenBLAS/libopenblas.a

参考

(ここまで)