Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 19 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

 
discard

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.