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

Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2012, 04:23
Default Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux
  #1
New Member
 
Indrajit
Join Date: Mar 2012
Location: bangalore
Posts: 6
Rep Power: 14
Indrajit is on a distinguished road
Send a message via Skype™ to Indrajit
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

Last edited by Indrajit; March 30, 2012 at 04:58. Reason: adding additional
Indrajit is offline   Reply With Quote

Old   April 1, 2012, 04:39
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
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 View Post
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
__________________
wyldckat 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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 05:32
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18
uninstalling Ubuntu pack and installing source pack vetnav OpenFOAM Installation 2 July 13, 2010 19:11


All times are GMT -4. The time now is 15:37.