Cannot install source

Jonathan Berry berryja at gmail.com
Sun Oct 23 18:14:12 UTC 2005


On 10/22/05, rwhart at mchsi.com <rwhart at mchsi.com> wrote:
> Hi,
>   I need to compile the module for my nVidia dualhead.  I have tried to rpm -ivh
> kernel-2.6.11-1.1369_FC4.src.rpm repeatedly.  It reports no errors.
>
>   However, then I do rpm -qa | grep kernel*  and the source is not listed.  Also
> there is no kernels subdirectory in /usr/src
>
>   I have performed a rpm --rebuildb. Any other ideas?
>
> Thanks,
>
> Bob

If you just want to compile the nvidia module, then all you need are
the kernel headers.  To get those, you need to install the
kernel-devel rpm, not the kernel src.rpm.  Also, I highly suggest that
you update your system as that is a rather old kernel.  Note that
doing an rpm -ivh on a src.rpm is completely different from doing it
on a normal rpm.  If you want to whole kernel source code (which you
do not need for the above) you must perform more steps to get that
from the src.rpm.  Please note that all of this has been documented in
the release notes and many times in the list archives.  Well, at least
the part about getting the whole kernel source is in the release
notes, it looks like kernel-devel is not clearly mentioned.

Command to update system:
yum update

Command to install kernel-devel:
yum install kernel-devel

Jonathan




More information about the users mailing list