OpenFOAMのインストールその2
その2です。
はじめに、derjamesさん本当にありがとうございます。
http://www.ubuntuforums.org/archive/index.php/t-156298.html
では、いきます。
11 * now look for foamSystemCheck
which is located at
~/OpenFOAM/OpenFOAM-1.3/bin
→コンソール(シェル)にて、上記のディレクトリに移動
コマンド [$ cd /home/akio/OpenFOAM/OpenFOAM-1.3/bin]
this is a shell script that we have to execute, however we need to change it to an executable format
type
chmod -v 555 foamSystemCheck
press enter,
→コマンド [$ chmod -v 555 foamSystemCheck]をEnter keyで実行
then type
export PATH=$PATH:~/OpenFOAM/OpenFOAM-1.3/bin/
press enter,
→コマンド [$ export PATH=$PATH:home/akio/OpenFOAM/OpenFOAM-1.3/bin/
]をEnter keyで実行
then type
foamSystemCheck
press enter
→コマンド [$ foamSystemCheck]をEnter Keyにて実行
At this time, the shell script will call some functions to check if your system comply with the minimum requirements for the installation, Host, username, Linux version, and Network conectivity, however at the end of the process some error occur, just ignore any warning or fatal error about ssh or rsh, this is not needed for the stand alone installation (It doesn't matter what it tells you, just ignore it!!!)
type
chmod -v 755 foamSystemCheck
press enter
→お教えの通り問題が出ているらしいメッセージが表示されましたが、お教えの通り無視しました。そして、
コマンド [$ chmod -v 755 foamSystemCheck]を実行
12 * * * * * *
Now you have to set the environment variables for a correct file access
The environment variable settings are stored in
~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3
→ コマンド [S cd /home/akio/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3]
since I am using the default options in UBUNTU, my shell is BASH and my text editor is gedit, you can use VIM as well
→ 私がインストールできたTurbolinuxには、geditというeditorは見付からず、keditが存在したので、keditを使うことに。
type
echo $SHELL
(if you are not sure which shell you are using)
→ コマンド [$ echo $SHELL]
now type
gedit ~/.bashrc &
→ コマンド [$ kedit ~/.bashrc &]
once in gedit type
. ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
N.B. it is dot, space~/.......
select file>save
and then file>quit
→開かれたkedit内(私はわけもわからず一番最後の行)に
. /home/akio/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
をたたき、保存してシェルのWindowに移りました。
now update the environment typing
. ~/.bashrc
N.B. it is dot space ~/.......
→ コマンド [$ . /home/akio/.bashrc]
the environment variables are updated, you can see this if you type
echo $PATH
→ コマンド [$ echo $PATH]
We are almost done!!,
私もDoneでございます!!
13 **** Now test the installation
look for foamInstallationTest
it is located at
~/OpenFOAM/OpenFOAM-1.3/bin
in the same way this file is a shell script
type
chmod -v 555 foamInstallationTest
press enter
→ コマンド [$ cd ~/OpenFOAM/OpenFOAM-1.3/bin]
続いて、
コマンド [$ chmod -v 555 foamInstallationTest]
in this case you don't need to export the path, since you have already done it...
now type
foamInstallationTest
press enter
→コマンド [$ foamInstallationTest]
here the shell scrip verifies every directory and assigns to each of them an environment variable (PATH), also this takes a bit of time. However you will see an error at the end of the process, something like this:
test_rsh unsuccessful_conection_refused*
test_ssh unsuccessful_conection_refused*
FATAL: No remote shell available (blah, blah, blah, blah, etc....)
→確かに上記のメッセージを確認しました!
It is very simple: who cares, just ignore it.....
And it's done!!!!!!!
→ おおおおお!感動!
Now open
~/OpenFOAM/OpenFOAM-1.3/doc/Guides-a4
→ X windowにて
/home/akio/OpenFOAM/OpenFOAM-1.3/doc/Guides-a4
にアクセス
you will find there some PDFs with tutorials and very useful examples....
Well that's all, I hope this helps, please have fun and be safe
やりました!PDFのデータも発見!
これって、インストストールできたってことでしょうか?
さて、これからが大変です。
挑戦!!!
derjamesさん、感謝感謝です!