What distro+version is this?
If this is RHEL or a derivative eg Fedora, Centos, Scientific Linux, then as root
Code:
yum install xorg-x11-devel
will install the correct version and any required dependencies for you.
Don't try to install random rpms unless you really know what you are doing.