Gambas2 need zlib to compile application: where is Zlib?

Asked by Uqbar on 2010-09-13

I need to compile an application which depends upon Zlib package.
I've tried to search but none of the "candidates" says "this is Zlib".

# apt-cache search Zlib | sort
advancecomp - Raccolta di utilità per la ricompressione
apf-client - Client for Active Port Forwarding
apf-server - Server for Active Port Forwarding
cl-salza - Common Lisp package to write compressed data
dact - Multi-algorithm compression
dmg2img - Tool for converting compress dmg files to hfsplus images
fp-units-base - Free Pascal - base units
fp-units-misc - Free Pascal - miscellaneous units
gambas2-gb-compress-bzlib2 - The Gambas bzlib2 component
gambas2-gb-compress-zlib - The Gambas zlib compression component
haskell-zlib-doc - Compression and decompression in the gzip and zlib formats; documentation
lib32z1 - compression library - 32 bit runtime
lib32z1-dev - compression library - 32 bit development
libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)
libcoin40c2 - high-level 3D graphics kit with Open Inventor and VRML97 support - runtime
libcoin60 - high-level 3D graphics kit implementing the Open Inventor API
libcompress-raw-zlib-perl - interfaccia a basso livello per la libreria di compressione zlib
libcompress-zlib-perl - pacchetto fittizio di transizione per Compress::Zlib
libcryptokit-ocaml - cryptographic algorithm library for OCaml - runtime
libcryptokit-ocaml-dev - cryptographic algorithm library for OCaml - development
libghc6-digest-dev - efficient cryptographic hash implementations for bytestrings
libghc6-digest-doc - efficient cryptographic hash implementations bytestrings; documentation
libghc6-digest-prof - efficient cryptographic hash implementations bytestrings; profiling library
libghc6-zlib-dev - Compression and decompression in the gzip and zlib formats
libghc6-zlib-prof - Compression and decompression in the gzip and zlib formats; profiling libraries
libio-compress-perl - IO::Compress modules
libio-compress-zlib-perl - Transitional dummy package for IO::Compress::Zlib
libio-zlib-perl - IO:: style interface to gzip/zlib compressed files/handles
libjzlib-java - reimplementation of zlib in pure Java
liblz-dbg - data compressor based on the LZMA algorithm (debug)
liblz-dev - data compressor based on the LZMA algorithm (development)
liblz0 - data compressor based on the LZMA algorithm (library)
libmng-dev - M-N-G library (Development headers)
libmng1 - libreria Multiple-image Network Graphics
libnifti1 - IO libraries for the NIfTI-1 data format
libnifti1-dev - IO libraries for the NIfTI-1 data format
libpnglite-dev - lightweight C library for loading and writing PNG images
libruby - Libraries necessary to run Ruby 1.8.x
libruby1.8 - Libraries necessary to run Ruby 1.8
libwww-mechanize-gzip-perl - Perl module to fetch webpages with gzip-compression
libzip-ruby1.8 - a ruby module for reading and writing zip files
libzip-ruby1.9.1 - a ruby module for reading and writing zip files
libzlcore-data - ZLibrary cross-platform development library (support files)
libzlcore-dev - ZLibrary cross-platform development library (development files)
libzlcore0.10 - ZLibrary cross-platform development library (shared library)
libzlib-ruby - pacchetto fittizio di transizione
libzltext-data - ZLibrary text model/viewer part (support files)
libzltext-dev - ZLibrary text model/viewer part (development files)
libzltext0.10 - ZLibrary text model/viewer part (shared library)
libzlui-gtk - GTK+ interface module for ZLibrary
libzlui-qt4 - Qt4 interface module for ZLibrary
libzzip-0-13 - libreria per accesso in lettura ad archivi ZIP - libreria
libzzip-dev - library providing read access on ZIP-archives - development
perl - "Practical Extraction and Report Language" di Larry Wall
perl-modules - moduli Perl base
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language
squashfs-tools - Utilità per creare ed aggiungere parti alla fine di filesystem squashfs
squashfs-tools-dbg - Tool to create and append to squashfs filesystems (debug)
tcl-trf - Tcl data transformations - runtime library
tcl-trf-dev - Tcl data transformations - development files
tcl-trf-doc - Tcl data transformations - development files
tightvncserver - software server per Virtual Network Computing.
xtightvncviewer - virtual network computing client software for X
yorick-z - zlib, jpeg and png support for the Yorick language
zlib-bin - libreria per la compressione - programmi d'esempio
zlib1g - libreria per la compressione - eseguibili
zlib1g-dbg - libreria di compressione - sviluppo
zlib1g-dev - libreria di compressione - sviluppo
zlibc - libreria C per auto-decompressione al volo
zziplib-bin - Libreria per l'accesso in lettura agli archivi ZIP - binari

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu zlib Edit question
Assignee:
No assignee Edit question
Solved by:
Uqbar
Solved:
2010-09-13
Last query:
2010-09-13
Last reply:
Uqbar (uqbar) said : #1

zlib1g-dev is the package, but it's description is not mentioning what it actually is.
I'll open a bug on this.

aptitude search zlib

get this result

zlib1g-dev

so install this package...

Uqbar (uqbar) said : #3

For the sake of precision:

~ sudo aptitude search zlib
p gambas2-gb-compress-bzlib2 - The Gambas bzlib2 component
p gambas2-gb-compress-zlib - The Gambas zlib compression component
p haskell-zlib-doc - Compression and decompression in the gzip and zlib formats; documentation
p libcompress-raw-zlib-perl - low-level interface to zlib compression library
p libcompress-zlib-perl - Transitional dummy package for Compress::Zlib
p libghc6-zlib-dev - Compression and decompression in the gzip and zlib formats
v libghc6-zlib-dev-0.5.2.0-d3bd7 -
v libghc6-zlib-doc -
p libghc6-zlib-prof - Compression and decompression in the gzip and zlib formats; profiling lib
v libghc6-zlib-prof-0.5.2.0-d3bd7 -
p libio-compress-zlib-perl - Transitional dummy package for IO::Compress::Zlib
p libio-zlib-perl - IO:: style interface to gzip/zlib compressed files/handles
p libjzlib-java - reimplementation of zlib in pure Java
p libzlib-ruby - transitional dummy package
v libzlib-ruby1.8 -
i zlib-bin - compression library - sample programs
i zlib1g - compression library - runtime
p zlib1g-dbg - compression library - development
i zlib1g-dev - compression library - development
p zlibc - An on-fly auto-uncompressing C library

Which is not much different from my original report.

Shany (mirshany) said : #4

talpur@talpur-OptiPlex-380:~$ sudo apt-get install zlib-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package zlib-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'zlib-dev' has no installation candidate
talpur@talpur-OptiPlex-380:~$ zlib1g-dev
zlib1g-dev: command not found

how to fix it

Uqbar (uqbar) said : #5

2 years and 4 releases later, the problem is not there any more.