CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam 2.0.0 installation (https://www.cfd-online.com/Forums/openfoam-installation/89657-openfoam-2-0-0-installation.html)

wyldckat March 22, 2012 16:38

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

Claudio87 March 22, 2012 17:09

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 March 23, 2012 03:16

1 Attachment(s)
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

wyldckat March 23, 2012 08:28

Hi Claudio,

Yep, no errors found.

Best regards,
Bruno

Claudio87 April 21, 2012 11:00

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

wyldckat April 21, 2012 11:56

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

Claudio87 April 27, 2012 05:32

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


All times are GMT -4. The time now is 12:18.