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

OpenFOAM 2.3.0 on CentOS 6.5

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   April 25, 2014, 00:50
Default OpenFOAM 2.3.0 on CentOS 6.5
  #1
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 23
Rep Power: 6
entropies is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi JYJ,

I know I've had this problem before... and it ended up in not having to do anything with the X11.

Check the contents of the file "qt-everywhere-opensource-src-4.6.4/mkspecs/common/g++.conf". The references to "gcc" and "g++" should indicate "gcc44" and "g++44" or whichever name your custom build of GCC is using, such as "gcc-4.5" and "g++-4.5".

Best regards,
Bruno
Hi Bruno,

I am installing OpenFOAM-2.3.0 on centOS 6.5. I followed the instructions on http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL.

I think I got the same error in the last command of step #16. I've attached my mkqt.log here. I tried to type the two commands of:

Code:
 sed -i -e 's/= gcc/= gcc48/' qt-everywhere-opensource-src-4.8.4/mkspecs/common/g++.conf

 sed -i -e 's/= g++/= g++48/' qt-everywhere-opensource-src-4.8.4/mkspecs/common/g++.conf
and reperform step #16. It doesn't work and still gives me the same error.

However, one of my friends successfully install qt without any changes.

What should I do?

Thank you!

------------

Hello,

I have a problem with installing OpenFOAM 2.3.0 on CentOS 6.5. I followed the procedures on this webpage http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

Everything is good until the last command of #16, i.e.
Code:
./makeQt qt-4.8.4 > mkqt.log 2>&1
I checked mkqt.log, and at the end of the file, it says:

Code:
Basic XLib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/daily/OpenFOAM/ThirdParty-2.3.0/qt-everywhere-opensource-src-4.8.4/mkspecs/linux-g++-64.
Error building: Qt-4.8.4
I've attached my mkqt.log file here.

Thanks!
Attached Files
File Type: gz mkqt.log.tar.gz (18.7 KB, 4 views)
File Type: gz mkqt.log.tar.gz (18.7 KB, 1 views)

Last edited by wyldckat; April 25, 2014 at 14:22. Reason: merged posts as they provide complementary information
entropies is offline   Reply With Quote

Old   April 25, 2014, 14:29
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Qi,

I've moved your other post from the other thread openfoam-2.2.0 installation on cluster of Redhat 4.1.2-48 - and merged with your first post on this thread, since both posts provide some crucial information.

This hack:
Code:
sed -i -e 's/= gcc/= gcc48/' ...
is not needed for these instructions, because the custom GCC meant to be used is the one built from source code when you follow the installation instructions.

The problem is likely related to missing or skipping some specific step. If you run the following commands, what do you get?
Code:
which gcc
which g++
In addition, did you do anything different from the instructions?

Best regards,
Bruno
songwukong likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 25, 2014, 14:59
Default
  #3
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 23
Rep Power: 6
entropies is on a distinguished road
Hi Bruno,

I might solved this by myself. So I just skipped your question and give my solution directly.

In a new terminal, I typed:

Code:
sudo -s
yum install qt-devel
After this, I redid step #16 and everything works fine.

I compared the installation process of openfoam 2.2.0 on centos from http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

It seems in step #2, qt-devel needs to be installed. However, they remove this for openfoam 2.3.0
http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

Hopefully it will help others.

Regards!
Qi
entropies is offline   Reply With Quote

Old   April 25, 2014, 15:15
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Qi,

The reason why installing "qt-devel" is not in the instructions for OpenFOAM 2.3.0 is because for building ParaView 4.1.0 we have to use a custom Qt 4.8.4 version, as the system's version is not compatible.

Nonetheless, you raise an interesting point. When writing the installation instructions, OpenFOAM 2.2 had probably already been installed in the testing system, hence the needed X11 packages were already installed.

I'll have another try with a clean installation, to ascertain which specific packages are missing. Because installing the whole Qt development package and respective dependencies is something like 400MB of files, just because only a few MB were missing .

edit: So far, the missing package was "libXext-devel". Will make a new post when I've finished building ParaView4.

