I'm trying to compile FUSE on my system and I'm running into problems
with the kernel sources which I have in /usr/src/linux-2.6.15.1/
kernel/.
I'm configuring it like this: ./configure --with-kernel=/usr/src/
linux-2.6.15.1/kernel/ but it wouldn't go through, it keeps telling
me:
checking kernel source directory... /usr/src/linux-2.6.15.1/kernel/
checking kernel build directory... /usr/src/linux-2.6.15.1/kernel/
checking kernel source version... Not found
configure: error:
*** Cannot determine the version of the linux kernel source.
Please
*** prepare the kernel before running this script
configure: error: ./configure failed for kernel
Why? What am I doing wrong?
Thank you,
Ron
The term "kernel source" usually refers to the whole source tree, not
just the kernel subdirectory.
> I'm configuring it like this: ./configure --with-kernel=/usr/src/
> linux-2.6.15.1/kernel/ but it wouldn't go through, it keeps telling
> me:
Try: --with-kernel=/usr/src/linux-2.6.15.1
as above looks like you don't have the kernel-source installed.
nope, getting the same :(
=== configuring in kernel (/home/ron/downloads/zfs-fuse-0.5.0/
fuse-2.7.4/kernel)
configure: running /bin/sh ./configure '--prefix=/usr/local' '--with-
kernel=/usr/src/linux-2.6.15.1' --cache-file=/dev/null --srcdir=.
configure: loading cache /dev/null
/dev/null: line 1: ./configure:: No such file or directory
checking for a BSD-compatible install... /usr/bin/install -c
checking kernel source directory... /usr/src/linux-2.6.15.1
checking kernel build directory... /usr/src/linux-2.6.15.1
checking kernel source version... Not found
configure: error:
*** Cannot determine the version of the linux kernel source.
Please
*** prepare the kernel before running this script
configure: error: ./configure failed for kernel
[root@DEVNEMS fuse-2.7.4]# ls /usr/src/linux-2.6.15.1
COPYING* MAINTAINERS* arch/ fs/ kernel/ scripts/
CREDITS* Makefile* block/ include/ lib/
security/
Documentation/ README* crypto/ init/ mm/ sound/
Kbuild* REPORTING-BUGS* drivers/ ipc/ net/ usr/
> === configuring in kernel (/home/ron/downloads/zfs-fuse-0.5.0/
> fuse-2.7.4/kernel)
> configure: running /bin/sh ./configure '--prefix=/usr/local' '--with-
> kernel=/usr/src/linux-2.6.15.1' --cache-file=/dev/null --srcdir=.
> configure: loading cache /dev/null
> /dev/null: line 1: ./configure:: No such file or directory
> checking for a BSD-compatible install... /usr/bin/install -c
> checking kernel source directory... /usr/src/linux-2.6.15.1
> checking kernel build directory... /usr/src/linux-2.6.15.1
> checking kernel source version... Not found
> configure: error:
> *** Cannot determine the version of the linux kernel source.
> Please
> *** prepare the kernel before running this script
Ar you sure the source you trying to use is configured?
just unpack the source isn't enough, you need to:
copy the configuration file for the kernel to /usr/src/linux-2.6.15.1/.config
and then run 'make oldconfig' and answer any questions you may get.
If you don't have a config file for the kernel, then you need to configure,
this is simplest done with 'make menuconfig', if you don't want to compile a
new kernel, you need to select the same options as the kernel you are running,
otherwise there is a high probability that the fuse module won't work.
It can in many cases be just simpler to install the fuse package that is
provided by your Linux distribution.
--
//Aho