I was trying to build HTK using Ubuntu 11.04.

These are the commands I used:

sudo ./configure 
make all

I immediately get the error:

X11/Xlib.h: No such file or directory

So when I try to install libX11-dev by using:

sudo apt-get install libX11-dev

I got the following error:

Unable to locate package libX11-dev

I'd appreciate some help on this.


That's because the file is named libx11-dev

synaptic would be a good thing to have installed & to use for such activities

  • Is this true for present versions of OS (e.g. Ubuntu 16.04 or 17.04)? – phenomenon Feb 8 '18 at 4:05
  • the name remains the same – doug Feb 8 '18 at 11:33
  • For anyone who didn't see it right away, the difference is in the case (all lowercase letters.) And if this doesn't help, this thread might. – Fabien Snauwaert Oct 18 '18 at 12:51

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.