LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2005, 06:49 PM   #1
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Rep: Reputation: 30
Question Unable to find -lz (zlib). RPM is installed...????


Okay, real interesting problem here. I'm compiling nwnx 2 into Mandrake 10.1 and I'm running into this problem:
Code:
[root@agdse linnwnx2]# ./configure --prefix=/home/nwnserver --enable-debug
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... no
Unable to find -lz (zlib). Please install a zlib developer's package.
Now I've installed two packages:
  1. zlib1-1.2.1.1-3.2.101mdk.i386.rpm
  2. perl-Compress-Zlib-1.37-0.1.101mdk.i586.rpm

Both of them come with zlib.so (one uses a capital Z).

When I compile the software again, I get the same error. What gives with this.
 
Old 12-03-2005, 07:03 PM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Man, you should install zlib-devel, or how does it call in your distro.
 
Old 12-03-2005, 07:06 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Do you have both zlib and the zlib development package?

EXAMPLE:
rpm -qa|grep -i zlib
zlib-1.2.2-5
zlib-devel-1.2.2-5
<= "RPM -QA|GREP -I ZIP" SHOULD SHOW YOU BOTH OF THESE

'Hope that helps
 
Old 12-04-2005, 12:25 AM   #4
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Original Poster
Rep: Reputation: 30
Well that was a stupid mistake on my part. I thought it came included with the two rpms I got. Obviously not. Problem fixed. thanks a bunch guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an installed .rpm file Gald3r Linux - Newbie 22 09-25-2005 01:19 AM
rpm cannot find installed dependencies guitarfella Slackware 1 02-23-2005 05:24 AM
rpm can't find installed dependencies? jbeiter Linux - General 4 09-17-2004 04:53 PM
Unable to find/use Installed Packages in Vector Linux. rvijay Linux - Newbie 3 09-13-2003 05:48 PM
installed mplayer from rpm and can't find it messenjah Linux - Software 3 07-17-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration