forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

make: *** /usr/src/linux: No such file or directory. Stop.

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging
View previous topic :: View next topic  
Author Message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sun Apr 01, 2007 10:49 pm    Post subject: make: *** /usr/src/linux: No such file or directory. Stop. Reply with quote

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
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Mon Apr 02, 2007 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Arne Anka
Xanspiration
Xanspiration


Joined: 21 Mar 2004
Posts: 4186
Location: Stockholm, Sweden

PostPosted: Mon Apr 02, 2007 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Mon Apr 02, 2007 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Mon Apr 02, 2007 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Mon Apr 02, 2007 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Mon Apr 02, 2007 3:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Arne Anka
Xanspiration
Xanspiration


Joined: 21 Mar 2004
Posts: 4186
Location: Stockholm, Sweden

PostPosted: Mon Apr 02, 2007 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Mon Apr 02, 2007 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
redrum
Xandros Community Moderator
Xandros Community Moderator


Joined: 05 Apr 2004
Posts: 2765
Location: Rapid City, South Dakota

PostPosted: Mon Apr 02, 2007 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Arne Anka
Xanspiration
Xanspiration


Joined: 21 Mar 2004
Posts: 4186
Location: Stockholm, Sweden

PostPosted: Mon Apr 02, 2007 7:05 pm    Post subject: Reply with quote

TekMate wrote:
Now is that part of the LSB or a Xandros/Debian thing?


No, its a linux kernel thing.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Apr 03, 2007 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group