2.6.18-4 mckinley source

Hi,

I have installed etch on IA-64 system. During OpenFabrics installation, the installation scripts failed with error:

ERROR: There are no sources for the 2.6.18-4-mckinley kernel installed.
Please install 2.6.18-4-mckinley kernel sources to build
RPMs on this system

How can I download and install 2.6.18-4 mckinley?

Installation script:

K_VER=${K_VER:-$(uname -r)}
...
...
# Check if kernel sources exists (needed for packages compilation)
if [ ! -d ${K_SRC} ] || [ ! -f ${K_SRC}/Makefile ]; then
echo
err_echo "There are no sources for the ${K_VER} kernel installed.
Please install ${K_VER} kernel sources to build RPMs on
this system"
echo
exit 1
fi

thanks.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

2.6.18-4 mckinley source

You need a source entry in /etc/apt/sources.list, such as

deb-src http://ftp.debian.org/debian etch main

The use

# apt-get source 2.6.18-4-mckinley

(assuming that's the name of the package) to install. You might need a kernel header package also.

kernel build options

Hi,

Thanks for your response. It provided sufficient
clues to get the kernel source and compile it.

Howerver, additional debug line in the script
indicates that it is looking for the following
build directory (K_SRC):

Checking dependencies. Please wait ...

K_SRC = /lib/modules/2.6.18-4-mckinley/build

ERROR: There are no sources for the 2.6.18-4-mckinley kernel installed.
Please install 2.6.18-4-mckinley kernel sources to build
RPMs on this system

--------

How can I customize my source build so that the above
directory (K_SRC) gets created?

thanks.

kernel build options

If that directory does not exist, then you might have to create a symlink from the kernel source to the build directory. Something like:

# ln -s /usr/src/2.6.18-3-mckinley /lib/modules/2.6.18-4-mckinley/build

kernel build options

Depending on what needs to be done, you either need (sanitized) headers only or else a fully configured source tree. To get the sanitized headers:

apt-get install linux-headers-$(uname -r)

That should also create the symlink /lib/modules/$(uname -r)/build

The '$(uname -r)' part just extracts the version info from your running kernel.

Syndicate content