Best regards,
Bruno
songwukong likes this.
__________________

Last edited by wyldckat; April 25, 2014 at 18:41. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   April 25, 2014, 16:05
Default
  #5
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 23
Rep Power: 6
entropies is on a distinguished road
Thanks for your explaination. I probably will go through clean installations later on for some other machines. So keep me posted!

Thanks!
entropies is offline   Reply With Quote

Old   April 26, 2014, 09:25
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, I've finally managed to build Qt 4.8.4 and ParaView 4.1.0, without installing the "qt-devel" package. I've updated the instructions accordingly: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5

Essentially, the missing packages are pretty much all of these:
Code:
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel
In other words, it's basically all of the ones that "qt-devel" depends on.

Best regards,
Bruno
songwukong likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 26, 2014, 18:05
Default
  #7
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 23
Rep Power: 6
entropies is on a distinguished road
Hi Bruno,

Thanks very much for your update!
Can I ask what is this qt or qt-devel? What're its functions? Seems like it has something to do with visualization or X11.

Qi
entropies is offline   Reply With Quote

Old   April 27, 2014, 05:29
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Qi,

The "qt" package provides Qt 4.6.2. The "qt-devel" package provides the respective development files, so that we can build applications that link to the system's Qt 4.6.2. This would work just fine, if we were to build ParaView 3.12.0.

But for building ParaView 4.1.0, we have to use a more recent Qt version, which is why the installation instructions indicate that a custom build of Qt has to be made.

Best regards,
Bruno
songwukong likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 12, 2014, 04:44
Default ERROR: Package gstreamer-app-0.10 not found
  #9
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 209
Rep Power: 10
fabian_roesler is on a distinguished road
Hi

For those who try to compile Qt with -python -mpi -mesa support might face the following error:

Quote:
ERROR: Package gstreamer-app-0.10 not found
This can be solved by

Quote:
yum install gstreamer-plugins-base-devel
Cheers

Fabian
wyldckat likes this.
fabian_roesler is offline   Reply With Quote

Old   July 25, 2014, 06:55
Default Error building: gmp-5.1.2
  #10
Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 98
Rep Power: 4
AshwaniAssam is on a distinguished road
Dear all,
I would like to share my experience in getting around this problem.
I got the following error while executing the step 10 on http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

Quote:
./makeGcc gcc-4.8.1 gmp-5.1.2 mpfr-3.1.2 mpc-1.0.1 > mkgcc.log 2>&1
Note: above is using a log file to write the compiling procedure. I downloaded gmp-5.1.2 from mirror.anl.gov/pub/gnu/gmp/gmp-5.1.2.tar.bz2 and then extracted in the Third Party folder.
Then I ran again this step, everything went well.

with regards.



AshwaniAssam is offline   Reply With Quote

Old   July 26, 2014, 08:47
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Fabian: Thanks for sharing. I'll see if I can find the time in the future to update the instructions to include the options to build ParaView with Python and MPI support.

@Ashwani: Thank you for sharing your experience. If I understood you correctly, the script "getGcc" was unable to get the file "gmp-5.1.2.tar.bz2" from the ftp.gnu.org server. I'll make a note to update the script to rely instead on the GNU mirror server, which assigns automatically the closest server to the user.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 26, 2014, 09:14
Default
  #12
Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 98
Rep Power: 4
AshwaniAssam is on a distinguished road
@Bruno:The problem was what you have explained.

Last edited by AshwaniAssam; July 26, 2014 at 09:15. Reason: It was supposed to be a reply.
AshwaniAssam is offline   Reply With Quote

Old   August 11, 2014, 16:03
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by AshwaniAssam View Post
@Bruno:The problem was what you have explained.
Thanks!
I've tested and updated a few minutes ago the git repository that has the getGcc script - https://github.com/wyldckat/scripts4OpenFOAM3rdParty/ - so that it now downloads by using the generic mirror address for all GNU source code .
songwukong likes this.
wyldckat is offline   Reply With Quote

Old   August 12, 2014, 00:04
Default
  #14
Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 98
Rep Power: 4
AshwaniAssam is on a distinguished road
Thanks for your continued support to OpenFoam community.
wyldckat and songwukong like this.
AshwaniAssam is offline   Reply With Quote

