This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

missing zlib compression library for compression module

Old posts that have not been replied to for several years.
Locked
l
levts

missing zlib compression library for compression module

Post by levts »

Hi all,

i wonder me why there is no compression module
compiled. zlib is installed on my system and
working well (i think). Its an eggdrop1.6.15
on SuSE8.1 with TCL8.4. The Bot is running well.

any suggestions or hints ?

thx in advance
tom


./configure
running in eggdrop mode.
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gzopen in -lz... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for zlib.h... (cached) no
configure: warning:

Your system does not provide a working zlib compression library. The
compress module will therefore be disabled.

checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
creating ./config.status
creating Makefile
creating compress_config.h
compress_config.h is unchanged
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

I have exactly the same problem at Debian 2.6.9.

I have installed zlib1g, zlib1g-dev and zlibc, and:

robot:~# locate zlib.h
/usr/include/linux/zlib.h
/usr/include/zlib.h
robot:~#

Configure has exactly the problem reffered above...Any help would be extremely usefull, just to find out what goes wrong!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you don't have zlib installed in default places (compiler/linker default search paths: /usr/include, /usr/lib, /usr/local/include, /usr/local/lib)

solution:

use the environment variable CFLAGS to specify location of header zlib.h: -I/path/to/your/zlib/header

use the environment variable LDFLAGS to specify location of library archive libz.a (or libz.so): -L/path/to/your/zlib/library

(or do a sane zlib install ;)
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

Errrr....If u see my message, when I locate it, locate founds it at /usr/include. I did the same trick I did with the tcl, edit /etc/ld.so.conf and put there /usr/include, and run "ldconfig" , it still denied to play...I can't imagine what the f*ck is causing that thing....If anyone knows...!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

I already explained to you "what the f*ck is causing that thing"

it's not only the header, the library itself is also checked (the configure script tests whether it can compile & link against libz.so using gzopen())

if you are unsure how to use CFLAGS/LDFLAGS to tell the configure script where your stuff is located (this method applies to other misplaced libraries as well), ask again
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

btw ld.so.conf has nothing to do with /usr/include, it specifies library locations searched by the linker/loader
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

Thanks a lot for your interest :)

Yes I would like to ask u how exactly I will use these flags, and tell you that the problem is at make iconfig. It is the script that compress.mod runs, not the general ./configure script.

I would like to mention that the problem DIDN't exist! Something happened meanwhile...I have re-installed zlib1g, zlibc and zlib1g-dev (it is quite easy, Debian rulez :P ) but the problem STILL exists!

Thanks a lot :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yeah I know that the problem is with compress.mod's configure

if your login shell is bash/ksh, issue the following commands:

$ export CFLAGS=-I/path/to/your/zlib/header
$ export LDFLAGS=-L/path/to/your/zlib/library

if your login shell is csh/tcsh:

% setenv CFLAGS -I/path/to/your/zlib/header
% setenv LDFLAGS -L/path/to/your/zlib/library

and then rerun make iconfig
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

debmond,

Look what happened:

I set the environmentals, and tried "make iconfig". It told me that "New Environmental have been set, please run make distclean and start over"

I did it, then it didn't start over at anyway...told me that there was no rule to "make distclean". What I did?

1)rm -rf eggdrop1.6.17/
2)wget geteggdrop.com ; tar xfz eggdrop1.6.17.tar.gz
3)apt-get install bin86 make patch build-essential
4)./configure
5)make iconfig

Everything went perfectly. I don't know what exactly fix it, but it work :)

Thanks for your time:)

P.S: I will soon upload a user-friendly manual for users who use Debian...It is quite difficult for newbies to find what goes wrong with eggdrop and the best Linux distro :P Cu :)
Locked