OpenFOAM 1.6-extのインストールについて

547 views
Skip to first unread message

Sakuma

unread,
Dec 18, 2010, 11:32:37 PM12/18/10
to OpenFOAM
OpenFOAM初学者のsakumaです。
OpenFOAM 1.6-extを新たにインストールしようしていますが上手くいきません。

システムの環境としては,vmware+ubuntu10.04で,クリーンインストールの状態です。
次のような手順でやりました。

(1)git-core,rpmのインストール

(2) git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
でファイル類の取り込み

(3) READMEを見て./bashrcの修正と実行

(4)必要と思われるパッケージのインストール
http://openfoamwiki.net/index.php/Installation 2.3.4.1 Needed Packages
を参照して次を入れました。
bison,flex,python-dev,libqt4-dev,libreadline5-dev,build-essential,
zlib1g-dev,texinfo,byacc
cmake

(5)./Allwmakeを実施。コンパイルにはえらく時間がかかりました。

(6)コンパイルをfoamInstallationTestでチェックするとエラーが出ます。

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: SAKURA-MARU
OS: Linux version 2.6.32-26-generic
-------------------------------------------------------------------------------
Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory
Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/sakuramaru/OpenFOAM
yes yes
$WM_PROJECT_USER_DIR ...kuramaru/OpenFOAM/sakuramaru-1.6-ext
no no
$WM_THIRD_PARTY_DIR ...OpenFOAM/OpenFOAM-1.6-ext/ThirdParty
yes yes
-------------------------------------------------------------------------------
Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid
Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR ...sakuramaru/OpenFOAM/OpenFOAM-1.6-ext yes
yes yes
$FOAM_APPBIN ...ext/applications/bin/linux64GccDPOpt yes
yes yes
$FOAM_SITE_APPBIN ...OAM/site/1.6-ext/bin/linux64GccDPOpt
no no
$FOAM_USER_APPBIN ...ext/applications/bin/linux64GccDPOpt
no no
$WM_DIR ...maru/OpenFOAM/OpenFOAM-1.6-ext/wmake yes
yes yes
-------------------------------------------------------------------------------
Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid
Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.6-ext/lib/linux64GccDPOpt yes
yes yes
$FOAM_SITE_LIBBIN ...OAM/site/1.6-ext/lib/linux64GccDPOpt
no no
$FOAM_USER_LIBBIN ...kuramaru-1.6-ext/lib/linux64GccDPOpt
no no
$MPI_ARCH_PATH --------- env variable not set
--------- yes
-------------------------------------------------------------------------------
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of
OpenFOAM
Supplied version: 4.3.3
User version : 4.4.3
Minimum required: 4.3.1
gcc 4.4.3
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR
gzip 1.3.12 /bin/
gzip
tar 1.22 /bin/
tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/sakuramaru/OpenFOAM/
OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR
-------------------------------------------------------------------------------
Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 2 critical error(s).
Review the output for warning messages and consult
the installation guide for trouble shooting.
done.

cdf-on-line等を色々と見ていますが,どの辺りを修正してよいか良くわかりません。
対応方法はどのようにしたらよいのでしょうか?
よろしくお願いいたします。

E.Mogura

unread,
Dec 19, 2010, 1:41:56 AM12/19/10
to open...@googlegroups.com
E.Mogura です
 
OpenFOAM 1.6-ext で大きく変わったのは、ThirdPartyのインストールです。
 
たとえば、
 
# cmake
( rpm_make cmake-2.8.3     http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz        )

というように、パッケージをダウンロードして、コンパイルというプロセスが追加されています。
 
おそらく、rpm_make がないことが原因と考えられますが、どうでしょう?
 
Ubuntuの場合は、パッケージマネージャで、rpmをインストールする必要があります。
 
 
 
2010年12月19日13:32 Sakuma <sakura....@gmail.com>:

