Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compile fuse problems

224 views
Skip to first unread message

cerr

unread,
May 19, 2009, 5:26:52 PM5/19/09
to
Hi There,

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

Dave Gibson

unread,
May 19, 2009, 6:03:35 PM5/19/09
to
cerr <ron.e...@gmail.com> wrote:
> Hi There,
>
> 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/.

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

darklight

unread,
May 20, 2009, 2:31:34 AM5/20/09
to
Dave Gibson wrote:

as above looks like you don't have the kernel-source installed.

cerr

unread,
May 20, 2009, 2:52:15 PM5/20/09
to
On May 19, 3:03 pm, dave+news...@gibson-hrd.abelgratis.co.uk.invalid
(Dave Gibson) wrote:

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/

J.O. Aho

unread,
May 20, 2009, 4:26:12 PM5/20/09
to
cerr wrote:

> === 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

0 new messages