Installing OpenFOAM-3.0.x on RHEL 6.7
1 Attachment(s)
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 \ Thanks! |
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 |
Hello Bruno,
Quote:
2. No, I did not make any changes. |
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! :) |
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. |
Quote:
Thanks! |
1 Attachment(s)
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. |
Quick answer:
Quote:
Code:
echo $FOAM_SETTINGS In addition, please run the following commands: Code:
cd $WM_THIRD_PARTY_DIR |
echo $FOAM_SETTINGS doesn't give result
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. |
CPU Specs
2 Attachment(s)
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. |
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 Quote:
Quote:
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 Bruno |
All times are GMT -4. The time now is 02:15. |