[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I have no /usr/src/linux/ sources



On Sat, Sep 18, 2004 at 06:03:01AM -0700, Eric Dickner wrote:
> I am trying to compile some <foo>.src.rpm files.  When
> I try to do this they look for headers under the
> /usr/src/linux link. I installed linux from CD's
> originally and they didn't put anything there...I
> don't even have that link.
> 
> I downloaded a source kernel from kernel.org and many
> of the instructions I found told me to put the source
> there...BUT the readme from kernel.org specifically
> told me NOT to put it there.  They said something
> about how the source from the "kernel du jour" was not
> what was supposed to be there.  Of course, I threw out
> all those instructions on recompiling kernels and
> followed the readme from those folks.
> 
> As a result I still have nothing there except the RPM
> directories.  Any effort to"make" the .rps results in
> them looking for these headers.
> 
> What am I missing here, besides these .h files?

Nothing.

How to cope:


# mkdir /usr/src/linux
# mkdir /usr/src/linux/include

Now the apps -I/usr/src/linux/include won't do anything, but they will
still find the kernel headers because a set of known-good kernel
headers is installed in /usr/include by libc6-dev.

-- 
The world's most effective spam filter:
        ln -sf /dev/full /var/mail/$USER



Reply to: