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

[OpenFOAM.org] Install OpenFOAM-2.3.0 on CentOS 7 ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2014, 02:44
Default Install OpenFOAM-2.3.0 on CentOS 7 ?
  #1
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
CentOS 7 just comes out. Is there anyone would like to update the installation process? I mean a really clean installation like:

http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL
entropies is offline   Reply With Quote

Old   October 29, 2014, 02:35
Default Installation failed.
  #2
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
I tried to follow the instructions on:
http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5

And I failed. I had a problem of using the command of:
Code:
module load openmpi-x86_64
in Step #7.

So I use:

Code:
 export MPI_INCLUDE=/usr/include/openmpi-x86_64
instead.

I met a problem in step #17. My log.MakePV file is attached here:
Attached Files
File Type: gz log.makePV.tar.gz (1.2 KB, 6 views)
entropies is offline   Reply With Quote

Old   October 29, 2014, 03:22
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

1. IIRC in RHEL 7, they've changed the name of the module for OpenMPI. You can list all available modules with 'module avail' command, and select the one corresponding to OpenMPI.

2. As to your log-file with error, it's quite obvious:

Code:
etc/tools/ParaView4Functions: line 427: cmake: command not found
either you've skipped step 9, or just forgot to install cmake (also RHEL 7 comes with cmake 2.8.11, so yo don't need to build it, you can install it with yum).
alexeym is offline   Reply With Quote

Old   October 29, 2014, 16:13
Default
  #4
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
Hi Alexey,

I installed cmake, and seems it's progressing but now I met another problem in step #17. The error is shown in the following:

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

