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

[OpenFOAM.com] OF1812 in Centos 7: "IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2020, 04:50
Default 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: 16
fsifsi is on a distinguished road
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
fsifsi is offline   Reply With Quote

Old   May 7, 2020, 05:25
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick answer: As root run:
Code:
yum install zlib-devel
fsifsi likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 7, 2020, 17:35
Default
  #3
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: As root run:
Code:
yum install zlib-devel
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
fsifsi 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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
[Other] CentOS 6.7 - Paraview - X Error: BadDrawable Vyssion OpenFOAM Installation 2 May 1, 2016 17:55
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
[snappyHexMesh] sHM: FATAL ERROR: More than six unsigned transforms detected Djub OpenFOAM Meshing & Mesh Conversion 0 July 15, 2014 04:43
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 19:07.