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

OpenFOAM 2.0.1-foamInstallationTest Failed on Fedora 15 x64

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2011, 07:14
Question OpenFOAM 2.0.1-foamInstallationTest Failed on Fedora 15 x64
  #1
New Member
 
Wu Si Cheng
Join Date: Aug 2011
Location: Beijing China
Posts: 2
Rep Power: 0
Winston Wu is on a distinguished road
Hi!
I'm a newcomer to OpenFOAM, and when I tried to compile OpenFOAM 2.0.1, everything seemed to be fine except...

WARNING: Conflicting installations:
OpenFOAM settings : /home/mirage/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/icoFoam
current path :
CRITICAL ERROR

Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).

Can somebody tell me what am I doing wrong?

Thank you.
Winston Wu is offline   Reply With Quote

Old   August 10, 2011, 10:58
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Winston and welcome to the forum!

You can check this post: Fedora 15 install help post #4 - it's a bit old, since those instructions were for OpenFOAM 1.7.x, but they are easily adaptable to 2.0.1 and/or 2.0.x.

But what you probably need to know from that post is this:
  1. The packages necessary for building OpenFOAM in Fedora:
    Code:
    yum install gcc gcc-c++ binutils-devel flex git-core wget cmake qt4-devel python-devel readline-devel bison ncurses-devel tix.x86_64 glibc-devel flex zlib-devel libXt-devel binutils-static python-devel qt-devel cmake flex patch
  2. Keep a log of the build process:
    Code:
    ./Allwmake > make.log 2>&1
    The first occurrence of an error is usually the indicative of the responsible problem.
  3. If you aren't able to verify what the problem is, run:
    Code:
    tar -czf make.log.tar.gz make.log
    Then attach the file make.log.tar.gz to your next post.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 13, 2011, 12:54
Default
  #3
New Member
 
Wu Si Cheng
Join Date: Aug 2011
Location: Beijing China
Posts: 2
Rep Power: 0
Winston Wu is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Winston and welcome to the forum!

You can check this post: Fedora 15 install help post #4 - it's a bit old, since those instructions were for OpenFOAM 1.7.x, but they are easily adaptable to 2.0.1 and/or 2.0.x.

But what you probably need to know from that post is this:
  1. The packages necessary for building OpenFOAM in Fedora:
    Code:
    yum install gcc gcc-c++ binutils-devel flex git-core wget cmake qt4-devel python-devel readline-devel bison ncurses-devel tix.x86_64 glibc-devel flex zlib-devel libXt-devel binutils-static python-devel qt-devel cmake flex patch
  2. Keep a log of the build process:
    Code:
    ./Allwmake > make.log 2>&1
    The first occurrence of an error is usually the indicative of the responsible problem.
  3. If you aren't able to verify what the problem is, run:
    Code:
    tar -czf make.log.tar.gz make.log
    Then attach the file make.log.tar.gz to your next post.
Best regards,
Bruno
Hi Bruno!

Thank you!Dealing with my headache and had no access to cfd-online. Sorry for absent><

I compiled OpenFOAM successfully but when I run paraFoam, it seemed there are some problems...

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

I did as the instruction above and it still didn't work!

Then I tried to compile the paraView module by ./makeParaView, and
[ 7%] Building CXX object VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx: In function 'bool vtkmetaio::MET_StringToWordArray(const char*, int*, char***)':
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:3: error: 'ptrdiff_t' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:3: note: suggested alternatives:
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/x86_64-redhat-linux/bits/c++config.h:1737:28: note: 'std:trdiff_t'
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/x86_64-redhat-linux/bits/c++config.h:1737:28: note: 'std:trdiff_t'
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:13: error: expected ';' before 'l'
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:806:13: error: expected ';' before 'p'
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:807:9: error: 'p' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:807:11: error: 'l' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:813:13: error: expected ';' before 'pp'
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:815:9: error: 'pp' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:815:12: error: 'l' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:828:3: error: 'pp' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:828:6: error: 'l' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:844:13: error: expected ';' before 'i'
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:845:7: error: 'i' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:847:8: error: 'p' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:853:11: error: 'p' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:857:5: error: 'j' was not declared in this scope
/home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:858:11: error: 'p' was not declared in this scope
make[2]: *** [VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o] Error 1
make[1]: *** [VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/all] Error 2
make: *** [all] Error 2
---
it didn't work ><

Then I followed the post Fedora 15 install help post to install paraView from fedora Repository and set the environment. It didn't work either.

Winston Wu
Winston Wu is offline   Reply With Quote

Old   August 14, 2011, 17:47
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Winston Wu,

Quote:
Originally Posted by Winston Wu View Post
Then I followed the post Fedora 15 install help post to install paraView from fedora Repository and set the environment. It didn't work either.
Try running paraFoam like this:
Code:
paraFoam -builtin
As for building ParaView itself, I'll check it in a while as to what might be missing...

_______________
edit: stupid Fedora... they changed the name for qmake to qmake-qt4... you'll have to run makeParaView like this:
Code:
./makeParaView -qmake `which qmake-qt4`
But before that, do as indicated here: http://www.cfd-online.com/Forums/blo...tml#comment760 - Or better, run this command on the same folder where makeParaView is:
Code:
sed -i -e 's=ptrdiff_t=std::ptrdiff_t='  ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx
This will fix the compiler bug, namely the error you got.
_______________

edit 2: well, in case someone who is reading this wants to use Fedora's OpenMPI version, here's a few more steps to be made before building OpenFOAM:
  1. Install openmpi with development stuff:
    Code:
    yum install openmpi-devel
  2. Add a few more details to OpenFOAM's environment (this is assuming x86_64 version of Fedora):
    Code:
    foam
    echo export WM_MPLIB=SYSTEMOPENMPI > etc/prefs.sh
    echo module load openmpi-x86_64  >> etc/prefs.sh
    echo export WM_COMPILER=Gcc46 >> etc/prefs.sh
    echo export WM_NCOMPPROCS=4 >> etc/prefs.sh
    WM_NCOMPPROCS=4 specifies the number of cores to use during the building process.
  3. Log out and log back in... or even reboot, since this is necessary for the "module" system to work properly.
  4. The rest is the same as usual.
_______________

Best regards,
Bruno
__________________

Last edited by wyldckat; August 14, 2011 at 21:16. Reason: see "edit:" and "edit 2:"
wyldckat is offline   Reply With Quote

Old   August 16, 2011, 05:43
Default
  #5
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Quote:
Originally Posted by wyldckat View Post

_______________
edit: stupid Fedora... they changed the name for qmake to qmake-qt4... you'll have to run makeParaView like this:
Code:
./makeParaView -qmake `which qmake-qt4`
But before that, do as indicated here: http://www.cfd-online.com/Forums/blo...tml#comment760 - Or better, run this command on the same folder where makeParaView is:
Code:
sed -i -e 's=ptrdiff_t=std::ptrdiff_t='  ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx
This will fix the compiler bug, namely the error you got.
_______________
I can confirm that bug - when it came up first time I installed paraview I panicked, but fortunately that was the only bug and it was only in that file! Glad to see I'm not the only one who bumped into it!
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   August 16, 2011, 08:24
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Laurence,

Well, for future reference, this has already been fixed for ParaView 3.12: http://paraview.org/Bug/view.php?id=12157 - but I don't have a clue when will it come out...

Best regards,
Bruno
__________________
wyldckat 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
OpenFOAM 1.7.1 installation problem on Fedora 14 armonica OpenFOAM Installation 16 March 31, 2011 14:16
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 10:54
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 12:54.