LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2004, 02:00 PM   #1
Veivann
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 16

Rep: Reputation: 0
where is my kernel source directory?


Hi! I'm trying to install a smartlink driver for my amr modem and it seems I must change the Makefile of this slmdm-2.7.10.

It says:
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"


I also says I must then use /lib/modules/`uname -r`/build/include instead of /usr/include/linux/

So what is the kernel source directory I should use in the command ln?

I found a directory exists such as /usr/include/linux, which has promising files such as version.h.

So should I make this link:
ln -s /usr/include/linux/ /lib/modules/2.4.22-10mdk/build/include/linux

Or should I make
ln -s /usr /lib/modules/2.4.22-10mdk/build/

Has anyone any idea?

Thanks in advance
 
Old 02-19-2004, 02:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you need to install the kernel-source rpm. everything after that should fall into place. the files will be at /usr/src/linux
 
Old 02-19-2004, 02:33 PM   #3
Veivann
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks a lot! Wasn't expecting so quick a reply! I will try that immediately
May you find your answers so easily too
 
Old 02-19-2004, 03:15 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
me? i don't have questions! i am a walking oracle of knowledge... well... maybe not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No build directory in source directory FilthMasterFlex Mandriva 5 01-12-2005 03:03 PM
Point to current kernel source directory starunj Linux - Newbie 1 10-24-2004 07:33 PM
How to install/create kernel source directory in RH acrors Red Hat 4 08-10-2004 03:37 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM
Where is the kernel source directory in Libranet? seppe Debian 1 09-21-2003 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration