|
[Sponsors] |
OpenFoam Installation in Redhat Enterprise linux 5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 28, 2011, 05:44 |
|
#61 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
OK, we solved the problem by adding a line to the run.sge to source our gcc-4.5.1.
|
|
April 28, 2011, 09:08 |
|
#62 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
October 25, 2011, 10:03 |
|
#63 |
Senior Member
|
Hi! I need to build 1.7.x on the RHEL-5. But it seems that now only 2.0.x 1.6.x-dev are left of the centFOAM repository. How could I install 1.7.x?
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at Last edited by makaveli_lcf; October 25, 2011 at 10:55. Reason: Typo |
|
October 25, 2011, 10:14 |
|
#64 |
Senior Member
|
For 1.6-ext installation got following error:
Code:
[smmplogin OpenFOAM$][smmplogin OpenFOAM$]./centFOAM.py --OF16 All packages will be downloaded to this folder and extracted to /SAS/home/alexanderv/centFOAM/ Press enter to continue installing OpenFOAM-1.6-ext to /SAS/home/alexanderv/centFOAM//OpenFOAM/OpenFOAM-1.6-ext Folder exists Already downloaded OpenFOAM-1.6-ext.tar.gz,skipping Unpacking OpenFOAM-1.6-ext.tar.gz, might take a minut or two Replacing foamInstall=/home/44792/centFoam/$WM_PROJECT with foamInstall=/SAS/home/alexanderv/centFOAM//$WM_PROJECT in file/SAS/home/alexanderv/centFOAM//OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc Traceback (most recent call last): File "./centFOAM.py", line 235, in ? main() File "./centFOAM.py", line 230, in main installOpenFOAM(options.path, "1.6-ext", "OF16") File "./centFOAM.py", line 157, in installOpenFOAM replaceInLine(bashFile,"foamInstall=/home/44792/centFoam/$WM_PROJECT","foamInstall="+path+"/$WM_PROJECT") File "./centFOAM.py", line 20, in replaceInLine for line in fileinput.FileInput(file,inplace=1): File "/usr/lib64/python2.4/fileinput.py", line 231, in next line = self.readline() File "/usr/lib64/python2.4/fileinput.py", line 300, in readline os.rename(self._filename, self._backupfilename) OSError: [Errno 2] No such file or directory
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
October 25, 2011, 10:41 |
|
#65 |
Senior Member
|
Found a problem:
OF20 extracts everything to $HOME/centFOAM/OpenFOAM-2.0.x OF16 to $HOME/centFOAM/OpenFOAM/OpenFOAM-1.6-ext
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
October 28, 2011, 11:50 |
|
#66 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Dear Bruno,
I am using CentOS Linux release 6.0 (Final), and trying to install OpenFOAM. I tried to install centFOAM, though it is supposed to be used for 5.x. Anyway, the installation didn't give any error, but when I tried to use icoFoam, it says that the command is not found. I guess the installation failed after all. I wonder if you could give me some suggestions as how I should proceed to install OpenFOAM on my computer. Thank you so much! Best, Hang |
|
October 28, 2011, 15:04 |
|
#67 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Hang,
I haven't tried CentOS 6.0, but by what I just saw in distrowatch, you should have absolutely no problems in installing OpenFOAM 2.0.1 simply by following the instructions provided on the official OpenFOAM website... Well, at least after you manage to install all of the right system packages Anyway, CentOS 6.0 has gcc 4.4.4 ready to be used, without any need for further compiling of another Gcc version. So that's a nice head start that you already have over CentOS 5.x. So, let's try this:
Best regards, Bruno
__________________
|
|
October 28, 2011, 17:35 |
|
#68 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hi Bruno,
Thank you for the quick reply and step-by-step instruction. That is really what I need since I am quite new to both linux and OF. The error given by the make.log is quite short, actually it is ./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. Now I am thinking maybe because I installed it as root, but not under the directory of root. But it seems that it is installed in the directory I want. foamInstall=/home/hangdeng/centFOAM/$WM_PROJECT I attached the bashrc file. If you could take a look. Thank you so much for your help. I really appreciate it. |
|
October 29, 2011, 06:01 |
|
#69 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hang,
OK, let's try changing the following lines:
Best regards, Bruno
__________________
|
|
October 30, 2011, 20:04 |
|
#70 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hello Bruno,
Thank you for the reply. And sorry for the late response. Failed to come to the office as it was snowing quite a bit yesterday. I did as you posted, After running gcc -v It gives gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) Also, I attached the make.log. BTW, I was trying to play with the meshing packages in centFOAM since OF is not working, seems that other than engrid, gmsh and netgen are not working either. I am not sure whether it is caused by similar reasons. Anyway, I think I should let you know, in case such information is some sort of indicator to find out the problem. Thank you! |
|
October 31, 2011, 08:16 |
|
#71 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hang,
Mmmm, you're getting a particular problem to CentFOAM's presets. I advise you to put CentFOAM on the side for now and try things with the original OpenFOAM: http://www.openfoam.com/download/source.php If you want to stick to CentFOAM, then edit the file "Allwmake" that is on the "ThirdParty-2.0.x" folder and comment out the lines that state something like this: Code:
# Infiniband support if [ -d /usr/local/ofed -a -d /usr/local/ofed/lib64 ] then configOpt="$configOpt --with-openib=/usr/local/ofed" configOpt="$configOpt --with-openib-libdir=/usr/local/ofed/lib64" fi Best regards, Bruno
__________________
|
|
October 31, 2011, 15:46 |
|
#72 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hello Bruno,
Thank you! The lines have already been commented out actually. So I tried to compile OF following the link you posted. I got OF work, at least some simple cases. But I couldn't get ParaView compiled. I have already installed very new versions of QT and cmake, still, everytime I run 'makeParaView', it gives: *** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH Do you have any idea why that happens. Thank you! Best, Hang |
|
October 31, 2011, 15:57 |
|
#73 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Sorry Bruno,
I take what I said back. It turned out that OF is not working. Also, it always gives command not found. I have no idea why it works at first, then nothing...It is so frustrating... |
|
October 31, 2011, 16:01 |
|
#74 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hang,
About your second post:
OK, as for your post before that: where exactly did you install Qt and CMake? Were they installed by using the package manager that comes with CentOS? If you installed with the package manager, then try finding out what's the complete name of the installed executable. For example, if you type a part of a name of an application in the terminal command line and then press the Tab key once or twice, it should try to auto-complete the full name or show you what alternatives exist. For example, typing: Code:
qmake Code:
qmake-4.6 qmake-4.7 For qmake, this works; but for cmake, it gets a bit tricky... OK, but when you find out what's the whole name of qmake, run makeParaView similarly to this: Code:
./makeParaView -qmake `which qmake-4.6` Code:
ln -s `cmake-2.8.3` $FOAM_APPBIN/cmake Best regards, Bruno
__________________
|
|
October 31, 2011, 18:12 |
|
#75 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hi Bruno,
1 I remembered that before I ran makeParaView, OF worked, after makeParaView, OF failed. I know it is reckless, I deleted everything and did the compilation from the very beginning again, hoping that I could at least have a working OF. Speak of stupidity....Anyway, I will send you the new make.log as soon as I get it. [hangdeng@cee-5dpjzq1 OpenFOAM]$ echo $WM_PROJECT_DIR /home/hangdeng/OpenFOAM/OpenFOAM-2.0.1 2 qmake I have on the computer is qmake-qt4.6, I guess that means I need to build ParaView with custom qt? echo $WM_THIRD_PARTY_DIR gives back empty... and (I guess that is why) [hangdeng@cee-5dpjzq1 ThirdParty-2.0.1]$ ./makeParaView -qmake 'which qmake-qt4' ./makeParaView: line 36: wmakeCheckPwd: command not found Error: Current directory is not $WM_THIRD_PARTY_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. Also, [hangdeng@cee-5dpjzq1 OpenFOAM]$ ln -s `cmake-2.8.4` $FOAM_APPBIN/cmake bash: cmake-2.8.4: command not found ln: creating symbolic link `./cmake': File exists |
|
October 31, 2011, 20:55 |
|
#76 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hi Bruno,
I just finished compiling OF, and I checked It is working. I attached the make.log anyway. But somehow, last time, after I tried to run the makeParaView (or install qmake & cmake), it failed. So, now I am gonna play on the safe side in terms of compiling paraView. I wonder if the information in the previous post showed any of the problem. Or I should go ahead and try what you posted for compiling paraview with custom QT? Thank you so much for your patient help! Best, Hang |
|
November 1, 2011, 04:23 |
|
#77 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hang,
Well, I don't see any "make.log.tar.gz" attached on your latest 2 posts You might want to read this blog post of mine: Advanced tips for working with the OpenFOAM shell environment - it explains a bit how the OpenFOAM shell environment works, which might help you understand the problem you were having. As for compiling ParaView, it's up to you to choose the best option. I don't have time in the next few days to test installing OpenFOAM on virtual machines with CentOS 6.0, so I won't be able to write a lengthy blog post explaining step by step on how to do so Best regards, Bruno
__________________
|
|
November 1, 2011, 10:11 |
|
#78 |
Member
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15 |
Hi Bruno,
Thank you for your kind help. It has been really a big help. I will keep trying the options available. I really appreciate your help! Best, Hang |
|
November 1, 2011, 16:22 |
|
#79 | |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Quote:
As to the centFOAM and RHEL 6.x I will have versions up sometime. There already are some files you can download manually for 6.x which can be found here. It should be fairly easy to get it running you just have make the right entries in your .bashrc. I've tried experimenting with rpms instead of tar.gz but I think I will go back to the tar.gz approach as I have more freedom to manipulate which stuff goes into the packages so they can be run as standalone packages. Please do not use the centFOAM.py script for 6.x. I will have an automatic detection of which version you are running, sometime in the future, when I have time. The reason I'm not focusing on 6.x yet is that our cluster and machines aren't using 6.x but 5.x. I can although tell you that making OF compile on 6.x is a breeze since GCC is fairly up to date.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
||
Tags |
cluster, gcc, redhat, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
Installation of OpenFOAM14 on Redhat Enterprise 14 | gtg627e | OpenFOAM Installation | 2 | July 23, 2007 11:37 |
OpenFOAM installation problem on Linux 32bit | kumar | OpenFOAM Installation | 0 | April 27, 2007 06:41 |