|
[Sponsors] |
OpenFoam Installation in Redhat Enterprise linux 5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 7, 2010, 10:09 |
|
#21 |
New Member
Mark Suhovecky
Join Date: Oct 2010
Location: Mishawaka, IN
Posts: 9
Rep Power: 16 |
Bruno-
Thanks for the reply. I would dearlly love to install the binary, but am not permitted. Since we support many versions of many different software packages, and most users only use a few, everything is built & installed under /opt, and the modules package is used to configure each package's environment settings. Having read couple of your installation threads, let me ask you a couple of questions: 1) I'm not proficient with wmake- since there aren't Makefiles as I understand them, where are the compilation/ linking flags set? Can OpenFOAM be configured to build using only static libraries? 2) There was a thread where you talked about changing "settings" so that OpenFOAM used the 3rd party compiler instead of the system's I'm wondering if I might use that to my advantage, as my compiler is installed in a non-standard place. Thanks, Mark |
|
October 7, 2010, 19:38 |
|
#22 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Mark,
Quote:
Quote:
The default rule folder is linux64Gcc and inside it you will find various files for configuring parts related to each binary used (gcc, g++, flex, bison, etc...). In the rules folder you also have the General folder, which has the default definitions and will also gather the partial information from the defined target rule folder. Now, all of these above relate to each other: Makefile<-General<-linux64Gcc The rule folder is deduced by concatenating "$WM_ARCH$WM_COMPILER", which in turn is defined in "$WM_PROJECT_DIR/etc/bashrc". Now, if you are wondering "this is all nice, but where do I define where the folder of my shiny new gcc 4.4.4?" - Well, it's defined in the file "$WM_PROJECT_DIR/etc/settings.sh" There you can choose whether to use the system's gcc or your own custom version, as well as where it should be. If you study that file, you'll figure out that OpenFOAM already has in mind a place where to keep custom gcc's, namely: "$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version" So, this also answers your number 2 question It's all intertwined A little side note: If you feel this is too much hassle, you can try FreeFOAM, which is OpenFOAM based in CMake instead of wmake. And if you want the FreeFOAM version that is closest to the official 1.7.x version, you'll have to go to the git branch "pu", if I'm not mistaken. Not without some tweaking I've talked about this before here, and if you search for Cray XT here in the forum, I believe those users also need a static build of OpenFOAM and that there is already a guide somewhere... Wait... now that I think of it, probably it's pretty simple - in the rule file linux64Gcc/c++, there is this line: Code:
LINKLIBSO = $(CC) $(c++FLAGS) -shared Ah, I almost forgot: in each source code folder for each OpenFOAM library and application, there is a folder named Make, that has two files: files and options. These two define the final/dedicated settings for each one of those libraries and applications. So on each one you might want to do some final adjustments... although it might be easier to fix upstream in the main Makefile or in the rules... OK... after all of this writing, I think that all that is left is testing, tweaking and running Best regards and good luck! Bruno
__________________
|
|||
October 11, 2010, 10:35 |
|
#23 |
New Member
Mark Suhovecky
Join Date: Oct 2010
Location: Mishawaka, IN
Posts: 9
Rep Power: 16 |
Bruno-
Thank you for the most thorough crash course on the OpenFOAM wmake/configuration hierachy. I found it tremendously helpful. I changed (in settings.csh) the gccDir, gmpDir, mpfrDir, and mpcDir to point to our versions, and changed the compiler option from system to OpenFOAM, and I was able to build OpenFOAM 1.7.1 from source. The OpenFOAM executables resolve their shared library dependecies, and I can run blockMesh & icoFoam. WooHoo! Now On to the next problem- Paraview. We already have Paraview 3.8.0 built in our environment in- you guessed it- /opt. And source builds of cmake and QT as well, since Paraview needs them. I need to build the OpenFOAM (ParaFoam) Paraview linkage software using our stuff. I see a thread about this- I guess I'll start there. Thanks again for your help, Mark |
|
October 11, 2010, 10:43 |
|
#24 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Mark,
You're welcome Probably there is already somewhere written how it works, but it felt faster to simply write things down instead of searching As for ParaView, since you already have 3.8.0 built: Quote:
Bruno
__________________
|
||
October 11, 2010, 11:03 |
|
#25 |
New Member
Mark Suhovecky
Join Date: Oct 2010
Location: Mishawaka, IN
Posts: 9
Rep Power: 16 |
Thanks Bruno-
So, what, if anything, do I need to build in the Third Party directory in I've got a working Paraview installation already? Thanks, Mark |
|
October 11, 2010, 11:27 |
|
#26 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Mark,
By what I understood of your other post and I quote: Quote:
I forgot to mention that in the quoted link in my previous post, there are more instructions on how to use an already built ParaView 3.8.0. Eitherway, you can try to use the pre-built version from www.paraview.org or build a local version. But if you build a local version, easily will you build OpenFOAM's original plugin for ParaView (the one that opens ".OpenFOAM" files). It's just that the internal version already comes ready to use... and has some advantages over the original version. Best regards, Bruno
__________________
|
||
October 22, 2010, 12:02 |
OF 1.7.1 on Cluster Redhat v2.6.18-128.1.6.el5
|
#27 |
Member
Claus Schmitzer
Join Date: Mar 2010
Posts: 30
Rep Power: 16 |
Hi everybody,
I am also trying to install Of on a cluster, no root rights. I would like to install 1.7.1 becuase I've already modified some cody on my local machine for it. I've followed the instruction on OpenFoam.com. The standard compiler on the cluster is gcc - version 4.1.3 but gcc44 (4.4.0) is also available. So I've added Code:
alias gcc="/usr/bin/gcc44" alias cc="/usr/bin/gcc44" foamSystemCheck is OK. .Allwmake runs for 1 hour returning errors : Code:
/hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/dictionaryTemplates.C: In member function ‘T Foam::dictionary::lookupOrDefault(const Foam::word&, const T&, bool, bool) const [with T = Foam::Switch]’: /hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:9: instantiated from here /hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/dictionaryTemplates.C:44: error: call of overloaded ‘Switch(Foam::pTraits<Foam::Switch>)’ is ambiguous /hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int) /hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool) /hpc_home/cschmitz/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&) make[2]: *** [Make/linux64GccDPOpt/dieselFoam.o] Error 1 Code:
CRITICAL ERROR: gcc version lower than required Supplied version: 4.1.2 Minimum required: 4.3.1 gcc 4.1.2 /usr/bin/gcc gzip 1.3.5 /bin/gzip tar 1.15.1 /bin/tar gcc --version its 4.4 ??? does anyone have an idea ? Thanks, Archy |
|
October 22, 2010, 12:08 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Claus,
Don't use alias. See this explanation: OpenFOAM install on RHEL 5.5 post #2 Best regards, Bruno
__________________
|
|
October 27, 2010, 13:06 |
|
#29 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hello Bruno,
I've a similar problem as Andreas and have been following your suggestions. I've tried unseccessfully with ./build-gcc44 command. Can you please help me on how I can proceed further.... It terminated with the following message Configuring binutils Building binutils Installing binutils Configuring gcc Building gcc make of gcc failed - log available: /work/OpenFOAM/buildLogs/gcc-Gcc_make.log Please have a glance on to the attachment and help me. Thanks, Johny Quote:
|
||
October 27, 2010, 13:25 |
|
#30 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Johny,
I wouldn't mind looking at the attachment, but there isn't one Try attaching a compressed version: Code:
tar -czf gcc_make_log.tar.gz /work/OpenFOAM/buildLogs/gcc-Gcc_make.log Bruno
__________________
|
|
October 27, 2010, 15:24 |
|
#31 |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Thanks Bruno for your instant reply....Sorry...I didn't notice that....Here I'm attaching once again...
|
|
October 27, 2010, 17:30 |
|
#32 |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
||
October 27, 2010, 19:05 |
|
#33 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Johny,
Quote:
OK, your system is missing "fenv.h" which apparently should be part of "libc6.so"... which you probably don't have due to having an old system. But still, you can try installing the development files for libc (check in your package installer in RedHat, whose name I don't know ). You can also try finding it in your system: Code:
find / -name "fenv.h" You can try the following change in the build-gcc44 script, but I haven't tested yet it's effect (if any):
Best regards, Bruno
__________________
|
||
October 28, 2010, 05:24 |
|
#34 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Thanks Bruno,
I'd already looked for this fenv.h file but it seemed to be from a different library....I just copy it....I just copied one of these files to directory where it was searching for it and of no use But I looked for the library libc6.so which I couldn't find....Do you think installing this library could help---If so please let me know where I can get those from Anyway I'll make the changes you suggested in the script and let you know the repercussions... /auto/opt/vwgfoam/ThirdParty/gcc-4.3.1/platforms/linux64/include/c++/4.3.1/tr1/fenv.h /auto/opt/vwgfoam/ThirdParty/gcc-4.3.1/platforms/linux64/include/c++/4.3.1/fenv.h /auto/opt/vwgfoam/ThirdParty/gcc-4.3.1/libstdc++-v3/include/tr1/fenv.h /auto/opt/vwgfoam/ThirdParty/gcc-4.3.1/libstdc++-v3/include/c_compatibility/fenv.h /home/johny/Desktop/gcc-4.5.0/libstdc++-v3/include/tr1/fenv.h /home/johny/Desktop/gcc-4.5.0/libstdc++-v3/include/c_compatibility/fenv.h /work/OpenFOAM/ThirdParty-1.7.1/download/gcc-4.4.4/libstdc++-v3/include/tr1/fenv.h /work/OpenFOAM/ThirdParty-1.7.1/download/gcc-4.4.4/libstdc++-v3/include/c_compatibility/fenv.h /work/OpenFOAM/ThirdParty-1.7.1/gcc-4.4.4/libstdc++-v3/include/tr1/fenv.h /work/OpenFOAM/ThirdParty-1.7.1/gcc-4.4.4/libstdc++-v3/include/c_compatibility/fenv.h Quote:
|
||
October 28, 2010, 07:48 |
|
#35 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi Bruno....
Altering your script didn't help either... Quote:
|
||
October 28, 2010, 10:25 |
|
#36 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Jonhy,
Well, I did say: Quote:
If you still have access to the RedHat service (or if your system's administrator still has access), you should be entitled to at least ask them for support about this issue. And my guess is that you better act quickly, because of this: Red Hat Enterprise Linux 3 & CentOS 3 end-of-life announced From my part, the only I could try to do is to install CentOS 3.9 in a Virtual Machine, try to use my build scripts there and try to solve it. But I don't know when I could get around to try that And other than that, there is little left I can do. The best solution for you, if possible, would be to upgrade your system up to RHEL or CentOS 5.x or 6.x. Best regards, Bruno
__________________
|
||
October 28, 2010, 11:06 |
|
#37 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Thanks Bruno for the support....I think I got to ask the administrator for an urgent update !!!
Quote:
|
||
October 29, 2010, 10:49 |
OpenFOAM1.7.x installation on RHEL 4.0 cluster
|
#38 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Hello,
I understand from the forum and from others that installing OF1.7.x is not a trivial task in RHEL 4.0. However its not impossible. So I need some of your suggestion to get it done. gcc in the system is quite old version i.e. gcc 3.4.6. It need to be updated, but when I run the foamSystemCheck it says system pass and asked me to do OF installation. I hope its not working . Anyhow the recent version of gcc4.4. cannot be compiled in RHEL ?? If so is it possible to get a compiled gcc4.4. and its dependencies from some where and shall use it for compiling the sources. Thanks in advance |
|
October 30, 2010, 08:53 |
|
#39 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Venkatraman,
Like I told Jonhy, the only way for me to build gcc 4.4.x in an old RHEL like system, would be for me to install CentOS 3.9, or in your case, CentOS 4. You can try using the ThirdParty package from CentFOAM, that already comes with gcc 4.4.4 pre-built, but it's only for x86_64 and it's not guaranteed that it will work in older RHEL, since that version was built for RHEL series 5. Last week I posted about my findings on attempts for building gcc 4.4.4 with the latest glibc: Trying to include glibc in my build-gcc scripts... It describes that I wasn't successful, but it felt that I was pretty close to being successful. But in the near future, I won't be able to investigate it any further So, if you have time to continue my investigation, feel free to do so By the way, a final note: I know that the latest git FreeFOAM (a variant/fork based on OpenFOAM that builds with CMake instead of wmake) is able to build with gcc 4.1.2. So, if you guys can at least build a version of gcc >= 4.1.2, then you can try FreeFOAM. Best regards and good luck! Bruno
__________________
|
|
October 30, 2010, 09:50 |
|
#40 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Dear Bruno,
Thanks for your replies. There are no plans to update the RHEL version in near future . So I need to live with this system for the time being . Some told me that there is a possibility to copy the compiled gcc, gmp and mpfr ? and paste it on ThirdPaty-1.7.x/platforms/LinuxGcc location to solve this issue. If you are aware about such thing, could you shed some light upon it? Thanks |
|
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 |