--
このメールは Google グループのグループ「OpenFOAM」の登録者に送られています。
このグループに投稿するには、open...@googlegroups.com にメールを送信してください。
このグループから退会するには、openfoam+u...@googlegroups.com にメールを送信してください。
詳細については、http://groups.google.com/group/openfoam?hl=ja からこのグループにアクセスしてください。


Sakuma

unread,
Dec 19, 2010, 3:56:33 AM12/19/10
to OpenFOAM
E.Moguraさん ありがとうございます。 OpenFOAM初学者のsakumaです。

rpmのインストールですが,一番初めにパッケージマネージャで入れました。

また,コンパイルの途中で/usr/bin/ld: cannot find -libertyが良く出ていましたので,
グーグル等で調べますと,binutils-devが足りないようで,これもパッケージマネージャで
入れ,再度./Allwmakeをしました。

再度foamInstallationTestでチェックすると,先に挙げたワーニングの内,1つのワーニング
が消えました。ただ,g++のバージョン何とかかんとかのワーニングは同じままです。

Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of
OpenFOAM
Supplied version: 4.3.3
User version : 4.4.3
Minimum required: 4.3.1
gcc 4.4.3
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR
gzip 1.3.12 /bin/
gzip
tar 1.22 /bin/
tar
icoFoam 1.6-ext ...nFOAM-1.6-ext/applications/bin/linux64GccDPOpt/
icoFoam
-------------------------------------------------------------------------------
Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).
Review the output for warning messages and consult
the installation guide for trouble shooting.
done.

ただ,icoFoamは動き,MRFSimpleFoamのソルバの作成も出来,チュートリアルにある
mixerVessel2Dは動きました。g++のワーニングは特に問題ないと言う事でしょうか。


また,paraFoamと打つと,
created temporary 'test.OpenFOAM'
/home/sakuramaru/OpenFOAM/OpenFOAM-1.6-ext/bin/paraFoam: 132:
paraview: not found
sakuramaru@SAKURA-MARU:~/Desktop/test$ paraview
プログラム 'paraview' はまだインストールされていません。
次のように入力することでインストールできます:
sudo apt-get install paraview
と言ってきます。

ただ,この方法で入れるとparaviewのバージョンは3.4.0とかなり古いバージョンが入ります。
3.8.1を入れるにはどのようにすれば良いのでしょうか?

E.Mogura

unread,
Dec 19, 2010, 5:00:48 AM12/19/10
to open...@googlegroups.com
E.Mogura です
 
拙宅のブログ
 
 
 
でも記してありますが、デフォルトのAllmakeのままだと、
ThirdParty の Allwmake.stage4 の段階で$QT_DIR が存在
すればparaView-3.8.1 をコンパイルするという設定になっています。
 
これを環境変数に組み込んでおけばいけると思うのですが、
~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
以下で組み込まれるのはThirdParty以下に組み込まれたQt
を探しに行ってしまいます。
ここを自分のシステムのQtを探しに行くように書き換えてやれば
いいと思うのですが、その方法がわからなかったので、自分の場合は、
ThirPartyのQtもコンパイルして、ようやく成功しました。
 
# qt-everywhere-opensource-src-4.7.0
( rpm_make qt-everywhere-opensource-src-4.7.0 http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.0.tar.gz )

⇒ どえりゃー時間がかかったのと、ファイルスペースも大量に消費してくれました(-_-;)
 
 
 
 


 
2010年12月19日17:56 Sakuma <sakura....@gmail.com>:
E.Moguraさん ありがとうございます。 OpenFOAM初学者のsakumaです。

rpmインストールですが,一番初めにパッケージマネージャで入れました。

--

ohbuchi

unread,
Dec 19, 2010, 3:32:21 PM12/19/10
to OpenFOAM
おはようございます。
私はOpenFOAM-1.7.xのThirdPartyに含まれるParaviewにパスを通して利用しています。
特に問題なく利用できています。
Reply all
Reply to author
Forward
0 new messages