What is the first error message? Do you have X11 headers installed?