LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2004, 12:39 PM   #1
adelaideyip
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
How to find Linux source directory?


Hi,

How can you find the Linux source directory path on Red Hat Linux 9?

Thanks in advance,
Adelaide
 
Old 08-20-2004, 12:47 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,167

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Sources from Red Hat are put into /usr/src, if you have them installed.
 
Old 08-20-2004, 01:02 PM   #3
adelaideyip
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm, that's what I thought. Normally it is /usr/src/linux, but on our system it's /usr/src/redhat.

I am trying to configure and install linux-wlan-ng for Netgear MA111 Wireless USB adapter on Red Hat 9. It asks where the Linux source directory is (which I specified as /usr/src/redhat) otherwise it will try to find it, but each time I get this error:

Linux source directory [/usr/src/linux]: /usr/src/redhat
Linux source tree /usr/src/redhat is incomplete or missing!
See the HOWTO for a list of FTP sites for current kernel sources.
Configuration failed.

Any ideas on this? (This reply is probably more suitable for Linux Networking forum, isn't it?)
 
Old 08-20-2004, 03:34 PM   #4
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
If you have a symbolic link from /usr/src/linux to /usr/src/redhat - and you are still getting this error - I would click on over to kernel.org, and get some new sources.....
 
Old 08-20-2004, 04:01 PM   #5
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-17, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 175

Rep: Reputation: 31
/usr/src/redhat just contains a list of folders, but they don't contain any files. Since you don't seem to have any other folders in the /usr/src directory, it looks like you don't have any source files. You'll probably have to get some sources.
 
Old 08-20-2004, 05:37 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,167

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Do you have the kernel-source package installed (do rpm -q kernel-source). IIRC the kernel source is not installed by default. You'll need to install it if you don't have it.
 
Old 08-20-2004, 05:43 PM   #7
adelaideyip
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

Thanks so much for all of your replies. They were all helpful and prompted me to try new things.

And, yes, I didn't have the kernel-source installed. I thought that if the kernel was installed (i.e. rpm -qv kernel) then it must include the kernel-source. Anyways, I ended up downloading the latest kernel source version from ftp://ftp.kernel.org and created a soft link from the untarred directory to /usr/src/linux (i.e. ln -s linux-<kernel-source-version> linux) to get the linux-wlan-ng installed.

I guess 1/2 the battle's over thanks to all of you. ) [ I'm still trying to get the wireless usb adapter working :S ]

Cheers,
Adelaide
 
Old 08-20-2004, 05:58 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,167

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
If you use the kernel sources that don't correspond to the kernel you're actually running (see uname -r to determine which Linux kernel version you're running), you might run into weird problems with drivers. It's probably best to install your distro's kernel sources for that reason, particularly since RH hacks up the kernels they release in their distros.
 
  


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
linux source directory? axemanW Red Hat 3 10-15-2004 05:01 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 09:37 PM
Linux Source Directory WindowsVeteran Linux - Software 2 03-30-2004 08:14 AM
Linux Source Directory? Rv5 Red Hat 2 09-01-2003 05:29 PM
Linux Source Directory Buckmaster Linux - Newbie 1 06-20-2003 12:37 PM


All times are GMT -5. The time now is 03:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration