|
[Sponsors] |
[OpenFOAM.org] Problem during OpenFOAM 5 installation, zconf.h: no such file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 10, 2017, 03:48 |
Problem during OpenFOAM 5 installation, zconf.h: no such file
|
#1 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 12 |
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 |
|
August 25, 2017, 14:58 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick questions:
__________________
|
|
August 26, 2017, 02:39 |
|
#3 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 12 |
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 |
|
August 26, 2017, 16:01 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 |
|
August 30, 2017, 05:08 |
|
#5 |
New Member
Join Date: Sep 2014
Posts: 6
Rep Power: 12 |
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 |
|
September 2, 2017, 06:53 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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. |
|
|
|
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 |