CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Error while installing OpenFOAM on RHEL 7.3 based OS (https://www.cfd-online.com/Forums/openfoam-installation/214542-error-while-installing-openfoam-rhel-7-3-based-os.html)

shashanktiwari619 February 5, 2019 01:55

Error while installing OpenFOAM on RHEL 7.3 based OS
 
1 Attachment(s)
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.

wyldckat February 5, 2019 16:33

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.

shashanktiwari619 February 20, 2019 23:55

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

wyldckat February 22, 2019 20:13

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


shashanktiwari619 March 6, 2019 00:25

Quote:

Originally Posted by wyldckat (Post 725731)
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

wyldckat March 6, 2019 19:50

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 March 7, 2019 11:57

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


All times are GMT -4. The time now is 06:37.