install Xorg headers Red Hat 6 desktop

Latest response

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,

Here are the instructions for adding channels at the Red Hat Portal access.redhat.com using an account with at minimum the Organizational Administrator role assigned

  • My Red Hat subscription manager doesn't list the "Optional" channel as an option.

  • When I go to the Subscription/systems area of the Customer portal, no systems are listed.

  • I can manually download the RPM for xorg-x11-server-devel from the web link, but I have failed dependencies, I guess I'd need to manually install all the various dependencies (19 of them, with whatever dependencies they have), but how to search the Red Hat web site to find them all?

Since last week, I installed CentOS 6.5 and experienced none of these problems as

yum install xorg-x11-server-devel

works out of the box.

This seems like a simple and basic sales question for the Red Hat team. I am disappointed that the sales rep I've contacted at Red Hat answers that the question is too complicated and requires an upgrade of the contract support level. My first experience with Red Hat thus far is rather negative.

Still, I'd like to figure this out and sure there is a simple answer.

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.

Thanks for staying with me PixelDrift and Remmele,

In case anyone else ever has this problem, here are the steps I needed to follow:

  1. Upgrade subscription from Desktop to Workstation

  2. Find the specific name of the channel

When I go to the "Systems" or "Virtual Systems" list everything (still) is blank for me even though my system was and is subscribed and registered. None of the various links or instructions I followed to attempt to add my already subscribed and registered system to this System or Virtual System list worked.
The solution for me was to click on the "Software Channel Entitlements" option under "General" "Entitlements" on the left side of the Classic Subscription Management tab, then scroll through the list of 94 different optional "software channel entitlements", find the one recommended, listed on the second page:
"Red Hat Enterprise Linux Workstation Optional (v.6)",
then click for my install (x86_64), direct link here, to find the specific name for the channel,

  1. ** Enable the channel at the command line**

typing:

sudo yum-config-manager --enable rhel-x86_64-workstation-optional-6

and then finally this works:

sudo yum install xorg-x11-server-devel.x86_64

It would be nice in the future if there were an easier way in RHEL 6+ to determine what channels are needed for various RPM's that otherwise aren't visible via repoquery, maybe add this as an optional parameter for the repoquery or yum-config-manager command somehow.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.