[Pvfs2-users] configure: error: The kernel source tree does not
appear to be 2.6
vlad
vlad at cosy.sbg.ac.at
Thu Feb 2 08:28:18 EST 2012
Hi !
On Thu, 2 Feb 2012 15:04:05 +0200, g_p g_p <g_p_java at hotmail.com> wrote:
> Hello and thanks for replying,
> i did what you told me with "locate"
> [~]$ locate
>
utsrelease.h/usr/btrfs-unstable/include/generated/utsrelease.h/usr/src/kernels/2.6.18-194.11.3.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5.centos.plus-x86_64/include/linux/utsrelease.h/usr/src/linux-2.6.35.7/include/generated/utsrelease.h/usr/src/redhat/BUILD/kernel-2.6.35.7custom/include/generated/utsrelease.h
> You are right the "utsrelease.h" is located under these directories.
> But how can --with-kernel path see that specific file?
I think, the script is looking for "utsrelease.h"
since I think, you must have built the kernel by yourself and the sources
for it seem to lie under "/usr/src/redhat/BUILD/kernel-2.6.35.7custom",
I'd try the ./configure
--with-kernel="/usr/src/redhat/BUILD/kernel-2.6.35.7custom" option.
If the kernel is not self-built and the distribution kernel, try the
penultimate line. Definitive take an ntry with the release number
matching to your current running kernel
BTW May I ask, If you, by any chance, are trying this out on a rocks
cluster
machine ?
Just curious
...
Greetings
Vlad
> previous files is the right one for loading the kernel module?
> Thanks, in advance
>> Date: Thu, 2 Feb 2012 12:31:09 +0100
>> From: vlad at cosy.sbg.ac.at
>> To: g_p_java at hotmail.com
>> Subject: Re: [Pvfs2-users] configure: error: The kernel source tree
does
>> not appear to be 2.6
>>
>> Hi!
>>
>>
>> On Wed, 1 Feb 2012 23:13:25 +0200, g_p g_p <g_p_java at hotmail.com>
wrote:
>> > Hello,
>> > i'm using pvfs2 and i'm trying to load the kernel moduleSo i did:
>> > 1st try:
>> > //print version
>> > [~] cat /proc/versionLinux version 2.6.35.7-23Mar (gcc version
>> 4.1.2
>> > (Red Hat 4.1.2-48))
>> > [~] cd /usr/pvfs-2.8.1 [pvfs-2.8.1] sudo ./configure
>> > --with-kernel=/boot/vmlinuz-2.6.35.7-23MarChecking ... (etc)ERROR:
>> > configure: error: The --with-kernel path
>> > /boot/vmlinuz-
>> > 2.6.35.7-23Mar is not a directory.
>> >
>> > 2nd try:
>> > [pvfs-2.8.1] sudo ./configure
>> > --with-kernel=/usr/src/linux-2.6.35.7Checking ... (etc)
>> > ERROR: grep:
>> > /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or
>> > directory
>>
>> If it is a distribution kernel install the corresponding kernel header
>> files (RHEL/Centos: kernel-devel-<VERSION-In-USE>, debian:
>> linux-headers-<VERSION-IN_USE>) and let the parameter --with-kernel
point
>> to that specific directory the headres get installed (which is usually
>> /usr/src, but sometimes also /usr/src/kernels/linux-...<VERSION> )
>>
>> If the matching headers are actually installed and there are not found,
>> do a "locate utsrelease.h" after updating the db with updatedb.
>>
>>
>> Good Luck!
>>
>> Greetings,
>> Vlad
More information about the Pvfs2-users
mailing list