5

I recently formatted my PC and reinstalled Ubuntu 13.04 via Wubi in Windows.

And after updates I'm getting this error:

basel@ubuntu:~/Desktop/qemu-1.6-test$ ./configure --cross-prefix=i586-mingw32msvc- --prefix=/home/basel/Desktop/qemu-1.6-test

ERROR: zlib check failed
       Make sure to have the zlib libs and headers installed.

How should I proceed?

7

You don't have the headers/libraries to build qemu. The easy way to solve this situation is doing:

sudo apt-get --no-install-recommends -y build-dep qemu

Now, to solve that message:

sudo apt-get install zlib1g-dev
  • Just curious... why did you say "--no-install-recommends"? – Phani Oct 10 '14 at 0:52
  • @Phani The one that actually solves the problem (error message) is the second one. The first is to prepare a minimal build environment for building qemu. – Braiam Oct 10 '14 at 0:54
  • I get that. but I am curious why you did not consider the recommended packages. Is there usually no added value in installing such recommended packages? – Phani Oct 10 '14 at 1:01
  • @Phani the build-dep command should pull all the build dependencies already. There isn't any significant gain of installing more than necessary, making apt to install recommended packages of the build dependencies themself. – Braiam Oct 10 '14 at 2:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.