install Xorg headers Red Hat 6 desktop
I'm trying to compile an open-source device driver in Red Hat 6.5 Desktop and the configure script is complaining about not finding #include "xorg-server.h" in the filesystem.
I checked my distribution ("yum list xorg*") and see both "xorg-x11-server-Xorg.x86_64" and "xorg-x11-server-common.x86_64" are installed. I ran this repo-query to see where the files are don't see a link to the headers, "repoquery --list xorg-x11-server-Xorg".
I am new to Red Hat Linux, but worked in Fedora and most recently in Ubuntu. In Ubuntu I can run "sudo apt-get install xserver-xorg-dev". The header files needed are usually in /usr/include/xorg.
What's the RPM command or source repository link for Red Hat 6 to obtain the Xorg headers?
I tried "yum install xorg-x11-server-devel", but it's not in my yum list and doesn't work.
Maybe a really old issue for the community (found this on the RedHat archives, http://www.redhat.com/archives/rhl-list/2006-November/msg03968.html), but I don't see any Xorg headers anywhere on my distribution (/usr/include/xorg doesn't exist in my dist), even if I need to change the name of the include file.
Please don't tell me I need a different Red Hat license to get the source? Maybe the header files are already present in the distribution but I need to install them some other way?
Responses
Hi Alexander,
You are definitely on the right track and close to the solution.
Your system needs to be subscribed to the 'Optional' channel (as well as the RHEL 6 base channel you are subscribed to now). The package is named what you were expecting, "xorg-x11-server-devel".
/usr/include/xorg/xorg-server.h 3f21f6635e1dbfe68bbabeaa9d3f4c474fdd8fd9b4af4c0bd490d83639c99d91 2013-12-18 22:40:51 4,671 bytes
I am surprised that the package you are after isn't in the base channel as i'd expect people need the package fairly regularly for graphic card modules etc.
Alexander, do you have a Satellite server to subscribe this system to for the child software channel to (see PixelDrift's reply above)? Is your system registered with Red Hat's Subscription management and can you add the channel he mentioned?
The RPM is available via this link at Red Hat's package search.
However, it would be more efficient for you to add the channel PixelDrift mentioned above. You can use the web interface either through your Satellite Server (or access.redhat.com, see below), if you are using a Satellite server, see Paragraph 4.2.1.4.
If you are using the Customer Portal (and no satellite server) go through the Subscription/systems area of the Customer Portal,
Alexander,
Have you subscribed the system you are attempting to install the package on with RHN?
If no systems are listed in the subscription management area I suspect it is not.
Follow this page to register the system:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/registering-cmd.html
When you subscribe the system you should be able to subscribe it to the optional channel (as you can get to it through browsing the portal), this will make the packages accessible via yum.
You can either do this through the portal or by following this documentation:
https://access.redhat.com/site/solutions/11312
The real issue here is that Red Hat have moved packages into the 'optional' child channel which I think is unnecessary and wonder why they bother. It works out of the box on CentOS because they don't separate the packages out.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
