CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 3.0.0 Installation - from source code

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By lhutifis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2015, 09:01
Default OpenFOAM 3.0.0 Installation - from source code
  #1
New Member
 
Fazal Haq
Join Date: Nov 2015
Posts: 1
Rep Power: 0
fazalhaq is on a distinguished road
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
-------------------------------------------------------------------------------------------------------
Could someone please explaine what I can do? Do I have to change variables and compile again or can I copy something into the right place?

Thank you in advance

Fazal Haq

Last edited by wyldckat; November 7, 2015 at 14:56. Reason: Added [CODE][/CODE] markers
fazalhaq is offline   Reply With Quote

Old   November 5, 2015, 09:14
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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
is produced by function reportExecutable called like this:

Code:
reportExecutable icoFoam  "$FOAM_APPBIN/icoFoam"
first parameter is executable name (icoFoam), second parameter is location where it should be located. Function tries to locate executable with given name and compare result with canonical path.

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"?
alexeym is offline   Reply With Quote

Old   November 5, 2015, 17:06
Default
  #3
New Member
 
Tommy V
Join Date: Nov 2013
Posts: 29
Rep Power: 12
Villo is on a distinguished road
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)
Quote:
Originally Posted by alexeym View Post
What is output of "icoFoam -help"?
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).
[...]
Checking the folder /home/tommy/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/ I realized that there's no bin folder!

Last edited by wyldckat; November 7, 2015 at 14:57. Reason: Added [CODE][/CODE] markers
Villo is offline   Reply With Quote

Old   November 6, 2015, 01:53
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
@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
and then post compressed log.Allwmake?

IIRC there were errors during build on Fedora 22, yet I do not remember what were their reasons and how I fixed them.
alexeym is offline   Reply With Quote

Old   November 7, 2015, 14:50
Default
  #5
New Member
 
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 10
lhutifis is on a distinguished road
Hello,

I`m facing the same problem too... (Using RHEL 5.3)

Here`s my make.log file.
Attached Files
File Type: txt make.log.txt (19.5 KB, 31 views)
lhutifis is offline   Reply With Quote

Old   November 7, 2015, 16:04
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
If you prefer to keep it to the minimum, then use this:
Code:
sudo apt-get install libboost-system-dev libboost-thread-dev
By the way, keep in mind that as of this version, the build system will stop on the first major error, on contrary to how things worked in OpenFOAM 2.4 and older versions, which use to continue building even if any errors had occurred.


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 16:16. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   November 9, 2015, 13:12
Default
  #7
New Member
 
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 10
lhutifis is on a distinguished road
Hi Bruno,

I appreciate your support.


Best,
Willian
lhutifis is offline   Reply With Quote

Old   November 11, 2015, 10:32
Default
  #8
New Member
 
Willian
Join Date: Nov 2015
Posts: 3
Rep Power: 10
lhutifis is on a distinguished road
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
Do you have any idea what could be causing this problem?

Thanks!


Edit: Everything is running now!

I just needed to compile Qt with -xmlpatterns option.
wyldckat likes this.

Last edited by lhutifis; November 12, 2015 at 17:39.
lhutifis is offline   Reply With Quote

Old   November 15, 2015, 11:47
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by lhutifis View Post
I`m facing the same problem too... (Using RHEL 5.3)
@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:
Originally Posted by lhutifis View Post
I'm trying to install OpenFoam2.4 following your instructions.
[...]
I just needed to compile Qt with -xmlpatterns option.
This is a bit strange... the instructions on the wiki: https://openfoamwiki.net/index.php/I...EL#CentOS_5.11 - point to using the script makeQt, which seems to build "xmlpatterns" by default...
wyldckat is offline   Reply With Quote

Old   April 18, 2016, 22:45
Default
  #10
New Member
 
nethmech's Avatar
 
nethmech
Join Date: Dec 2013
Location: Spain
Posts: 8
Rep Power: 12
nethmech is on a distinguished road
Send a message via AIM to nethmech
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.
Attached Files
File Type: zip log - Copy.zip (76.1 KB, 4 views)
nethmech is offline   Reply With Quote

Old   April 19, 2016, 18:08
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Run:
Code:
./Allwmake > log.make 2>&1
so that the actual error messages are sent into the log file. Because the one you attached doesn't have the actual error messages
__________________
wyldckat is offline   Reply With Quote

Old   April 20, 2016, 10:33
Post OpenFoam 3.0 installation error from source code
  #12
New Member
 
nethmech's Avatar
 
nethmech
Join Date: Dec 2013
Location: Spain
Posts: 8
Rep Power: 12
nethmech is on a distinguished road
Send a message via AIM to nethmech
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.
Attached Files
File Type: zip log - Copy.zip (8.0 KB, 7 views)
File Type: zip TestResultsInstallation.zip (981 Bytes, 3 views)
nethmech is offline   Reply With Quote

Old   April 20, 2016, 17:12
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
If all goes well, the problem will be solved.
wyldckat is offline   Reply With Quote

Old   July 7, 2016, 17:48
Unhappy Similar Problem
  #14
New Member
 
Sam Bazgi
Join Date: Jul 2016
Location: USA
Posts: 7
Rep Power: 9
Manyway is on a distinguished road
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).
The full log file is attached.
makelog.txt

So, the errors it shows:
Quote:
collect2: error: ld returned 1 exit status
/home/moto/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/general:132: recipe for target '/home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/laplacianFoam' failed
make[2]: *** [/home/moto/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/laplacianFoam] Error 1
make[2]: Leaving directory '/home/moto/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic/laplacianFoam'
/home/moto/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'laplacianFoam' failed
make[1]: *** [laplacianFoam] Error 2
make[1]: Leaving directory '/home/moto/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic'
/home/moto/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'basic' failed
make: *** [basic] Error 2
I installed libboost and everything I could find.
What can be the problem?
Manyway is offline   Reply With Quote

Old   July 7, 2016, 18:59
Default
  #15
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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
it is rather strange, do you have openmpi-dev (since headers are there) and no openmpi (there are no libraries to link to)?

Also, you are trying to compile new version, why post your message to 3.0.0 thread?
alexeym is offline   Reply With Quote

Old   July 7, 2016, 20:09
Default
  #16
New Member
 
Sam Bazgi
Join Date: Jul 2016
Location: USA
Posts: 7
Rep Power: 9
Manyway is on a distinguished road
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
Manyway is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 06:42
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 02:36.