View previous topic :: View next topic |
Author |
Message |
volsung
Joined: 20 Aug 2011 Posts: 1
|
Posted: Sun Aug 21, 2011 0:19 Post subject: zlib problems |
|
|
Heya,
I'm trying to compile NWNX_Easy on my Debian 5.0.3 (64bits) machine and I'm running into some problems. I'm not used to compiling my own binaries, and I've come to a point where I don't know how to deal with this issue.
When I try to ./configure the package, I get the following:
Code: | $ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... 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... yes
checking for void *... yes
checking size of void *... 8
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible 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. |
First thing I did was making sure I had zlib's developer package installed:
Code: | $ sudo aptitude install zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done |
And...
Code: | $ whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
|
So, apparently the lib is there, isn't it? Then... why can't I compile NWNX_Easy? :<
I actually tried with NWNX_Easy after I run into the exact same problem when trying to compile NWNX from the SVN. Halp, plox?
Thank you!
Edit: Searching, and searching, I also found this:
Code: | $ dpkg -l zlib* | awk '{print $2}' | grep ^z | xargs dpkg -L | grep libz
Package `zlib1' is not installed.
Package `zlib1-dev' is not installed.
/usr/lib/libz.so.1.2.3.3
/usr/lib/libz.so.1
/usr/lib/debug/usr/lib32/libz.so.1.2.3.3
/usr/lib/debug/usr/lib/libz.so.1.2.3.3
/usr/lib/libz.a
/usr/lib/libz.so
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
|
|
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sun Aug 21, 2011 20:07 Post subject: |
|
|
The nwnx_easy bundle is actually woefully outdated and I don't plan to update it any time soon - time would be better spent improving the documentation and compile procedure of the main package. I think the problem is that you're using a 64-bit version of Debian - NWNX only works in a 32-bit environment so you're going to have to either set up a chroot or install a 32-bit kernel, headers, etc. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|