|
[Sponsors] |
OpenFoam Installation in Redhat Enterprise linux 5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2010, 10:15 |
|
#41 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Venkatraman,
Quote:
Quote:
Now, this may or may not work, since there could be incompatibilities between the recent gcc builds and the old glibc version in RHEL 3/4. And keep in mind that the gcc-4.4.4 version from CentFOAM is x86_64 only, so if your RHEL is x86, you will have to try gcc 4.3.3 from OpenFOAM 1.6. Run this if you don't know which one you have: Code:
uname -m Bruno
__________________
|
|||
November 2, 2010, 13:49 |
|
#42 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Thanks for your hints....I will try and let you know.
|
|
November 8, 2010, 11:56 |
|
#43 |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi Bruno, I'm back after my short holidays...I got my linux updated Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux Client release 5.4 (Tikanga) and somehow managed to upgrade my compiler to gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/opt/gcc --program-suffix=444-real --with-ppl --with-cloog --with-mpfr=/opt/gcc --with-gmp --enable-languages=c,c++,fortran --enable-shared --enable-multiarch --enable-linker-build-id --enable-threads=posix --enable-checking --with-system-zlib --with-pkgversion=tygier Thread model: posix gcc version 4.4.4 (tygier) Now when I the ./Allwmake in the OpenFOAM-1.7.1 directory I'm getting a lot of messages like(just one of them pasted below) SOURCE=topoChangerFvMesh/topoChangerFvMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/dynamicFvMesh/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/dynamicMesh/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/topoChangerFvMesh.o /bin/sh: g++: command not found and eventually terminates with errors... I guess this means that it cannot find the g++ compiler... When I pick one of the above messages and replace g++ with g++444 which is my new compiler it runs.... Do you have any idea where can I alternate something so that this g++ is replaced by g++444....I hope to get it solved by that.... Looking forward to your reply. Thanks
|
|
November 8, 2010, 12:01 |
|
#44 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi Bruno, I'm back after my short holidays...I got my linux updated Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux Client release 5.4 (Tikanga) and somehow managed to upgrade my compiler to gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/opt/gcc --program-suffix=444-real --with-ppl --with-cloog --with-mpfr=/opt/gcc --with-gmp --enable-languages=c,c++,fortran --enable-shared --enable-multiarch --enable-linker-build-id --enable-threads=posix --enable-checking --with-system-zlib --with-pkgversion=tygier Thread model: posix gcc version 4.4.4 (tygier) Now when I do ./Allwmake in the OpenFOAM-1.7.1 directory I'm getting a lot of messages like(just one of them pasted below) SOURCE=topoChangerFvMesh/topoChangerFvMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/dynamicFvMesh/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/dynamicMesh/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/joseph/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/topoChangerFvMesh.o /bin/sh: g++: command not found and eventually terminates with errors... I guess this means that it cannot find the g++ compiler... When I pick one of the above messages and replace g++ with g++444 which is my new compiler it runs.... Do you have any idea where can I alternate something so that this g++ is replaced by g++444....I hope to get it solved by that.... Looking forward to your reply. Thanks
Quote:
|
||
November 8, 2010, 12:09 |
|
#45 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Jonhy,
Wow, your posts got somehow super condensed Suggestion: use Advanced mode for editing your posts! And that update to gcc 4.4.4, you should share how you got it done As for your problem with g++444, see this explanation: OpenFOAM install on RHEL 5.5 post #2 Best regards, Bruno
__________________
|
|
November 8, 2010, 12:12 |
|
#46 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Just noticed that the command "which gcc" gives /usr/bin/gcc (where gcc lies) against /opt/gcc/bin/ where g++444 lies......
Quote:
|
||
November 9, 2010, 06:36 |
OpenFOAM1.7.x installation on RHEL 4.0 cluster
|
#47 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Hello Bruno,
I followed your guidelines as u mentioned in last reply. I will explain you in detail so that if I miss anything you may able to guide me better. 1. I downloaded the OpenFoam1.7.x and extracted and renamed in home/OpenFoam/OpenFOAM-1.7.x 2. Then the Thirdparty1.7.0 was also downloaded and renamed as Thirdparty-1.7.x 3. As you said , the compiler of the system was changed in to OPENFOAM in the sttings.csh and the versions are changed into 4.4.4 for gcc. 4. Since i use X86_64 arcitecture in the OpenFoam cshrc file I changed the commands in gcc and g++ to gcc44 and g++44 5. I sourced the openFoam cshrc file 6. In the downloaded CENTFOAM third party i found a directory platforms/linux64/gcc4.4.4 . But this platforms directory was not there in the Thirdparty1.7.x stuff that i downloaded from the git repository. So i copied the directory 'platforms' completely and pasted it in the ThirdParty 1.7.x. 7. gcc -version gives GCC-4.4.4 and it is pointing the right location. 8. Then I executed ./Allwmake > log.allwmake But there are many errors displayed in the terminal window. However they are not shown in log files. I hereby attach the log output file for your reference. If you can have a look at it it will be useful to me. Thanks and Regards |
|
November 9, 2010, 19:32 |
|
#48 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Venkatraman,
Please run again but like this: Code:
./Allwmake > log.allwmake 2>&1 All I can figure out is that something very weird is happening, due to binaries being built as "OpenFOAM.out" So, my guess is that it's either flex or binutils that is missing... Best regards, Bruno
__________________
|
|
November 10, 2010, 06:19 |
|
#49 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Dear Bruno,
I hereby attached the Log files with error messages. I checked Flex version it says flex 2.5.4 and Bison 1.875c . If you can tell me what are the packages that are missing for RHEL 4.0 X86_64 , to install OF 1.7.x then it will be useful. I had an Appt with LINUX admin tomorrow, If you cna tell me either by today or tomorrow it wil be useful. Thanks and Regards |
|
November 10, 2010, 08:11 |
|
#50 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Venkatraman,
Bad news, the gcc version you've got doesn't work Try following this tutorial and you will see what I mean: Compiling a simple C++ program You better ask your system's administrator to build you an updated gcc, either 4.4.4/4.4.5 or 4.5.1, including the latest binutils. Apparently the version built the CentOS 5.x is too much in the future for possible compatibility with RHEL/CentOS 4.x. If your system's administrator can't build an up-to-date gcc+binutils, try installing CentOS 4.x in a virtual machine, build gcc+binutils (and maybe OpenFOAM as well) and then copy the resulting build to your RHEL 4 machine. Another way to check if gcc is working is to run this: Code:
cd $WM_DIR/src make Best regards and good luck! Bruno
__________________
|
|
November 12, 2010, 10:02 |
|
#51 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Dear Bruno,
You are right ! The gcc4.4.4 provided by CentFOAM is not compatible to build OpenFOAM1.7.x on RHEL 4.0 . This was not possible with my experience. Now Iam building OpenFOAM on CENTOS-5.5 on a seperate workstation. I followed the steps for manual installation provided in CentFOAM website. OF1.7.0 was installed without any flaws. Then I downloaded OF1.7.x and changed the settings for gcc compiler from system to OpenFoam and version 4.4.4 in settings.sh. Path is also set using alias command for .bashrc file . For the thirdparty directory , i copied the existing Thirdparty-1.7.0 (from centFOAM)and just renamed the director y as ThirdParty- 1.7.x. I got only one error as of now. Could you tell me what is the problem. make:*** [/opt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libscotchDecomp.so] Error 1 Thanks |
|
November 12, 2010, 12:27 |
|
#52 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Muthu,
Quote:
Run Allwmake like this: Code:
./Allwmake > make.log 2>&1 tar -czf make.log.tar.gz make.log
Best regards, Bruno
__________________
|
||
November 14, 2010, 14:44 |
|
#53 | |
New Member
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi Bruno,
Sorry that I couldn't share my experience. I was just away for a week on official reasons. Anyway it seems that my installation really didn't work well(even after trying to get the compiler linking issue in order) and there were a lot of compiler incompatibilites and dependencies error that my colleague decided to get a fresh installation. Could you please shed some light in the following 2 issues regarding bc's 1)How can I mention the inlet velocity in OpenFOAM when the boundary under consideration is a curved surface of a cylinder and flow(inlet velocity) should be tangential(or lets at an angle to the normal) to this surface and away from the axis of this cylindrical surface. Basically this cylindrical surface is an inlet to a cabin and air is drove into the cabin with a fan alligned to the axis of the surface(cylindrical) 2)Here again is about the inlet velocity bc. In the wind tunnel simulation flow enters the tunnel through the inlet normal to the inlet surface. But if I want to mention the velocity at an angle to the to inlet surface, how can I do it. I would greatly appreciate a reply and looking forward to it... Cheers !!! Quote:
|
||
November 14, 2010, 18:13 |
|
#54 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Johny,
Quote:
Quote:
Or like many people do, ask on the main OpenFOAM forum. --------------------- OK, the rest of this post I will use for my report on my experiences this weekend with CentOS:
As for that previous issue reported on this thread, namely post #19, it probably happened solely because there was a folder path in the environment variable LD_LIBRARY_PATH that carried a "rogue" library... which could be the pre-built ParaView 3.8.0 available only. In such a scenario, it's necessary to neutralize that path... and such explanation will have to wait for another time, because I don't want to over-post So, to conclude:
Bruno
__________________
|
|||
November 15, 2010, 04:19 |
|
#55 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Dear Bruno,
I hereby attach the compressed log file to see the details of comiplation. Actually I can able to run foamInstallationTest and it says all crictical systema and basic configurations are Ok. I also ran some testcases and the results are okey. But still I want to make it sure that this Error comes from where ? Does it has any influence later ? Thanks |
|
November 15, 2010, 10:45 |
|
#56 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Dear Muthu,
The only error there is in the log file is for libscotchDecomp, just as you previously posted about. Sorry about that, I didn't understand before that this was the only error. The solution is quite simple: run Allwmake again and the error will be solved The error is one of the issues I've recently reported to OpenCFD's bug tracking system: Quote:
Bruno
__________________
|
||
November 15, 2010, 10:56 |
|
#57 |
Member
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17 |
Thanks a lot Bruno! I will do it as you said. This clears my mind :-) .
|
|
April 27, 2011, 11:00 |
|
#58 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
Hello,
I installed 1.7.x on a computer cluster and I am trying to do some parallel runs with the cavity case. All goes well, when I type my commands manually: Code:
blockMesh decomposePar mpirun -np 8 icoFoam -parallel reconstructPar Code:
#!/bin/sh # request Bourne shell as shell for job #$ -S /bin/sh #$ -N cavity #$ -m beas #$ -M joris.mattheijssens@rma.ac.be # Specify a MPI job on N processors #$ -pe orte 8 #$ -cwd # -j y standard error redirected in the same file as the standard output #$ -o log -j y #$ -v MPI_BUFFER_SIZE=200000000 . ~/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc rm machines cat $PE_HOSTFILE | awk '{ print $1 " slots=" $2 }' > machines decomposePar mpirun --hostfile machines -np $NSLOTS --byslot icoFoam -parallel > log reconstructPar rm core* Can anybody tell me what the problem is? |
|
April 27, 2011, 12:11 |
|
#59 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
echo $LD_LIBRARY_PATH and ldd interFoam (or whatever your solver is). Compare the outputs. See what is there. Is your cluster and your workstation the same RedHat-release? Which gcc did you use for compilation (maybe you'll have to install the compiler - or only the standard libraries that come with it - on the cluster too) Bernhard |
||
April 28, 2011, 04:26 |
|
#60 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
Thank you.
I am not sure my libstdc++ is too old, since I used gcc-4.5.1. What I do not understand is the following : Both simulations I describe above were tried on the same cluster, with CentOS release 5.4 (Final). When I type the commands one by one, it works, but when I use the run.sge, the troubles come. I added the lines to run.sge. echo $LD_LIBRARY_PATH gives Code:
/home/jmatthei/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/paraview-3.8.0/lib/paraview-3.8:/home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1:/home/jmatthei/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/lib:/home/jmatthei/OpenFOAM/jmatthei-1.7.x/lib/linux64GccDPOpt:/home/jmatthei/OpenFOAM/site/1.7.x/lib/linux64GccDPOpt:/home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt:/home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/dummy:/opt/gridengine/lib/lx26-amd64:/usr/lib64/openmpi/1.4.1-gcc/lib:/share/apps/intel/lib/intel64:/share/apps/intel/ipp/em64t/sharedlib:/share/apps/intel/mkl/lib/em64t ldd: ./icoFoam: No such file or directory So I went into OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt and then typed ldd icoFoam, which gave Code:
libfiniteVolume.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libfiniteVolume.so (0x00002ae2b8f96000) libOpenFOAM.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so (0x00002ae2b9fd1000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003db7200000) libstdc++.so.6 => /share/apps/gcc-4.5.1/lib64/libstdc++.so.6 (0x00002ae2ba660000) libm.so.6 => /lib64/libm.so.6 (0x0000003db6e00000) libgcc_s.so.1 => /share/apps/gcc-4.5.1/lib64/libgcc_s.so.1 (0x00002ae2ba966000) libc.so.6 => /lib64/libc.so.6 (0x0000003db6a00000) libPstream.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so (0x00002ae2bab7b000) libtriSurface.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libtriSurface.so (0x00002ae2bad85000) libmeshTools.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so (0x00002ae2baffd000) libz.so.1 => /usr/lib64/libz.so.1 (0x0000003db7a00000) /lib64/ld-linux-x86-64.so.2 (0x0000003db6600000) libmpi.so.0 => /home/jmatthei/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/lib/libmpi.so.0 (0x00002ae2bb457000) libdecompositionMethods.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libdecompositionMethods.so (0x00002ae2bb6f9000) liblagrangian.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/liblagrangian.so (0x00002ae2bb919000) libopen-rte.so.0 => /home/jmatthei/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/lib/libopen-rte.so.0 (0x00002ae2bbb37000) libopen-pal.so.0 => /home/jmatthei/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/lib/libopen-pal.so.0 (0x00002ae2bbd86000) libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003db9a00000) libutil.so.1 => /lib64/libutil.so.1 (0x0000003dc3400000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003db7600000) libscotchDecomp.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libscotchDecomp.so (0x00002ae2bbfff000) libmetisDecomp.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmetisDecomp.so (0x00002ae2bc20c000) libparMetisDecomp.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libparMetisDecomp.so (0x00002ae2bc41b000) libscotch.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libscotch.so (0x00002ae2bc631000) libscotcherrexit.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libscotcherrexit.so (0x00002ae2bc891000) libmetis.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmetis.so (0x00002ae2bca92000) libGKlib.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libGKlib.so (0x00002ae2bcce5000) libmetis-parmetis.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libmetis-parmetis.so (0x00002ae2bcf00000) libparmetis.so => /home/jmatthei/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libparmetis.so (0x00002ae2bd14a000) Don't you think the problem is somewhere in the run.sge file? |
|
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 |