|
[Sponsors] |
[OpenFOAM.com] OF1812 in Centos 7: "IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 7, 2020, 05:50 |
OF1812 in Centos 7: "IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h"
|
#1 |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 17 |
Dear Bruno
I install OF1812 in Centos 7, facing same issues as: In file included from db/IOstreams/gzstream/gzstream.C:29:0: db/IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h: No such file or directory #include <zlib.h> ^ compilation terminated. In file included from db/IOstreams/Fstreams/IFstream.C:28:0: lnInclude/gzstream.h:35:18: fatal error: zlib.h: No such file or directory #include <zlib.h> ^ compilation terminated. I downloaded zlib-1.2.11 and install, but it does not help. Could you give me some hints, please ! Thanks |
|
May 7, 2020, 06:25 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: As root run:
Code:
yum install zlib-devel
__________________
|
|
May 7, 2020, 18:35 |
|
#3 |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 17 |
Appreciated your quick reply !
I can pass the zlib issue, then facing other in compile OF libraries as: Compile OpenFOAM libraries wmakeLnInclude: linking include files to OpenFOAM/lnInclude wmakeLnInclude: linking include files to OSspecific/POSIX/lnInclude wmake dummy wmake dummy wmake mpi wmake mpi found <sys/inotify.h> -- enabling inotify for file monitoring. wmake libo (POSIX) wmake OpenFOAM ....... /platforms/linux64Gcc48DPInt64Opt/lib/libOpenFOAM.so /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[Other] CentOS 6.7 - Paraview - X Error: BadDrawable | Vyssion | OpenFOAM Installation | 2 | May 1, 2016 18:55 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
[snappyHexMesh] sHM: FATAL ERROR: More than six unsigned transforms detected | Djub | OpenFOAM Meshing & Mesh Conversion | 0 | July 15, 2014 05:43 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |