zlib is already there in the NDK.
Answer from Mark Adler on Stack OverflowTermux , zlib header must be installed problem issue
Desktop experience through Termux
Problems installing python with pyenv in termux - Stack Overflow
How to add custom repository?
Why this problem occurred even zlib install and add path also. I can't overcome from the issue, please help me
A bit of hacking needed but I am able to get Obsidian working on my phone through Termux. This gives me desktop-ish experience while on the go.
I just had the same issue trying to install some dependencies for compiling Ruby.
The easiest way out of this misery is to note down the package and version on the second to last line: zlib1g and 1:1.2.8.dfsg-2ubuntu4, then issue the following command:
$ sudo apt install zlib1g=REQUIRED_VERSION
Replace REQUIRED_VERSION with the value from the apt-get install output from when you tried to install it previously. In this case, the value would be zlib1g=1:1.2.8.dfsg-2ubuntu4.
This will downgrade zlib1g to the required version, and the install should succeed afterwards.
Try examine with this :
sudo aptitude install libssl-dev
Get the message :
The following packages have unmet dependencies:
zlib1g-dev : Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-
2ubuntu4.1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libssl-dev [Not Installed]
2) zlib1g-dev [Not Installed]
Accept this solution? [Y/n/q/?]
Then 'e' and downgrade your zlib1g-dev.
Does that fix your problem?
zlib1g is not a linux command/executable binary.
zlib1g is a library and zlib1g-dev are headers for c/c++. You need to add linker flag -lz when compiling so it will include zlib.
I have installed the zlib1g...
sudo apt install build-essential libpcre3 libpcre3-dev libssl-dev
- You didn't installed
zlib1g.zlib1gis calledzlib1gnotlibpcreorlibssl, installed withsudo apt install zlib1g, or withzlib1g-devif you want to develop something withzlib1g-dev. zlib1gis a library not an executable, which means it is used to put there, waiting for other executable or library to call it, not waiting for calling from a terminal command. You should detect an library by writing a program that#includes it or using a package manager command.