View Full Version : [ubuntu_mobile] zlib error when installing FreeCiv in eeeBuntu

June 18th, 2009, 02:13 AM
Hello all,

This was just posted on Beginner Talk but got no response, so I'm moving it here.

I've just recently installed eeeBuntu Standard on a eee 1000. Everything's great, except that I can't seem to create a makefile for a release version of FreeCiv 2.1.9. After running "./configure" from the game directory, the log finishes with:
checking for gzgets in -lz... no
configure: error: Could not find zlib library.
I did when you might expect and ran "aptitude search zlib", finding the following:
i libcompress-raw-zlib-perl
i libcompress-zlib-perl
i libio-compress-zlib-perl
v libio zlib-perl
i zlib1g
Next ran "sudo apt-get install zlib1g" since this seemed the most likely suspect judging from lots of forum comments. Verified that zlib was installed, both via Synaptic and by grepping /usr. It's there and it's installed. Of course, I wouldn't be writing this if ./configure worked after all this, and it doesn't. Same error, no change, so no makefile, so no game install.

I understant that zlib is an old problem, especially it seems with Ubuntu. The Question posted a recent thread in April here at http://ubuntuforums.org/showthread.php?t=1122275&highlight=zlib1g+freeciv, but what worked for him doesn't for me.

Anyone have any solution to getting FreeCiv's config to recognize my zlib? Or is there a different zlib that needs to be installed?

Thanks in advance!

June 19th, 2009, 03:43 AM
The April FreeCiv thread you referenced suggested sudo apt-get install zlib1g-dev to install the development files, which adds a static (non-shared) version of the library (/usr/lib/libz.a) and include files such as /usr/include/zlib.h. Have you installed both the zlib1g and zlib1g-dev packages?