| View previous topic :: View next topic |
| Author |
Message |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Sun Apr 01, 2007 10:49 pm Post subject: make: *** /usr/src/linux: No such file or directory. Stop. |
|
|
I've did a little searching and reading on the forums, and I gathered that all I needed to do to compile kernel modules and such was to install the kernel headers, which I have done. But, I get this error:
make: *** /usr/src/linux: No such file or directory. Stop.
Do I need to do that EXTRAVERSION stuff, too? Or maybe just make a symbolic link or something?
Jim _________________ I refuse to live in a country like this - and I'm not leaving. - Michael Moore |
|
| Back to top |
|
 |
TekMate Xendrosian

Joined: 20 Feb 2003 Posts: 1092 Location: MA
|
Posted: Mon Apr 02, 2007 7:02 am Post subject: |
|
|
If you installed the source from XN like I did you will find it in /usr/src as a zipped file mine is dcc-kernel-source-2.6.18.tar.bz2 you need to open this with ark and unzip it to /usr/src.
You may have to create a link from whatever folder it creates to /usr/src/linux I haven't unzipped mine yet. _________________
If you were offered the chance to learn the truth…would you take it? |
|
| Back to top |
|
 |
Arne Anka Xanspiration

Joined: 21 Mar 2004 Posts: 4186 Location: Stockholm, Sweden
|
Posted: Mon Apr 02, 2007 8:17 am Post subject: |
|
|
jimallyn
Have you tried to install dcc-kernel-headers-2.6.18-dcc-smp (I assume you have the SMP kernel installed) ?
If not, do that. It can save you a lot of headaches. Otherwise if you prefer to install the kernel sources, as TekMate said you have to create a link in /usr/src called "linux" like this
cd /usr/src
ln -s dcc-kernel-source-2.6.18 linux |
|
| Back to top |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Mon Apr 02, 2007 2:14 pm Post subject: |
|
|
| Arne Anka wrote: | | Have you tried to install dcc-kernel-headers-2.6.18-dcc-smp (I assume you have the SMP kernel installed) ? |
Yes, that's why I'm asking about this. From my reading on this forums, I gathered that it was no longer necessary to install the kernel source, just the headers. I installed the headers, but I get the message above, which is why I am asking.
Since just installing the headers is not sufficient, I guess I'll install the kernel source and make the symbolic link next. I had been led to believe this was not necessary.
Jim _________________ I refuse to live in a country like this - and I'm not leaving. - Michael Moore |
|
| Back to top |
|
 |
TekMate Xendrosian

Joined: 20 Feb 2003 Posts: 1092 Location: MA
|
Posted: Mon Apr 02, 2007 3:24 pm Post subject: |
|
|
It would depend on how the program you are compiling was written. _________________
If you were offered the chance to learn the truth…would you take it? |
|
| Back to top |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Mon Apr 02, 2007 3:40 pm Post subject: |
|
|
| TekMate wrote: | | It would depend on how the program you are compiling was written. |
Ah, so perhaps programs written to the new standard need only the headers, and this one was written to an older standard, and still requires the entire kernel source? Something like that?
Jim _________________ I refuse to live in a country like this - and I'm not leaving. - Michael Moore |
|
| Back to top |
|
 |
TekMate Xendrosian

Joined: 20 Feb 2003 Posts: 1092 Location: MA
|
Posted: Mon Apr 02, 2007 3:55 pm Post subject: |
|
|
I don't know about new verses old but if your program calls a function that needs the kernel source you will need to have it installed. _________________
If you were offered the chance to learn the truth…would you take it? |
|
| Back to top |
|
 |
Arne Anka Xanspiration

Joined: 21 Mar 2004 Posts: 4186 Location: Stockholm, Sweden
|
Posted: Mon Apr 02, 2007 5:28 pm Post subject: |
|
|
| jimallyn wrote: | Ah, so perhaps programs written to the new standard need only the headers, and this one was written to an older standard, and still requires the entire kernel source?
|
From what I know, a properly written kernel module should have a build system looking for headers in /lib/modules/2.6.18-dcc-smp/build (which is a link to /usr/src/linux-headers-2.6.18-dcc-smp or perhaps /usr/src/linux) and never directly look at /usr/src/linux.
Now, the building practice may vary a bit between major kernel version steppings, so perhaps you are right i.e. your kernel module was written for an older kernel or its building system is simply buggy. |
|
| Back to top |
|
 |
TekMate Xendrosian

Joined: 20 Feb 2003 Posts: 1092 Location: MA
|
Posted: Mon Apr 02, 2007 5:37 pm Post subject: |
|
|
| Arne Anka wrote: | | jimallyn wrote: | Ah, so perhaps programs written to the new standard need only the headers, and this one was written to an older standard, and still requires the entire kernel source?
|
From what I know, a properly written kernel module should have a build system looking for headers in /lib/modules/2.6.18-dcc-smp/build (which is a link to /usr/src/linux-headers-2.6.18-dcc-smp or perhaps /usr/src/linux) and never directly look at /usr/src/linux.
|
Now is that part of the LSB or a Xandros/Debian thing? _________________
If you were offered the chance to learn the truth…would you take it? |
|
| Back to top |
|
 |
redrum Xandros Community Moderator

Joined: 05 Apr 2004 Posts: 2765 Location: Rapid City, South Dakota
|
Posted: Mon Apr 02, 2007 5:58 pm Post subject: |
|
|
What module are you trying to build, if I may ask? _________________
Beware of the man who would deny you access to information,
for in his heart he dreams himself your master. |
|
| Back to top |
|
 |
Arne Anka Xanspiration

Joined: 21 Mar 2004 Posts: 4186 Location: Stockholm, Sweden
|
Posted: Mon Apr 02, 2007 7:05 pm Post subject: |
|
|
| TekMate wrote: | | Now is that part of the LSB or a Xandros/Debian thing? |
No, its a linux kernel thing. |
|
| Back to top |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Tue Apr 03, 2007 12:24 am Post subject: |
|
|
| redrum wrote: | | What module are you trying to build, if I may ask? |
It's called realtime, and it is used to give certain users and processes realtime access to the computer's resources. I have a sound card that has 8 audio inputs, 10 audio outputs, plus S/PDIF and MIDI inputs and outputs. I don't have to get very much of that stuff going to get audio skips, especially if I am using the JACK Audio Connection Kit.
Assuming I get that module built, I am going to take a crack at building qc-usb, a module for the QuickCam web-cam. I don't have a webcam, but someone else on the forums was needing it.
Jim _________________ I refuse to live in a country like this - and I'm not leaving. - Michael Moore |
|
| Back to top |
|
 |
|