|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 3.0.0 Installation - from source code |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 5, 2015, 10:01 |
OpenFOAM 3.0.0 Installation - from source code
|
#1 |
New Member
Fazal Haq
Join Date: Nov 2015
Posts: 1
Rep Power: 0 |
Hello Everyone,
I tried installing OpenFoam on my computer following the source installation instructions. After building everything the Installation test gives me the following: Code:
--------------------------------------------------------------------------------------------------------------- Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: fazal OS: Linux version 3.19.0-31-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/fazal/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/fazal/OpenFOAM/fazal-3.0.0 yes no $WM_THIRD_PARTY_DIR /home/fazal/OpenFOAM/ThirdParty-3.0.0 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/fazal/OpenFOAM/OpenFOAM-3.0.0 yes yes yes $FOAM_APPBIN ...0/platforms/linux64GccDPInt32Opt/bin no yes $FOAM_SITE_APPBIN ...0/platforms/linux64GccDPInt32Opt/bin no no $FOAM_USER_APPBIN ...0/platforms/linux64GccDPInt32Opt/bin no no $WM_DIR .../fazal/OpenFOAM/OpenFOAM-3.0.0/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...0/platforms/linux64GccDPInt32Opt/lib yes yes yes $FOAM_SITE_LIBBIN ...0/platforms/linux64GccDPInt32Opt/lib no no $FOAM_USER_LIBBIN ...0/platforms/linux64GccDPInt32Opt/lib no no $MPI_ARCH_PATH /usr/lib/openmpi yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex gcc 4.8.4 /usr/bin/gcc g++ 4.8.4 /usr/bin/g++ gzip 1.6 /bin/gzip tar 1.27.1 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/fazal/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for troubleshooting. Done ------------------------------------------------------------------------------------------------------- Thank you in advance Fazal Haq Last edited by wyldckat; November 7, 2015 at 15:56. Reason: Added [CODE][/CODE] markers |
|
November 5, 2015, 10:14 |
|
#2 |
Senior Member
|
Hi,
Long introduction: this output Code:
icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/fazal/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/bin/icoFoam current path : CRITICAL ERROR Code:
reportExecutable icoFoam "$FOAM_APPBIN/icoFoam" Short conclusion: since your "current path" is empty, guess your compilation procedure finished with error and icoFoam was not built. What is output of "icoFoam -help"? |
|
November 5, 2015, 18:06 |
|
#3 |
New Member
Tommy V
Join Date: Nov 2013
Posts: 29
Rep Power: 13 |
Dears,
I'm facing the same issue of Fazal (I'm using Ubuntu 15.10 running on Oracle Virtual Machine). Dear Alexey, I would reply to the question made to Fazel (I guess that our issue is the same) tommy@tommy-VirtualBox:~/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt$ icoFoam -help icoFoam: command not found No OpenFoam command is available (icoFoam, simpleFoam, twoLiquidMixingFoam, etc. etc.) even if i call the OpenFoam bash source in my .bashrc The error is generated in the checking of OF variables: Code:
[...] Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/tommy/OpenFOAM/OpenFOAM-3.0.x yes yes yes $FOAM_APPBIN ...x/platforms/linux64GccDPInt32Opt/bin no yes $FOAM_SITE_APPBIN ...x/platforms/linux64GccDPInt32Opt/bin no no $FOAM_USER_APPBIN ...x/platforms/linux64GccDPInt32Opt/bin no no $WM_DIR .../tommy/OpenFOAM/OpenFOAM-3.0.x/wmake yes yes yes [...] Which leads to the critical error: [...] icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/tommy/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). [...] Last edited by wyldckat; November 7, 2015 at 15:57. Reason: Added [CODE][/CODE] markers |
|
November 6, 2015, 02:53 |
|
#4 |
Senior Member
|
@Villo
Unfortunately I can only say that the error happened during your build process. So Allwmake script stopped and executables was not built. I do not know if you have Allwmake script output but it is the only was to diagnose the error (well, if you still have terminal session with build output open...). Could you run Allwmake (after setting up environment variable etc.) like this: Code:
$ ./Allwmake > log.Allwmake 2>&1 IIRC there were errors during build on Fedora 22, yet I do not remember what were their reasons and how I fixed them. |
|
November 7, 2015, 15:50 |
|
#5 |
New Member
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
Hello,
I`m facing the same problem too... (Using RHEL 5.3) Here`s my make.log file. |
|
November 7, 2015, 17:04 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Thanks to lhutifis' log file, I was able to notice that the problem is that the Boost package is missing from the official installation instructions. I've reported this here: http://www.openfoam.org/mantisbt/view.php?id=1906 To install the complete Boost development package on Ubuntu, run: Code:
sudo apt-get install libboost-all-dev Code:
sudo apt-get install libboost-system-dev libboost-thread-dev As for those who are not using Ubuntu, please state which Linux distribution you're using!! edit: @lhutifis: Sorry, didn't notice that you had mentioned RHEL 5.3. Give me a few hours and I'll have the instructions on the wiki up for 3.0. In the meantime, you can try following the ones for OpenFOAM 2.4.x and CentOS 5.11: http://openfoamwiki.net/index.php/In...EL#CentOS_5.11 - what you are looking for are the instructions needed for installing Boost... edit2: Sorry, only have the instructions up for Ubuntu https://openfoamwiki.net/index.php/I...M-3.0.0/Ubuntu - and CentOS 6.7: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.7 - for CentOS 5.x and 7.x will still take me a few more days until I have these two done. Best regards, Bruno
__________________
Last edited by wyldckat; November 8, 2015 at 17:16. Reason: see "edit:" |
|
November 9, 2015, 14:12 |
|
#7 |
New Member
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
Hi Bruno,
I appreciate your support. Best, Willian |
|
November 11, 2015, 11:32 |
|
#8 |
New Member
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
Hi Bruno,
I'm trying to install OpenFoam2.4 following your instructions. Everything went well until paraview installation. I'm facing this error: Code:
[ 96%] Generating Documentation HTMLs from xmls CMake Error at /opt/OpenFOAM/ThirdParty-2.4.0/ParaView-4.1.0/CMake/generate_proxydocumentation.cmake:18 (message): No xmlpatterns executable was defined!!! make[2]: *** [Plugins/PointSprite/ParaViewPlugin/CSCS_PointSprite_Rendering.xml.xml] Error 1 make[1]: *** [Plugins/PointSprite/ParaViewPlugin/CMakeFiles/PointSprite_Plugin.dir/all] Error 2 make: *** [all] Error 2 Thanks! Edit: Everything is running now! I just needed to compile Qt with -xmlpatterns option. Last edited by lhutifis; November 12, 2015 at 18:39. |
|
November 15, 2015, 12:47 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@lhutifis: Instructions for CentOS 5.11 is up and should work with RHEL 5.3: https://openfoamwiki.net/index.php/I...EL#CentOS_5.11
In addition, for CentOS 7.1 is also up: https://openfoamwiki.net/index.php/I...HEL#CentOS_7.1 Quote:
|
||
April 18, 2016, 23:45 |
|
#10 |
New Member
|
Hello Everyone,
I tried installing Openfoam 3.0+. Installation proceeded smoothly but at the end I get one critical error. Updated Boost lib files as well, as suggested by Bruno, but issue still remains . Here is my log file. Kindly help. |
|
April 19, 2016, 19:08 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Run:
Code:
./Allwmake > log.make 2>&1
__________________
|
|
April 20, 2016, 11:33 |
OpenFoam 3.0 installation error from source code
|
#12 |
New Member
|
Hello,
Here is the log file and the installation test result. I followed all instructions given on the OpenFoam webpage. Still it didn't work. Let me know what's happening here. Thanks in Advance. |
|
April 20, 2016, 18:12 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Run the following commands:
Code:
#Go into OpenFOAM's main source folder cd $WM_PROJECT_DIR #Change how the flex version is checked find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1=' ./Allwmake > log.make 2>&1 |
|
July 7, 2016, 18:48 |
Similar Problem
|
#14 | |
New Member
Sam Bazgi
Join Date: Jul 2016
Location: USA
Posts: 7
Rep Power: 10 |
Hello all, I would really appreciate if you help me.
I keep getting the errors while compiling the OpenFoam. Here is the result of the installation test: moto@ubuntu:~/OpenFOAM/OpenFOAM-v1606+$ foamInstallationTest Code:
Executing /home/moto/OpenFOAM/OpenFOAM-v1606+/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: ubuntu OS: Linux version 4.4.0-21-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/moto/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/moto/OpenFOAM/moto-v1606+ yes no $WM_THIRD_PARTY_DIR /home/moto/OpenFOAM/ThirdParty-v1606+ yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/moto/OpenFOAM/OpenFOAM-v1606+ yes yes yes $FOAM_APPBIN ...+/platforms/linux64GccDPInt32Opt/bin yes yes yes $FOAM_SITE_APPBIN ...+/platforms/linux64GccDPInt32Opt/bin no no $FOAM_USER_APPBIN ...+/platforms/linux64GccDPInt32Opt/bin no no $WM_DIR .../moto/OpenFOAM/OpenFOAM-v1606+/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...+/platforms/linux64GccDPInt32Opt/lib yes yes yes $FOAM_SITE_LIBBIN ...+/platforms/linux64GccDPInt32Opt/lib no no $FOAM_USER_LIBBIN ...+/platforms/linux64GccDPInt32Opt/lib no no $MPI_ARCH_PATH /usr/lib/lam yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.6.0 /usr/bin/flex gcc 5.3.1 /usr/bin/gcc g++ 5.3.1 /usr/bin/g++ gzip 1.6 /bin/gzip tar 1.28 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). makelog.txt So, the errors it shows: Quote:
What can be the problem? |
||
July 7, 2016, 19:59 |
|
#15 |
Senior Member
|
Hi,
error is here Code:
/home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Intracomm::current_op' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_comm_map' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Is_initialized()' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_err_map' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Free()' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `op_intercept' /home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)' collect2: error: ld returned 1 exit status Also, you are trying to compile new version, why post your message to 3.0.0 thread? |
|
July 7, 2016, 21:09 |
|
#16 |
New Member
Sam Bazgi
Join Date: Jul 2016
Location: USA
Posts: 7
Rep Power: 10 |
Oh, thanks! I'm new to this forum. I moved this question to a new thread!
Here is the link: http://www.cfd-online.com/Forums/ope...tml#post608490 Yes, I have openmpi-dev. I even updated it, however the issue is still there |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |