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

[OpenFOAM.org] Problem during OpenFOAM 5 installation, zconf.h: no such file

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2017, 03:48
Default Problem during OpenFOAM 5 installation, zconf.h: no such file
  #1
New Member
 
Join Date: Sep 2014
Posts: 6
Rep Power: 11
hosseinfathi is on a distinguished road
Dear Foamers,

I am trying to compile the source pack of OpenFOAM 5, but encountered an error:

---------------------
lnInclude/zlib.h:33:25: fatal error: linux/zconf.h: No such file or directory
compilation terminated.
---------------------

Please help how to get rid of this annoying error?

Best,
Hossein
hosseinfathi is offline   Reply With Quote

Old   August 25, 2017, 14:58
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 questions:
  1. Which Linux Distribution and version are you using?
  2. Which installation instructions are you following?
__________________
wyldckat is offline   Reply With Quote

Old   August 26, 2017, 02:39
Default
  #3
New Member
 
Join Date: Sep 2014
Posts: 6
Rep Power: 11
hosseinfathi is on a distinguished road
Dear Bruno,

Thanks for your consideration. Actually, I had copied zlib.h in OpenFOAM directory to fix the problem of paraview compilation. By removing this file OpenFOAM 5.0 was compiled very well.

However, I still have problem in using paraview 5.4. In spite of complete compilation of paraview, when I input 'paraFoam' in OpenFOAM 5.0, the following error appears in my terminal:

--------------------------------------------------------------------------
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PVReaders
./Allwclean
./Allwmake
--------------------------------------------------------------------------

Do you know which mistake I made during the compilation of paraview? Hope to hear from you soon.

Best,
Hossein
hosseinfathi is offline   Reply With Quote

Old   August 26, 2017, 16:01
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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: Run the commands that the error message tells you, in order to build OpenFOAM's add-on reader:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PVReaders
./Allwclean
./Allwmake
wyldckat is offline   Reply With Quote

Old   August 30, 2017, 05:08
Default
  #5
New Member
 
Join Date: Sep 2014
Posts: 6
Rep Power: 11
hosseinfathi is on a distinguished road
Thanks for your reply Bruno.

As you mentioned, I followed the commands:

cd $FOAM_UTILITIES/postProcessing/graphics/PVReaders
./Allwclean
./Allwmake

It solved the last error but, I still have problem with paraFoam. When I run it, the following error happens:

------------------------------------------------------------------------------------------
libprotobuf FATAL /home/hossein/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/ThirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.3.0. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-ui6vjS/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".)
Aborted (core dumped)
-------------------------------------------------------------------------------------------

It relates to libprotobuf, do you know how I can fix it?

Best,
Hossein
hosseinfathi is offline   Reply With Quote

Old   September 2, 2017, 06:53
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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: That error message is identical to the one reported here: https://bugs.openfoam.org/view.php?id=2673

In the last comment, you will see my report on why this happens and how to fix it.
wyldckat is offline   Reply With Quote

Reply

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
[Other] OpenFOAM Installation for navalFoam sachinlb OpenFOAM Community Contributions 22 July 28, 2017 06:26
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41


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