CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFoam 2.0.0 installation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2012, 17:38
Default
  #81
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Claudio,

Mmm... OK, let's take a few steps back. When you were following the instructions, was there anything you modified in the downloaded files? Or more specifically, did you change anything in OpenFOAM's "bashrc" file?

Did you install a version of Open-MPI in your Debian system, or did your system come with one already? Or more specifically, is there any reason why you should use the system's MPI?

You might also want to run the following command to check if a 64bit version of the MPI library exists:
Code:
ls -l /usr/lib64/libmpi*
The quickest solution would be to use the Open-MPI version that comes with OpenFOAM's MPI, but that is up to you.
Building the 32bit version of OpenFOAM is simple, just add to the end of the command line you added in "~/.bashrc" the following value:
Code:
WM_ARCH_OPTION=32
Which makes it look like this:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc WM_ARCH_OPTION=32
The downside of this is that you'll loose some performance, since you wont be taking advantage of the CPU's 64bit capabilities.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 22, 2012, 18:09
Default
  #82
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Ok.
In the OpenFOAM's "bashrc" file I modified just the mpi:

#- MPI implementation:
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI
# | GAMMA | MPI | QSMPI
#export WM_MPLIB=OPENMPI
export WM_MPLIB=SYSTEMOPENMPI


With the code
ls -l /usr/lib64/libmpi*
I obtain nothing (it doesn't exist).


Now I changed the option

#- Architecture:
# WM_ARCH_OPTION = 32 | 64
export WM_ARCH_OPTION=32

directly in the OpenFOAM's "bashrc" file instead of in the command line like you suggested, and I launched the ./Allwmake...
It seems to work (at least, I don't see error messages, like before...); for now I can see just some advise like
warning: use of old-style cast
that I don't know what does it mean!

It is compiling, and I don't know how much time it needs.
Anyway, probably the problem was because I installed a 32bit vers of Linux, even having a 64bit architecture on my CPU....if it at the end will complete correctly the installation!!

I think I'll see some results only tomorrow. I hope I can confirm that everything it's ok!! I'll inform you tomorrow morning!


Best regards,
Claudio
Claudio87 is offline   Reply With Quote

Old   March 23, 2012, 04:16
Default
  #83
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Good morning!
Finally, I think I installed OF!!!

This is the result of foamInstallationTest:


Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: PC-Claudio
OS: Linux version 2.6.32-5-amd64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/claudio87/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/claudio87/OpenFOAM/claudio87-2.1.0 no no
$WM_THIRD_PARTY_DIR .../claudio87/OpenFOAM/ThirdParty-2.1.0 yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/claudio87/OpenFOAM/OpenFOAM-2.1.0 yes yes yes

$FOAM_APPBIN ...AM-2.1.0/platforms/linuxGccDPOpt/bin yes yes yes
$FOAM_SITE_APPBIN ...te/2.1.0/platforms/linuxGccDPOpt/bin no no
$FOAM_USER_APPBIN ...87-2.1.0/platforms/linuxGccDPOpt/bin no no
$WM_DIR ...udio87/OpenFOAM/OpenFOAM-2.1.0/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 ...AM-2.1.0/platforms/linuxGccDPOpt/lib yes yes yes
$FOAM_SITE_LIBBIN ...te/2.1.0/platforms/linuxGccDPOpt/lib no no
$FOAM_USER_LIBBIN ...87-2.1.0/platforms/linuxGccDPOpt/lib no no
$MPI_ARCH_PATH /usr/lib/openmpi yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
flex 2.5.35 /usr/bin/flex
gcc 4.4.5 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.23 /bin/tar
icoFoam 2.1.0 ...OAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.

Done


Everything seems ok!
I attached again the make.log, but I think it works!

Thanks a lot, Bruno!

Best regards,
Claudio
Attached Files
File Type: gz make.log.tar.gz (27.9 KB, 3 views)
Claudio87 is offline   Reply With Quote

Old   March 23, 2012, 09:28
Default
  #84
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Claudio,

Yep, no errors found.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2012, 12:00
Default
  #85
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Hello again!

I'm really sorry, but it seems that I'm not so lucky with the installation of OF....
I had some problems with my pc and I had to reinstall Linux (Debian squeeze dist), and now I must do the same with OF. But I have new kind of problems.

This is the beginning of my make.log file after ./Allwmake (where I think there is the error, because after this starts the ThirdParty Allwmake) :


Code:
gcc -m64  -Wall -O3   -fPIC dirToString.c -o /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/dirToString
In file included from /usr/include/features.h:378,
                 from /usr/include/stdio.h:28,
                 from dirToString.c:43:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
make: *** [/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/dirToString] Error 1

I have no idea about it!


Here there's also the result of fomIstallationTest:

Code:
claudio87@debian:~/OpenFOAM/OpenFOAM-2.1.0/bin$ ./foamInstallationTest
Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               debian
OS:                 Linux version 2.6.32-5-amd64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/claudio87/OpenFOAM                 yes       yes
$WM_PROJECT_USER_DIR /home/claudio87/OpenFOAM/claudio87-2.1.0  no        no
$WM_THIRD_PARTY_DIR  .../claudio87/OpenFOAM/ThirdParty-2.1.0  yes       yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/claudio87/OpenFOAM/OpenFOAM-2.1.0  yes  yes  yes

$FOAM_APPBIN         ...-2.1.0/platforms/linux64GccDPOpt/bin  no        yes
$FOAM_SITE_APPBIN    .../2.1.0/platforms/linux64GccDPOpt/bin  no        no
$FOAM_USER_APPBIN    ...-2.1.0/platforms/linux64GccDPOpt/bin  no        no
$WM_DIR              ...udio87/OpenFOAM/OpenFOAM-2.1.0/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         ...-2.1.0/platforms/linux64GccDPOpt/lib  no        yes
$FOAM_SITE_LIBBIN    .../2.1.0/platforms/linux64GccDPOpt/lib  no        no
$FOAM_USER_LIBBIN    ...-2.1.0/platforms/linux64GccDPOpt/lib  no        no
$MPI_ARCH_PATH       /usr/lib/openmpi                         yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
flex     2.5.35    /usr/bin/flex                                            
gcc      4.4.5     /usr/bin/gcc                                             
gzip     1.3.12    /bin/gzip                                                
tar      1.23      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/icoFoam
          current path             : 
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done


Please, If someone have the time (and the patience) to give a look, I'll be really grateful!!

Best regards,
Claudio
Claudio87 is offline   Reply With Quote

Old   April 21, 2012, 12:56
Default
  #86
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Claudio,

Did you install the packages mentioned for Ubuntu? Namely run this command:
Quote:
Originally Posted by http://www.openfoam.org/download/source.php
Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libxt-dev
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 27, 2012, 06:32
Default
  #87
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Hi,
I'm sorry I didn't give you a feedbeck...
Anyway, now it's everything working, thanks.
I tried to reinstall all those packages (even if I did it yet), I restarted my pc, and then the installation worked correctly! In the end, I don't know which was exactly the problem, but now everything seems ok.

Thank you again!

Best regards,
Claudio
Claudio87 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 16:42.