CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation OpenFOAM-1.6-ext (https://www.cfd-online.com/Forums/openfoam-installation/83607-installation-openfoam-1-6-ext.html)

OFU January 5, 2011 04:18

Installation OpenFOAM-1.6-ext
 
Hello,

I tried to install OpenFOAM-1.6-ext on SuSE SLES 11, but there were some problems with the environment variables e. g. the variable of the location of the third party software. Before I tried to installe OpenFOAM-1.6-ext I installed OpenFoam-1.7.x. After downloading OpenFoam-1.6-ext and adding and sourcing the necessary line in the .bashrc, I run the foamInstallationTest script and got the following output:


Executing bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-z508
OS: Linux version 2.6.27.19-5-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ofu/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ofu/OpenFOAM/ofu-1.7.x no no
$WM_THIRD_PARTY_DIR /home/ofu/OpenFOAM/ThirdParty-1.7.x 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/ofu/OpenFOAM/OpenFOAM-1.6-ext yes yes yes

$FOAM_APPBIN ...ext/applications/bin/linux64GccDPOpt no yes
$FOAM_SITE_APPBIN ...OAM/site/1.6-ext/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.x/applications/bin/linux64GccDPOpt no no
$WM_DIR .../ofu/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 no yes
$FOAM_SITE_LIBBIN ...OAM/site/1.6-ext/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...enFOAM/ofu-1.7.x/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.3.2
Minimum required: 4.3.1

gcc 4.3.2
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/ofu/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.


Some variables have still the path of the OpenFoam-1.7.x installation and some were updated and have now the right path of the OpenFOAM-1.6-ext installation. E.g. the WM_THIRD_PARTY_DIR variable has the wrong value and therefore I can't execute ./Allwmake correctly.
Does anyone know, what I did wrong and how to correct it?

Thanks
Jennifer

karamiag January 5, 2011 07:43

You have to check your .bashrc file: is there the line

. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

After this close the console and open a new one, it should work!

OFU January 5, 2011 07:51

Hello Giovanni,

Yes, the line
. /home/ofu/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

is in the .bashrc file and when I open a new console and run foamInstallationTest I get the output I described.
And its curios that some variables are right and other wrong.
Therefore the problem must be somewhere else, but where?

karamiag January 5, 2011 08:03

Is the line

. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc

commented or absent in your .bashrc file?

OFU January 5, 2011 08:08

These are the entries in the .bashrc file which correspond to OpenFoam. All entries are commented out except the entry for OpenFoam-1.6-ext.



#*********** OpenFOAM ************************************

#*** Version 1.5
#. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc

#*** Version 1.6
#. $HOMEu/OpenFOAM/OpenFOAM-1.6/etc/bashrc

#*** Version 1.6-ext
. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

#*** Version 1.7.x
#. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc

wyldckat January 5, 2011 08:51

Greetings to all!

Jennifer, I suggest that you change the lines you posted from "~/.bashrc", to something like this:
Code:

#*********** OpenFOAM ************************************

#*** Version 1.5
alias of15='. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc'

#*** Version 1.6
alias of16='. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc'

#*** Version 1.6-ext
alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'

#*** Version 1.7.x
alias of17x='. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc'

Then start a new console/terminal. Run this to check if there are any remnants of OpenFOAM environment variables:
Code:

export | grep -i "foam"
If anything is outputted from this command (as long it's not an error message), then there is still some rogue line lying around in "~/.bashrc"!

When all is fixed and working, then whenever you start a new console or terminal, you can choose which OpenFOAM version you want, by running of17x or of16ext and so on. Keep in mind that you can only use each alias command in a new console/terminal, otherwise you will get the crazy environment like the one you are getting right now!

Best regards,
Bruno

claco February 11, 2011 15:57

Quote:

Originally Posted by wyldckat (Post 289357)
Greetings to all!

Jennifer, I suggest that you change the lines you posted from "~/.bashrc", to something like this:
Code:

#*********** OpenFOAM ************************************

#*** Version 1.5
alias of15='. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc'

#*** Version 1.6
alias of16='. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc'

#*** Version 1.6-ext
alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'

#*** Version 1.7.x
alias of17x='. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc'

Then start a new console/terminal. Run this to check if there are any remnants of OpenFOAM environment variables:
Code:

export | grep -i "foam"
If anything is outputted from this command (as long it's not an error message), then there is still some rogue line lying around in "~/.bashrc"!

When all is fixed and working, then whenever you start a new console or terminal, you can choose which OpenFOAM version you want, by running of17x or of16ext and so on. Keep in mind that you can only use each alias command in a new console/terminal, otherwise you will get the crazy environment like the one you are getting right now!

Best regards,
Bruno


Dear Sir,

can You kindly tell me where I can get Openfoam 1.6-ext and the other required files?
Moreover, can You kindly tell me (briefly) How can i successfully install the package on my Ubuntu 10.04 LTS platform?


Thank You in advance.

Claudio Comis

wyldckat February 11, 2011 18:00

Greetings Claudio,

You didn't need to ask this more than in one thread! ;) If you did feel that need, then it's very likely you're not trying hard enough to look for the answer ;)

OK, the easy peasy installation instructions: OpenFOAM-dev-1.5 or OpenFOAM-1.6-ext under Ubuntu Lucid 10.04 LTS

The BIY instructions: http://www.cfd-online.com/Forums/ope...e-1-6-ext.html - only read the first post. ;)

Best regards,
Bruno

claco February 12, 2011 05:39

Quote:

Originally Posted by wyldckat (Post 294905)
Greetings Claudio,

You didn't need to ask this more than in one thread! ;) If you did feel that need, then it's very likely you're not trying hard enough to look for the answer ;)

OK, the easy peasy installation instructions: OpenFOAM-dev-1.5 or OpenFOAM-1.6-ext under Ubuntu Lucid 10.04 LTS

The BIY instructions: http://www.cfd-online.com/Forums/ope...e-1-6-ext.html - only read the first post. ;)

Best regards,
Bruno


Dear Bruno,

I must confess You that I have already try with the instructions given at : OpenFOAM-dev-1.5 or OpenFOAM-1.6-ext under Ubuntu Lucid 10.04 LTS ; however this package does not contain tutorials and other solvers I need.
Moreover, I downloaded the package from SourceForge server. It semmes to be complete. I compiled it but 2 errors occurs at the end of the compilation ( It takes me 2 hours). The messages regard some missing package (lincompressibleRasmodel and so on).


Best,

Claudio

boger February 12, 2011 08:26

What are the tutorials? What are the solvers? What are the error messages?

claco February 14, 2011 13:36

Dear All,


I installed version 1.6 ext, and the enclosed log file is the result of the foamInstallationTest.

Can You kindly help me please?

I followed step-by-step the instructions contained in the README file.

Executing /opt/OpenFOAM/OpenFOAM-1.6-ext/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: claudio-laptop
OS: Linux version 2.6.32-29-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /opt/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-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 /opt/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 /opt/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 ...OAM/root-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 ...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.




Thank You in advance.

Claudio


P.S.: I use the UBUNTU 10.04 LTS version, updated.

wyldckat February 14, 2011 17:50

Hi Claudio,

Quote:

Originally Posted by claco (Post 295225)
gcc 4.4.3
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

This is a bogus warning... which I believe has already been fixed in 1.7.x, but the fix hasn't reached 1.6-ext yet. In other words, this is not a critical error and it will not affect OpenFOAM's build process.

For us to get a better understanding of what went wrong with your build process, please run Allwmake again like this:
Code:

./Allwmake > make.log 2>&1
tar -czf make.log.tar.gz make.log

Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno


All times are GMT -4. The time now is 01:05.