Operating System - Linux
1839616 Members
2547 Online
110151 Solutions
New Discussion

Re: PSP 7.60, RHEL4 update4, kernel source code

 
Seth Kaplan
Advisor

PSP 7.60, RHEL4 update4, kernel source code

I'm trying to install the PSP 7.60 on RHEL4 update 4 and am getting the following message:



The HP ProLiant Linux Deployment Utility requires source code
for the 2.6.9-42.0.3.ELsmp kernel be available for building and installing
certain drivers included in this bundle.
The directory, /lib/modules/2.6.9-42.0.3.ELsmp/build, is either missing, or is empty.

Kernel source code may also be made available via NFS from a
remote system.

Do you wish to continue? [Y] n

Please install the RPM package for the 2.6.9-42.0.3. kernel source code,
and restart the HP ProLiant Linux Deployment Utility.

However RedHat is telling me the following:

In Red Hat Enterprise Linux 4, The kernel-devel package includes the kernel headers files and you no longer require the kernel source package to build a third party kernel module. To install the kernel-devel package run the following command as root user in a terminal:

#up2date kernel-devel

If you require the kernel source package for reasons other than building a kernel module, you can obtain it in Red Hat Enterprise Linux 4 by typing the following as root user in a terminal:

# up2date redhat-rpm-config rpm-build
# up2date --get-source kernel
# rpm -ivh /var/spool/up2date/kernel*.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target=i686 kernel-2.6.spec
# cp -a /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src # ln -s /usr/src/linux-2.6.9 /usr/src/linux

The kbase article below explain in detail how to install kernel source in RHEL4 http://kbase.redhat.com/faq/FAQ_85_5109.shtm

I did see a previous thread on virtually the same topic but I remain somewhat confused as to whether I do indeed need to follow the procedure to install the source code or whether I could ignore the error messages. I'm rather new to Linux so I'm suffering from ignorance based fear. Perhaps with a little nudging and experience I'll get over that.

thanks for your feedback.

Seth
3 REPLIES 3
Vitaly Karasik_1
Honored Contributor

Re: PSP 7.60, RHEL4 update4, kernel source code

you need just install kernel-devel package, you don't need built kernel-2.xxx.src.rpm package.
Steven E. Protter
Exalted Contributor

Re: PSP 7.60, RHEL4 update4, kernel source code

Shalom,

As usual I get to say Vitaly is right and elaborate.

HP's documentation is not clear, merely installing the developmment package for the smp kernel will resolve the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Seth Kaplan
Advisor

Re: PSP 7.60, RHEL4 update4, kernel source code

Thanks Vitaly and SEP. I contacted HP who insisted I needed the source code so I went ahead and followed RedHat's procedure. I still got the error messages installing the psp but I apparently was able to install the drivers. I think I'll try out a few different things before I feel totally comfortable with this but I'll chalk that up to filling the wide gaps in my knowledge. I'll post my discoveries on this thread. Hopefully I can confirm Vitaly's reply.