|
[Sponsors] |
Installing 2.1.x (Repository Release) on RHEL 6.2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2012, 12:09 |
Installing 2.1.x (Repository Release) on RHEL 6.2
|
#1 |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
Hello,
I am installing OpenFOAM-2.1.x (Repository Release) in the following directory: /opt/OpenFOAM Following insructions per the OpenFOAM website: http://www.openfoam.org/download/git.php First, I make sure that I obtain the repository: Code:
yum install git git clone git://github.com/OpenFOAM/OpenFOAM-2.1.x.git https://sourceforge.net/projects/foam/files/foam/2.1.0/ Code:
cd /opt/OpenFOAM tar xzf ThirdParty-2.1.0.tgz mv ThirdParty-2.1.0 ThirdParty-2.1.x Code:
sudo yum groupinstall 'Development Tools' sudo yum install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel Code:
export FOAM_INST_DIR=/data/app/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.x/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile Code:
cd $WM_PROJECT_DIR/bin ./foamSystemCheck Set the number of processors for wmakeScheduler: Code:
export WM_NCOMPPROCS=10 Run ./Allwmake Code:
cd .. sudo ./Allwmake Code:
su ./Allwmake 1> make.log 2> error.log I truncated the log but included the last few lines that pertain to the exit status. Please let me know if I can clean up this error.log in a way that is easier for someone to debug. (I'd like to be able to help those that are able/willing to help me in whatever way I can.) Unfortunately, this is only as far as I have been able to get. (You may see how far through the process I am by referring to the aforementioned link to OpenFOAM's instructional website) I am skeptical of the following: 1. whether I have suitable environment variables; 2. whether I have all requisite packages to build on RHEL 6.2 Thank you very much for any help or insight that you are able to offer. Best, Shaun |
|
May 16, 2012, 17:17 |
|
#2 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Shaun,
Quote:
But OK, moving onward, assuming you're an experienced Linux user. Quote:
Code:
export FOAM_INST_DIR=/opt/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.x/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile WM_MPLIB=SYSTEMOPENMPI Code:
module load openmpi-x86_64 By the way: yes, the Fedora package list you used should be a good reference for RHEL as well. The errors shown in the attached file indicate that Open-MPI was nowhere to be seen, possibly due to the missing previous module load command. As for logging and reporting the errors, I usually suggest the following instructions:
Last but not least: when using RHEL or CentOS or SL, I usually suggest CentFOAM: http://sourceforge.net/apps/mediawik...itle=Main_Page Best regards, Bruno
__________________
|
|||
May 16, 2012, 20:14 |
|
#3 |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
Hey Bruno, great post!
1. CentFOAM was my fallback option. But I am determined to learn more about Linux. Therefore I am purposefully putting myself through this - no pain, no gain. 2a. I would actually prefer that each user have their own compilation of OpenFOAM so that when it comes time to modify the source, other users will not be affected by the changes made. (Does it matter that the system only allots ~3GB per user for their home directory?) 2b. Is there a way to reach the configuration mentioned above by this method? (My goal isn't to just get the software installed as much as it is to learn how Linux ticks.) 3a. I did NOT know that about Open-MPI. So I have installed the system version as opposed to the individual user version? Would one be required to load both in the same way? I'm terribly intrigued about environments, libraries, etc. -- Any resources you can offer would be quickly and thoroughly torn into. (Grade-A n00b here!) 3b. Can you please explain what this line is commanding? Code:
[ -f foamDotFile ] && . foamDotFile WM_MPLIB=SYSTEMOPENMPI 4. By the way, what tipped you off that OpenMPI was not loaded? 5. All of my tars had been compressing to a minimum of 150 KB (regardless of uncompressed size)... and I believe the maximum attachable file size is 97.7 KB. Any hints? I will attempt again, as you have suggested. Also, I just wanted to say how great it is to communicate with people who know their way around Linux. I am super eager to learn. Thanks again, Shaun |
|
May 16, 2012, 20:15 |
|
#4 |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
double-posted
|
|
May 17, 2012, 10:35 |
|
#5 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Shaun,
Quote:
Usually the principle for a system wide installation is simple:
Quote:
Quote:
Quote:
Best regards, Bruno
__________________
|
|||||
May 17, 2012, 12:02 |
|
#6 | |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
Quote:
What you have stated above sounds like the procedure for installing OpenFOAM as a local user utilizing fewer root privileges using the $HOME directory path, followed by the creation of a "back up" or "reference" installation to be controlled (and distributed to others) by the system admin. After the initial installation in the user's home directory, the root must COPY, (leaving the original in its place), the installation to the /opt/OpenFOAM directory and modify the bashrc file as well privileges. At this point, it seems that there will be two installations on the system. (1) in the local user's directory, and (2) in the system's /opt/OpenFOAM directory. Would one then be able to take the installation located in /opt/OpenFOAM and copy it to other users' directories? Following that logic, would the installation located in /opt/OpenFOAM then act as a "back-up" installation while the others are in full user control? If this is right, then "Hurray!" - that's what I'm looking for. If not, thank you for your patience and let me know if I need to just RTFM Thanks, Shaun |
||
May 17, 2012, 12:25 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Shaun,
Quote:
The OpenFOAM user guide at least gives the idea that one should not modify the core code of OpenFOAM. Each user should always work on a copy of the tutorials, as well as building custom applications for themselves only. Example: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam I had assumed from the "/opt/OpenFOAM" reference that you were already familiar with the deb/rpm installations of OpenFOAM that exist for Ubuntu, Fedora and openSUSE. As for installing other software to be shared with all users, it depends on the type of installation: if it's just a matter of installing, then you can do it directly as root. If you need to build code, do it in a safe place one or twice, to see what it really does... I know I wrote a longer description about this the other day... here we go: http://www.cfd-online.com/Forums/ope...tml#post360406 post #9 Best regards, Bruno
__________________
|
||
May 17, 2012, 13:04 |
|
#8 | |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
[QUOTE=wyldckat;361505]
Code:
module load openmpi-x86_64 export FOAM_INST_DIR=/opt/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.x/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile WM_MPLIB=SYSTEMOPENMPI Quote:
But I definitely have tried "sudo yum install openmpi", etc., on multiple occassions. Any thoughts? |
||
May 17, 2012, 19:26 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Shaun,
This weekend perhaps I can checkout how this works, but for now I'd suggest that you check the manual for "module load": Code:
man module Best regards, Bruno
__________________
|
|
May 19, 2012, 12:38 |
|
#10 |
New Member
Shaun
Join Date: May 2012
Posts: 14
Rep Power: 14 |
Ok, I will be sure to check this out.
While troubleshooting the missing soft links I discovered other issues with my system. Seeing as there is no ubiquitously common knowledge that would help deduce what is causing the errors that I am experiencing, I want to thank everyone who has contributed thus far and take some time for personal study (and a possible system restore ). You guys are great. Thank you for your selfless service to others in the CFD and FOSS communities. I hope to one day do the same. Best, Shaun |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 13:30 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
heat release in Fluent 6.2 | Steve | FLUENT | 0 | November 6, 2006 05:43 |