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

[OpenFOAM.org] Error while installing OpenFOAM on RHEL 7.3 based OS

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

Like Tree4Likes
  • 2 Post By wyldckat
  • 1 Post By wyldckat
  • 1 Post By shashanktiwari619

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2019, 02:55
Default Error while installing OpenFOAM on RHEL 7.3 based OS
  #1
New Member
 
Shashank
Join Date: Sep 2014
Posts: 28
Rep Power: 8
shashanktiwari619 is on a distinguished road
While trying to install OF 5.x. I am getting following error

Code:
common_file_uncompress.c:65:18: fatal error: zlib.h: No such file or directory
 #include "zlib.h"
while running the command
Code:
./Allwmake > log.make 2>&1
Attached is the log file containing the error that we receive

We are following the below steps for installing OpenFOAM5.x

https://openfoamwiki.net/index.php/I...7.4_.281708.29

Kindly guide us for installation.
Attached Files
File Type: txt log.make.txt (26.2 KB, 1 views)
shashanktiwari619 is offline   Reply With Quote

Old   February 5, 2019, 17:33
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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 question: Did you run the following command as root?
Code:
yum install zlib-devel
because this is what installs the file "zlib.h" that is missing in your system.
__________________
wyldckat is offline   Reply With Quote

Old   February 21, 2019, 00:55
Default
  #3
New Member
 
Shashank
Join Date: Sep 2014
Posts: 28
Rep Power: 8
shashanktiwari619 is on a distinguished road
Thanks for your reply I could get past zlib

However, I am now stuck at the next command while building Paraview. I use the command:

Code:
./makeParaView -mpi -python -qmake $(which qmake-qt4) > log.makePV 2>&1

Following is the error I get:


Code:
no qmake-qt4 in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/awplab-7920/.local/bin:/home/awplab-7920/bin)
I tried installing qt4 using yum command. But I am not able to do so. Can you suggest what can be the possible options to build paraview
shashanktiwari619 is offline   Reply With Quote

Old   February 22, 2019, 21:13
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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 questions:
  1. Wait, how did you solve the issue with zlib? Did you install it with yum?
  2. And what was the exact error message that you have gotten when you tried to install Qt4?
  3. If you are following the instructions from here: https://openfoamwiki.net/index.php/I...7.4_.281708.29 - did you really run this command?
    Code:
    yum install zlib-devel libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel \
    libpng-devel libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
    readline-devel ncurses-devel python python-devel cmake qt-devel qt-assistant \
    mpfr-devel gmp-devel
wyldckat is offline   Reply With Quote

Old   March 6, 2019, 01:25
Default
  #5
New Member
 
Shashank
Join Date: Sep 2014
Posts: 28
Rep Power: 8
shashanktiwari619 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick questions:
  1. Wait, how did you solve the issue with zlib? Did you install it with yum?
  2. And what was the exact error message that you have gotten when you tried to install Qt4?
  3. If you are following the instructions from here: https://openfoamwiki.net/index.php/I...7.4_.281708.29 - did you really run this command?
    Code:
    yum install zlib-devel libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel \
    libpng-devel libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
    readline-devel ncurses-devel python python-devel cmake qt-devel qt-assistant \
    mpfr-devel gmp-devel

Answer 1. Yes I installed it using the
Code:
yum install zlib-devel
Answer 2. The following the error message I got when installing qt using the following command
Code:
yum install qt-devel
Code:
  Transaction check error:   file /usr/lib64/libGLdispatch.so.0 from install of libglvnd-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLX.so.0 from install of libglvnd-glx-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libOpenGL.so.0 from install of libglvnd-opengl-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLESv1_CM.so.1 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLESv2.so.2 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
Answer 3. Yes I have ran all the commands. These are the commands which I was not successful in compiling (besides the above qt-devel command stated in Answer 2).


Code:
yum install libGLU-devel
Code:
Transaction check error:   file /usr/lib64/libGLdispatch.so.0 from install of libglvnd-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLX.so.0 from install of libglvnd-glx-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libOpenGL.so.0 from install of libglvnd-opengl-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLESv1_CM.so.1 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64
conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
   file /usr/lib64/libGLESv2.so.2 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64
 conflicts with file from package nvidia-375.20-x86_64.el7.1.x86_64
Code:
yum install qt-assistant
Code:
No package qt-assistant available. Error: Nothing to do
Kindly let me know what should I do to install these packages

Last edited by wyldckat; March 6, 2019 at 20:42. Reason: removed broken HTML code and replaced HTML markers for CODE markers
shashanktiwari619 is offline   Reply With Quote

Old   March 6, 2019, 20:50
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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 answers:
  1. The "qt-assistant" package is likely not necessary. I probably didn't notice that it was missing during installation, because everything else had worked without problems.
  2. As for the other problem, the package that is breaking things is "libglvnd-1:1.0.1-0.8.git5baa1e5.el7.x86_64"... so I searched online for "git5baa1e5" and found this thread: https://devtalk.nvidia.com/default/t...th-mesa-libgl/ - which indicates in post #4 there the following:
    Quote:
    I was able to install CUDA 10.0 by downloading the latest mesa and libglvnd RPMs from Red Hat.

    Describes the mesa vs libglvnd conflict:

    https://bugzilla.redhat.com/show_bug.cgi?id=1584740

    Bug fix issued after RHEL 7.6 release, with updated RPMs:

    https://access.redhat.com/errata/RHSA-2018:3059
    • I don't know if you can upgrade from RHEL 7.3 to the latest version, but if you can, that would be the simplest solution...
shashanktiwari619 likes this.
wyldckat is offline   Reply With Quote

Old   March 7, 2019, 12:57
Default
  #7
New Member
 
Shashank
Join Date: Sep 2014
Posts: 28
Rep Power: 8
shashanktiwari619 is on a distinguished road
Thanks Bruno.
Updating to RHEL 7.6 solved the problem!!!
I first uninstalled the nvidia drivers which were conflicting, using the command
yum uninstall nvidia


followed by

yum upgrade
yum update
wyldckat likes this.
shashanktiwari619 is offline   Reply With Quote

Reply

Tags
of5.x, rhel 7.3, zlib error

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
[OpenFOAM.org] Installing OpenFOAM 2.1.0 on ROCKS cluster aerospain OpenFOAM Installation 6 December 15, 2014 04:35


All times are GMT -4. The time now is 08:44.