Old   October 3, 2014, 21:36
Default
  #15
New Member
 
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 3
Arjan82 is on a distinguished road
Hi wyldckat,

Awesome job you did for the installation guide at http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

I however run into problems at step 17, the makeParaView4 script won't run properly, see attached log file. I run SL6. I hope you can help me.
Attached Files
File Type: gz log.makePV.tar.gz (22.7 KB, 4 views)
Arjan82 is offline   Reply With Quote

Old   October 4, 2014, 03:20
Default
  #16
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,409
Rep Power: 24
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

I guess this can be relevant to the case: http://www.paraview.org/Wiki/ParaVie...aView_Settings

Quote:
Note for MPI settings: If your MPI variables aren't set automatically (usually the case if the compiler wrapper [mpicxx] is not in the path or in some standard directory), toggle advanced options and set MPI_COMPILER variable to the full path of your mpi compiler (usually mpicxx), and configure. This should set all the required MPI variables. If not, then you might need to enter them manually.
If you get an error such as "mpi.h: no such file or directory" then set the CMAKE_C_FLAGS= -lmpi and the CMAKE_CXX_FLAGS= -lmpi++ . This is in addition to the MPI variables.
alexeym is offline   Reply With Quote

Old   October 4, 2014, 07:56
Default
  #17
New Member
 
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 3
Arjan82 is on a distinguished road
Actually, all I had to do is set this variable:

Code:
export MPI_INCLUDE=/usr/include/openmpi-x86_64
I came across two other things that I just mention which might help others:

I also needed to install python-devel, maybe add that to step 2?

When building OpenFOAM, foamyQuadMesh wouldn't build and I found out that some dep files point to $WM_THIRD_PARTY_DIR/platforms/linux64Gcc/ instead of $WM_THIRD_PARTY_DIR/platforms/linux64Gcc48

I solved it with a soft link but it may be better to change the dep files. You can find the files e.g. like this
Code:
cat `find . -name '*.dep'` | grep linux64Gcc\/
Arjan82 is offline   Reply With Quote

Old   October 4, 2014, 13:15
Default
  #18
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Arjan: I've moved your questions from the other thread openfoam 2.3.0 installation in RHEL 5, because that thread was meant for CentOS/RHEL/SL 5, and you're asking about SL 6.

And from your description and the build log, I believe you've mixed up the instructions that are meant for CentOS 5.10 with those for CentOS 6.5: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 - as you can see, the instructions for 6.5 have "python-devel" in the list of packages to be installed.

As for the need to explicitly run:
Code:
export MPI_INCLUDE=/usr/include/openmpi-x86_64
Which exact SL (Scientific Linux) version are you using? I ask this because on CentOS 6.5, this variable is defined automatically.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 6, 2014, 13:52
Default
  #19
New Member
 
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 3
Arjan82 is on a distinguished road
Ok, I might have messed up the two versions a bit indeed... That may also explain the wrong file references in the dep files...

I run Scientific Linux release 6.5 (Carbon), Linux version 2.6.32-431.29.2.el6.x86_64 (mockbuild@sl6.fnal.gov) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Sep 9 13:45:55 CDT 2014
Arjan82 is offline   Reply With Quote

Old   October 7, 2014, 15:20
Default
  #20
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer: If you run the following commands:
Code:
gcc --version
g++ --version
and one or both state that you're using GCC 4.4.7, then I suggest that you remove the current installation you made of OpenFOAM 2.3.0 and start over again from the instructions meant specifically for CentOS 6.5, since it's very similar to RHEL and SL 6.5.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 0 January 1, 2014 20:21
Salome 6.5 - OpenFoam 2.1.1 Compatibility Isopar Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 November 19, 2012 05:20
Installing OpenFOAM 2.1.1 on CentOS 5.x phuchuynh OpenFOAM Installation 1 October 10, 2012 16:58
OpenFOAM 15 and CentOS 52 installation issues remrich OpenFOAM Bugs 9 March 20, 2009 02:48
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


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