CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux (https://www.cfd-online.com/Forums/openfoam-installation/99270-source-pack-installation-openfoam-version-2-1-0-redhat-linux.html)

Indrajit March 30, 2012 04:23

Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux
 
Hello,

I am trying to install Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux 5.1.

I am doing this in root. I have pasted here what i did.

------------------------------------------------------------------------------------
[root@localhost OpenFOAM]# ls
OpenFOAM-2.1.0 OpenFOAM-2.1.0.tgz ThirdParty-2.1.0 ThirdParty-2.1.0.tgz
[root@localhost OpenFOAM]# cd OpenFOAM-2.1.0
[root@localhost OpenFOAM-2.1.0]# cd etc
[root@localhost etc]# ls
bashrc cellModels codeTemplates config controlDict cshrc thermoData
[root@localhost etc]# echo $SHELL
/bin/bash
[root@localhost etc]# “source $HOME/.bashrc”
bash: “source: command not found
[root@localhost etc]# source $HOME/.bashrc
[root@localhost etc]# cd ..
[root@localhost OpenFOAM-2.1.0]# ls
Allwmake bin doc README.html src wmake
applications COPYING etc README.org tutorials
[root@localhost OpenFOAM-2.1.0]# cd bin

[root@localhost bin]# sh foamSystemCheck

Checking basic system...
-----------------------------------------------------------------------
Shell: /bin/bash
Host: localhost.localdomain
OS: Linux version 2.6.18-128.el5
User: root


System check: PASS
==================
Continue OpenFOAM installation.

[root@localhost bin]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost bin]# flex --version
flex version 2.5.4
[root@localhost bin]# cd ..
[root@localhost OpenFOAM-2.1.0]# ls
Allwmake bin doc README.html src wmake
applications COPYING etc README.org tutorials
[root@localhost OpenFOAM-2.1.0]# ./Allwmake
./Allwmake: line 4: wmakeCheckPwd: command not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.
[root@localhost OpenFOAM-2.1.0]# pwd
/root/OpenFOAM/OpenFOAM-2.1.0
[root@localhost OpenFOAM-2.1.0]#

------------------------------------------------------------------------------------
When i am trying to run ./Allwake i am getting above error message.

Can you help me where i am making mistake or what else i should do ?
-------------------------------------------------------------------------------------------
some additinal info

[root@localhost OpenFOAM-2.1.0]# pwd
/root/OpenFOAM/OpenFOAM-2.1.0
[root@localhost OpenFOAM-2.1.0]# ls
Allwmake bin doc make.log README.org tutorials
applications COPYING etc README.html src wmake
[root@localhost OpenFOAM-2.1.0]# ./Allwmake
./Allwmake: line 4: wmakeCheckPwd: command not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.
[root@localhost OpenFOAM-2.1.0]# echo $WM_PROJECT_DIR

[root@localhost OpenFOAM-2.1.0]#

-----------------------------------------------------------------------------------
echo is not throwing any message :(

Thank you in Advance,
Indrajit

wyldckat April 1, 2012 04:39

Greetings Indrajit and welcome to the forum!

Since you are using RHEL 5.1.0, here's a quote from a recent thread:
Quote:

Originally Posted by linnemann (Post 351472)
Just install centFOAM

It will not do anything to your system.

It comes with its own GCC version 4.6.x.

There are multiple guides/help on how to compile OF on CentOS 5.x releases.

This thread has guide for OF-1.7 but the procedure is the same for 2.1
http://www.cfd-online.com/Forums/ope...-released.html

Best regards,
Bruno


All times are GMT -4. The time now is 07:10.