|
[Sponsors] |
[OpenFOAM.org] Installing OpenFOAM-3.0.x on RHEL 6.7 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 24, 2015, 16:43 |
Installing OpenFOAM-3.0.x on RHEL 6.7
|
#1 |
Member
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11 |
Hello FOAMers,
I am trying to install OF-3.0.x on RHEL 6.7. I am following the steps provided in the link below: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL Everything works fine until step #16. When I try to run ./Allwmake inside the OpenFOAM-3-0.x/ directory, I get the following error: Code:
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/usr/include/openmpi-x86_64 -pthread -IlnInclude -I. -I/home/vabishek/OpenFOAM//OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/vabishek/OpenFOAM//OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc48DPInt64OptSYSTEMOPENMPI/UOPwrite.o Make/linux64Gcc48DPInt64OptSYSTEMOPENMPI/UIPread.o Make/linux64Gcc48DPInt64OptSYSTEMOPENMPI/UPstream.o Make/linux64Gcc48DPInt64OptSYSTEMOPENMPI/PstreamGlobals.o -L/home/vabishek/OpenFOAM//OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64OptSYSTEMOPENMPI/lib \ -pthread -Wl,-rpath -Wl,/usr/lib64/openmpi/lib -Wl,--enable-new-dtags -L/usr/lib64/openmpi/lib -lmpi -o /home/vabishek/OpenFOAM//OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib/openmpi-system/libPstream.so '/home/vabishek/OpenFOAM//OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib/openmpi-system/libPstream.so' is up to date. touch: cannot touch `/home/vabishek/OpenFOAM//OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64OptSYSTEMOPENMPI/src/Pstream/mpi/using:openmpi-system': No such file or directory Thanks! |
|
November 24, 2015, 17:22 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
A few questions:
Code:
-fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc48DPInt64OptSYSTEMOPENMPI/UOPwrite.o Code:
-fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/ofuser/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt64OptSYSTEMOPENMPI/src/Pstream/mpi/UOPwrite.o |
|
November 24, 2015, 17:49 |
|
#3 | |
Member
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11 |
Hello Bruno,
Quote:
2. No, I did not make any changes. |
||
November 25, 2015, 09:01 |
|
#4 |
Member
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11 |
Update: Problem resolved.
I was able to install OF-3.0.x without any further issues. Thanks a lot for your help, Bruno. Your questions helped me solved the problem. As you had mentioned, the installer was referring to the old path instead of the newer one. I commented out the aliases for earlier version in my bashrc, and did a fresh install on a new terminal. It worked well! |
|
November 27, 2015, 17:18 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quote:
Because that would be the reason for the problem. You should be able to uncomment the aliases again and use the other OpenFOAM versions without problems, as long as you only use one version per terminal window. |
||
November 30, 2015, 09:22 |
|
#6 | |
Member
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11 |
Quote:
Thanks! |
||
March 13, 2016, 02:56 |
|
#7 |
New Member
Huynh Thien Loc
Join Date: Sep 2015
Posts: 5
Rep Power: 10 |
Dear Bruno,
I've been having lots of problems installing OpenFOAM on RHEL 6.7 (kernel version 2.6.32-573) too. As I follow the post https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL all seems to work well until #16. It takes only a minute complete and no error pops up. I installed OpenFOAM on ubuntu 14.04 before without any issue but I've spent days trying other OpenFOAM versions also but none worked properly. Please refer to the make.log attached below for your reference. I appreciate any help from your part. Thank you. |
|
March 13, 2016, 12:41 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quick answer:
Quote:
Code:
echo $FOAM_SETTINGS In addition, please run the following commands: Code:
cd $WM_THIRD_PARTY_DIR gzip < mkgcc.log > mkgcc.log.gz pwd
__________________
|
||
March 14, 2016, 02:37 |
echo $FOAM_SETTINGS doesn't give result
|
#9 |
New Member
Huynh Thien Loc
Join Date: Sep 2015
Posts: 5
Rep Power: 10 |
Dear Bruno,
I'm very glad for your prompt reply. Unfortunately, the echo $FOAM_SETTINGS command doesn't give any result even as root as shown in the picture below. Also the mkgcc.log after zipping is still bigger (350kb) than the standard allowed in the forum. So could you please go to this link https://drive.google.com/file/d/0B35lBYMD1NcTUEJSYlpZQko2M1k/view?usp=sharing and see if things went wrong? I'm sorry for this burden. In the mean time, I succeed in installing OF2.1.1 thanks to http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL But with my server's specs, I modified (4) to (1) #here you can change 4 to the number of cores you've got source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI So I can't do mpirun. Then should I redo the whole process by changing (4) to (12) or only re-run this command? Thank you very much and hope to hear from you soon. |
|
March 14, 2016, 11:21 |
CPU Specs
|
#10 |
New Member
Huynh Thien Loc
Join Date: Sep 2015
Posts: 5
Rep Power: 10 |
Dear Bruno,
I forgot to attach the photos about the outcome of echo $FOAM_SETTINGS and the specs of my computer. I'm confused about the number of cores I should specify when installing OpenFOAM is (1) or (12)? (for example: source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI ) Thank you very much. |
|
March 19, 2016, 17:09 |
|
#11 | |||||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Huynh,
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Therefore, you should run the following commands in a new terminal with your own user (namely without switching user with su): Code:
of30x echo $FOAM_SETTINGS Quote:
I suspect that the problem has to do with how you are loading the OpenFOAM environment. Details on what I mean are given here: http://openfoamwiki.net/index.php/In...with_the_Shell But in specific, I request that you tell me what you get from the following commands, right after you start a new terminal window: Code:
alias | grep OpenFOAM grep OpenFOAM ~/.bashrc of211 which mpirun Bruno |
||||||||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[Other] How to install OpenFOAM under Windows? | lzgwhy | OpenFOAM Installation | 19 | October 7, 2023 05:27 |
[Other] Basic questions about OpenFOAM cluster running and installing | Fauster | OpenFOAM Installation | 0 | May 25, 2018 16:00 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |