I have installed the zlib1g and zlib1g-dev by this commands
sudo apt update
sudo apt upgrade
sudo apt install build-essential libpcre3 libpcre3-dev libssl-dev
but after I am trying to run the command but showing 'zlib1g: command not found'
zlib1g zlib1g-dev
I checked whether the zlib1g is installed or not and its showing it is already installed the latest version
plz help anyone
CodePudding user response:
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
.
CodePudding user response:
I have installed the zlib1g...
sudo apt install build-essential libpcre3 libpcre3-dev libssl-dev
- You didn't installed
zlib1g
.zlib1g
is calledzlib1g
notlibpcre
orlibssl
, installed withsudo apt install zlib1g
, or withzlib1g-dev
if you want to develop something withzlib1g-dev
. zlib1g
is 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#include
s it or using a package manager command.