You need to install either the XFree86 or Xorg development packages, depending on which X server you are using. You shoiuld be able to find out easily by checking your distro at
www.distrowatch.com -- the development packages should be on you install media. Please let us know what distro you are using if you need any more help figuring it out.