Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I do dpkg -i

I see zlibc and libgcrypt11 in the installed applications' list. But when I compile a c program having <zlib.c> or <gcrypt.c> it gives this error:

no such file or directory

Are they really installed? Or they need to be added in gcc's path? If so what is the path of there header files?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

When compiling you also need the development files, such as header files, for the required libraries. These generally live in separate packages. In this case that translates into you also needing the packages libgcrypt11-dev and zlib1g-dev.

share|improve this answer
andol, You simply Rock !!! Thanks man that worked and compiled nicely !!! So generally -dev is for the header files(and other needful files) –  Sam Nov 1 '12 at 16:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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