|
[Sponsors] |
[OpenFOAM.org] Problem during OpenFOAM 5 installation, zconf.h: no such file |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 11 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick questions:
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 11 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 11 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] OpenFOAM Installation for navalFoam | sachinlb | OpenFOAM Community Contributions | 22 | July 28, 2017 05:26 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 01:41 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |