How to solve the zlib.h missing problem without root right
I want to build OpenFOAM 2.2.0 on my workstation. But it has to be say that I do not have the root right and the administrator is reluctant to give me the right.
The first error occurred is "fatal error: zlib.h: No such file or directory."
I know that is definitely because the missing of zlib-dev. But since I have no root right, I download zlib source and install it with custom path.
I tried to set the CPPFLAGS as the zlib include directory and even set the LD_LIBRARY_PATH as the libz.so as suggested by this post
How to solve this zlib.h missing problem without root right?
Unfortunately that quoted post is incorrect. The variable "LD_LIBRARY_PATH" is only meant for paths to the library files, not for specifying the paths to the files themselves.
So, for the library file itself ("libz.so"), the correct way to do this is:
If this doesn't work, then you can try another quick hack:
This really works.
I tried the first option and it works. So I did not go further.
Thank you, Bruno.:)
|All times are GMT -4. The time now is 22:02.|