[ 82%] Built target mpi4py.MPE
Linking C shared module ../../../lib/site-packages/mpi4py/MPI.so
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `OPENMPI_dlopen_libmpi':
MPI.c.text+0x6eb1): undefined reference to `dlopen'
MPI.c.text+0x6ecd): undefined reference to `dlopen'
MPI.c.text+0x6ee3): undefined reference to `dlopen'
MPI.c.text+0x6ef9): undefined reference to `dlopen'
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `__pyx_pf_6mpi4py_3MPI_16Init':
MPI.c.text+0x1345b): undefined reference to `dlopen'
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o:MPI.c.text+0x1357d): more undefined references to `dlopen' follow
collect2: error: ld returned 1 exit status
make[2]: *** [lib/site-packages/mpi4py/MPI.so] Error 1
make[1]: *** [ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2
make: *** [all] Error 2
---
Installation complete for paraview-4.1.0
Set environment variables:

export ParaView_DIR=/home/Black/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
---

Done

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

Thank you for helping me out.

Qi
entropies is offline   Reply With Quote

Old   October 29, 2014, 16:53
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I guess, this should be relevant:

http://www.cfd-online.com/Forums/par...n-support.html

(the workaround in the first message of the thread is mentioned in http://www.paraview.org/pipermail/pa...ry/030485.html, so I guess, it's in fact working despite doubts of the author).

Also I'm not quite sure 4.1.0 with PV4Reader worth building Maybe it's just me, but when I have paraview binary installation with built-in OpenFOAM reader (extension=foam, requirePV=0), when I execute paraFoam all volume fields are selected by default while opening the case; if I build paraview 4.1.0 and PV4Reader, usually when I open a case, only U or p volume fields are selected. After certain time it becomes rather irritating.
alexeym is offline   Reply With Quote

Old   October 29, 2014, 17:19
Default
  #6
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
How do you setup the OpenFOAM reader (extension=foam, requirePV=0)?
entropies is offline   Reply With Quote

Old   October 29, 2014, 17:29
Default
  #7
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
I tried the instructions on the webpage you gave me. It still has an error of:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MPI_EXTRA_LIBRARY (ADVANCED)
entropies is offline   Reply With Quote

Old   October 30, 2014, 02:31
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by entropies View Post
How do you setup the OpenFOAM reader (extension=foam, requirePV=0)?
You install paraview using yum, and then edit paraFoam script ($WM_PROJECT_DIR/bin/paraFoam). You change lines 71 and 73 to

Code:
extension=foam

requirePV=0
and that's all. This topic was discussed several times on the Forum, just use Search.
alexeym is offline   Reply With Quote

Old   November 9, 2014, 16:42
Default
  #9
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 to all!

Instructions for installing OpenFOAM 2.3.0 on CentOS 7.0 are written and tested: http://openfoamwiki.net/index.php/In...HEL#CentOS_7.0

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 28, 2014, 08:17
Default compling
  #10
New Member
 
Join Date: Dec 2014
Posts: 7
Rep Power: 12
roshanak878 is on a distinguished road
hi..I am new to work with openFoam and linux . I have a quastion and I would be grateful if you can help me. I tried to develop a new solver and change icoFoam to solve heat transfer. I change icoFoam.c and all required field and now I want to compile it. however, after typing "wmake" in linux terminal, a message shows me, this command is invalid..what should i have done?
roshanak878 is offline   Reply With Quote

Old   December 30, 2014, 08:39
Default
  #11
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 roshanak878 and welcome to the forum!

Please keep in mind that vague questions will likely lead to vague answers This is why this thread exists: http://www.cfd-online.com/Forums/ope...-get-help.html

This to say that you should provide at least the following information:
  1. Which exact Linux Distribution are you using?
  2. Which OpenFOAM version are you using?
  3. Which installation instructions did you follow for installing OpenFOAM?
  4. Which instructions did you follow to modify icoFoam?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 12, 2015, 08:35
Question
  #12
New Member
 
Alessio
Join Date: Mar 2015
Posts: 5
Rep Power: 11
Mr.Barbato is on a distinguished road
Hi, I am new to work with OpenFoam, I try to install it on Scientific linux 7, but in the logfile (step 12) i find some errors and i don't understand what is missing. i Try also to skip these errors and go on to the other step but then the errors come out when i try to install paraview, and it failed... to install it i follow the step written in the link of post #9 of this topic ( openfoam v2.3 ). Here enclosed the logfile so that you can help me solve these problems.
Attached Files
File Type: gz make.log.tar.gz (12.0 KB, 2 views)
Mr.Barbato is offline   Reply With Quote

Old   March 12, 2015, 09:36
Default
  #13
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Code:
[myself@agatha ~]$ cat /etc/redhat-release 
Scientific Linux release 7.0 (Nitrogen)
Code:
[myself@agatha ~]$ yum provides /usr/lib64/libGL.so
Modules complémentaires chargés*: auto-update-debuginfo, langpacks
mesa-libGL-devel-9.2.5-5.20131218.el7.x86_64 : Mesa libGL development package
Dépôt        *      : sl
Correspondance depuis*:
Nom de fichier*: /usr/lib64/libGL.so



mesa-libGL-devel-9.2.5-6.20131218.el7_0.x86_64 : Mesa libGL development package
Dépôt        *      : @sl-fastbugs/7.0
Correspondance depuis*:
Nom de fichier*: /usr/lib64/libGL.so
Do you have mesa-libGL-devel package installed? According to your log, due to absent /usr/lib64/libGL.so you can not build CGAL and then as a consequence you can not build everything that depends on CGAL.
alexeym is offline   Reply With Quote

Old   March 12, 2015, 13:18
Default
  #14
New Member
 
Alessio
Join Date: Mar 2015
Posts: 5
Rep Power: 11
Mr.Barbato is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Code:
[myself@agatha ~]$ cat /etc/redhat-release 
Scientific Linux release 7.0 (Nitrogen)
Code:
[myself@agatha ~]$ yum provides /usr/lib64/libGL.so
Modules complémentaires chargés*: auto-update-debuginfo, langpacks
mesa-libGL-devel-9.2.5-5.20131218.el7.x86_64 : Mesa libGL development package
Dépôt        *      : sl
Correspondance depuis*:
Nom de fichier*: /usr/lib64/libGL.so



mesa-libGL-devel-9.2.5-6.20131218.el7_0.x86_64 : Mesa libGL development package
Dépôt        *      : @sl-fastbugs/7.0
Correspondance depuis*:
Nom de fichier*: /usr/lib64/libGL.so
Do you have mesa-libGL-devel package installed? According to your log, due to absent /usr/lib64/libGL.so you can not build CGAL and then as a consequence you can not build everything that depends on CGAL.
According to the screenshot here attached, the mesa-libGL-devel was installed at the moment of the OpenFoam installation, therefore what's the problem?
Attached Images
File Type: jpg Schermata del 2015-03-12 18:13:28.jpg (28.6 KB, 3 views)
Mr.Barbato is offline   Reply With Quote

Old   March 12, 2015, 13:42
Default
  #15
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
And do you have /usr/lib64/libGL.so file?
alexeym is offline   Reply With Quote

Old   March 12, 2015, 14:33
Default
  #16
New Member
 
Alessio
Join Date: Mar 2015
Posts: 5
Rep Power: 11
Mr.Barbato is on a distinguished road
Quote:
Originally Posted by alexeym View Post
And do you have /usr/lib64/libGL.so file?
Yes, I have
Attached Images
File Type: jpg Schermata del 2015-03-12 19:31:53.jpg (27.1 KB, 8 views)
Mr.Barbato is offline   Reply With Quote

Old   March 12, 2015, 15:15
Default
  #17
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
According to your pictures (though I would prefer if you continue with plain text) libGL.so is symlink and it is broken symlink (see that cross on the screenshot).

Looking at the other files on your pictures it seems that you have installed Nvidia drivers, do not know why these drivers decided to break libGL. You can try to delete broken symlink and recreate it. This time point it to existing file (like libGL.so.1).
alexeym is offline   Reply With Quote

Old   March 13, 2015, 05:16
Default
  #18
New Member
 
Alessio
Join Date: Mar 2015
Posts: 5
Rep Power: 11
Mr.Barbato is on a distinguished road
Quote:
Originally Posted by alexeym View Post
According to your pictures (though I would prefer if you continue with plain text) libGL.so is symlink and it is broken symlink (see that cross on the screenshot).

Looking at the other files on your pictures it seems that you have installed Nvidia drivers, do not know why these drivers decided to break libGL. You can try to delete broken symlink and recreate it. This time point it to existing file (like libGL.so.1).
Thank you for the help, i installed everything again. These are the log filein which i found some failled steps, nonetheless the output says that the installation is completed. Can you help me?

I'm uploading on dropbox the log.makePV since it's to big:
https://www.dropbox.com/s/qjqwzvcczd...PV.tar.gz?dl=0

Thanks in advance for your help, highly appreciated
Attached Files
File Type: gz make.log.tar.gz (5.0 KB, 1 views)
Mr.Barbato is offline   Reply With Quote

Old   March 13, 2015, 05:25
Default
  #19
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Can you please point me to the failed steps? I have searched make.log and log.makePV for errors and warnings and was not able to find any.

There is no need to tar and gzip single file, you can just gzip it. If you create archives with Nautilus' Compress functionality, just select .gz extension instead of .tar.gz (though it is not the case for multiple files and folders).
alexeym is offline   Reply With Quote

Old   March 13, 2015, 06:31
Default
  #20
New Member
 
Alessio
Join Date: Mar 2015
Posts: 5
Rep Power: 11
Mr.Barbato is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Can you please point me to the failed steps? I have searched make.log and log.makePV for errors and warnings and was not able to find any.

There is no need to tar and gzip single file, you can just gzip it. If you create archives with Nautilus' Compress functionality, just select .gz extension instead of .tar.gz (though it is not the case for multiple files and folders).
In the log.makePV:
line #11 :
sed: impossibile leggere /home/Ale/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: File o directory non esistente

#74 -->#79 :
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found

#103 --> #106 :
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found

#132, #133 :
-- Check size of __int64
-- Check size of __int64 - failed

#150,#151:
-- Looking for getsockname in socket
-- Looking for getsockname in socket - not found

#1011 --> #1016:
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Looking for include file ieeefp.h
-- Looking for include file ieeefp.h - not found
-- Looking for floor
-- Looking for floor - not found

#1027 -->#1030 :
-- Looking for pow
-- Looking for pow - not found
-- Looking for sqrt
-- Looking for sqrt - not found

#1075-->#1076:
-- Performing Test GLX_DEFINES_TYPE_GLXextFuncPtr_AS_EMPTY
-- Performing Test GLX_DEFINES_TYPE_GLXextFuncPtr_AS_EMPTY- Failed

#1081 --> #1084:
-- Performing Test GLX_DECLARES_FUNCTION_glXGetProcAddressARB_AS_EMPT Y
-- Performing Test GLX_DECLARES_FUNCTION_glXGetProcAddressARB_AS_EMPT Y - Failed
-- Performing Test GLX_DECLARES_FUNCTION_glXGetProcAddress_AS_EMPTY
-- Performing Test GLX_DECLARES_FUNCTION_glXGetProcAddress_AS_EMPTY - Failed

and many others, but maybe are of minor impotance.
Mr.Barbato 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
[OpenFOAM.org] Problems installing OpenFOAM 2.1.0 on CentOS 6.2 svinaya OpenFOAM Installation 1 December 23, 2016 09:47
Bug for install OpenFOAM 2.3.0 under redhat 6.5 jordanjo OpenFOAM Installation 1 August 5, 2014 13:42
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 12:32


All times are GMT -4. The time now is 01:21.