LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-06-2004, 06:29 AM   #1
CAL
Member
 
Registered: Apr 2004
Location: California
Distribution: Fedora Core 2
Posts: 31

Rep: Reputation: 15
Finding My --kernel-source-path


I am trying to install the latest Nvidia Linux i386 drivers (v.5336) and I have come to a wall. Basically, this is what I have done:

1. Downloaded Drivers
2. Installed the kernel-source-2.4.20-30.9.i386.rpm
3. Changed my /etc/inittab file to boot into runlevel 3 (command line)
4. Exited X and ran:

sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

I still get a message saying that I should append the --source-kernel-path command. My problem now is that I cannot seem to find where these files are. I am running RedHat 9 for the record. Whenever I run the .rpm (see 2.), I cannot gather information as to exactly WHERE these files are going. Can somebody please offer some guidance. I cannot find these files, by the way, in my /usr/src directory anywhere.

Finally, exactly how is the -source-kernel-path command run anyhow? Should it look like this:

-source-kernel-path=/usr/src/linux
(where /usr/src/linux is an example path)
 
Old 04-06-2004, 07:31 AM   #2
kkj
LQ Newbie
 
Registered: Apr 2004
Location: CT
Distribution: Fedora Core 1
Posts: 28

Rep: Reputation: 15
Hrmm,
try to locate the files, by going to the find files application on the red hat menu. Type in kernal source, and you should find the directory there.
If that doesn't work, just say, and I'll try to help
 
Old 04-06-2004, 07:35 AM   #3
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
rpm -ql kernel-source

will show you all files associated with teh kernel-source hence give you the directory location
 
Old 04-06-2004, 07:48 AM   #4
CAL
Member
 
Registered: Apr 2004
Location: California
Distribution: Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for your attention guys. So here's the deal...

I ran rpm -ql kernel-source, and I get a message which says:

package kernel-source is not installed.

I am nonplussed. I have the RPM (kernel-source-2.4.20-30.9.i386.rpm), and yet whenever I double-click the icon to have it run, the installer quickly shows a progress bar, but does so too quickly for me to read what it is saying. Then, it (the dialog box) disappears, and I have no idea if it was successful or not. I suppose that it isn't because otherwise I should have these files installed. On the other hand, it does not give me any indication (via an error message) that something went wrong either. Sort of troubling.

Suggestions?

Last edited by CAL; 04-06-2004 at 07:50 AM.
 
Old 04-06-2004, 07:54 AM   #5
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
Your kernel-source is bundeled with you redhat 9 CDs.

insert the CD and run the autorun file. This will load the Add/Remove programs dialog.

scroll down to the part that says "kernel development" and click the check box.

then click update.

done your kernel will now be installed.

There are a lot of things that come with RED-HAT. People new to linux do not realise this. Have a look though the programs available on the CD sometime, there is lots of valuable stuff.

-jax
 
Old 04-11-2004, 09:26 AM   #6
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Rep: Reputation: 15
Lightbulb

Ok, i have run rpm -ql kernel-source and i have come up with a list of files.
/usr/src/linux-2.4.20-8/include/linux/sunrpc/xdr.h
/usr/src/linux-2.4.20-8/include/linux/sunrpc/xprt.h
/usr/src/linux-2.4.20-8/include/linux/swap.h
/usr/src/linux-2.4.20-8/include/linux/swapctl.h
/usr/src/linux-2.4.20-8/include/linux/synclink.h
/usr/src/linux-2.4.20-8/include/linux/sys.h
/usr/src/linux-2.4.20-8/include/linux/sysctl.h
/usr/src/linux-2.4.20-8/include/linux/sysrq.h
/usr/src/linux-2.4.20-8/include/linux/sysv_fs.h
/usr/src/linux-2.4.20-8/include/linux/sysv_fs_i.h
/usr/src/linux-2.4.20-8/include/linux/sysv_fs_sb.h
/usr/src/linux-2.4.20-8/include/linux/tcp.h
/usr/src/linux-2.4.20-8/include/linux/tcp_diag.h
/usr/src/linux-2.4.20-8/include/linux/telephony.h
/usr/src/linux-2.4.20-8/include/linux/termios.h
/usr/src/linux-2.4.20-8/include/linux/threads.h
/usr/src/linux-2.4.20-8/include/linux/ticable.h
/usr/src/linux-2.4.20-8/include/linux/time.h
/usr/src/linux-2.4.20-8/include/linux/timer.h
/usr/src/linux-2.4.20-8/include/linux/times.h
/usr/src/linux-2.4.20-8/include/linux/timex.h
/usr/src/linux-2.4.20-8/include/linux/toshiba.h
/usr/src/linux-2.4.20-8/include/linux/tpqic02.h
/usr/src/linux-2.4.20-8/include/linux/tqueue.h
/usr/src/linux-2.4.20-8/include/linux/trdevice.h
/usr/src/linux-2.4.20-8/include/linux/tty.h
/usr/src/linux-2.4.20-8/include/linux/tty_driver.h
/usr/src/linux-2.4.20-8/include/linux/tty_flip.h
/usr/src/linux-2.4.20-8/include/linux/tty_ldisc.h
/usr/src/linux-2.4.20-8/include/linux/types.h
/usr/src/linux-2.4.20-8/include/linux/udf_fs.h
/usr/src/linux-2.4.20-8/include/linux/udf_fs_i.h
/usr/src/linux-2.4.20-8/include/linux/udf_fs_sb.h
/usr/src/linux-2.4.20-8/include/linux/udp.h
/usr/src/linux-2.4.20-8/include/linux/ufs_fs.h
/usr/src/linux-2.4.20-8/include/linux/ufs_fs_i.h
/usr/src/linux-2.4.20-8/include/linux/ufs_fs_sb.h
/usr/src/linux-2.4.20-8/include/linux/uio.h
/usr/src/linux-2.4.20-8/include/linux/ultrasound.h
/usr/src/linux-2.4.20-8/include/linux/umem.h
/usr/src/linux-2.4.20-8/include/linux/umsdos_fs.h
/usr/src/linux-2.4.20-8/include/linux/umsdos_fs.p
/usr/src/linux-2.4.20-8/include/linux/umsdos_fs_i.h
/usr/src/linux-2.4.20-8/include/linux/un.h
/usr/src/linux-2.4.20-8/include/linux/unistd.h
/usr/src/linux-2.4.20-8/include/linux/usb.h
/usr/src/linux-2.4.20-8/include/linux/usbdev_fs_i.h
/usr/src/linux-2.4.20-8/include/linux/usbdev_fs_sb.h
/usr/src/linux-2.4.20-8/include/linux/usbdevice_fs.h
/usr/src/linux-2.4.20-8/include/linux/user.h
/usr/src/linux-2.4.20-8/include/linux/utime.h
/usr/src/linux-2.4.20-8/include/linux/uts.h
/usr/src/linux-2.4.20-8/include/linux/utsname.h
/usr/src/linux-2.4.20-8/include/linux/vcache.h
/usr/src/linux-2.4.20-8/include/linux/version.h
/usr/src/linux-2.4.20-8/include/linux/vfs.h
/usr/src/linux-2.4.20-8/include/linux/video_decoder.h
/usr/src/linux-2.4.20-8/include/linux/video_encoder.h
/usr/src/linux-2.4.20-8/include/linux/videodev.h
/usr/src/linux-2.4.20-8/include/linux/videotext.h
/usr/src/linux-2.4.20-8/include/linux/vmalloc.h
/usr/src/linux-2.4.20-8/include/linux/vt.h
/usr/src/linux-2.4.20-8/include/linux/vt_buffer.h
/usr/src/linux-2.4.20-8/include/linux/vt_kern.h
/usr/src/linux-2.4.20-8/include/linux/wait.h
/usr/src/linux-2.4.20-8/include/linux/wanpipe.h
/usr/src/linux-2.4.20-8/include/linux/wanrouter.h
/usr/src/linux-2.4.20-8/include/linux/watchdog.h
/usr/src/linux-2.4.20-8/include/linux/wavefront.h
/usr/src/linux-2.4.20-8/include/linux/wireless.h
/usr/src/linux-2.4.20-8/include/linux/wordops.h
/usr/src/linux-2.4.20-8/include/linux/workqueue.h
/usr/src/linux-2.4.20-8/include/linux/wrapper.h
/usr/src/linux-2.4.20-8/include/linux/x25.h
/usr/src/linux-2.4.20-8/include/linux/xattr.h
/usr/src/linux-2.4.20-8/include/linux/yam.h
/usr/src/linux-2.4.20-8/include/linux/zconf.h
/usr/src/linux-2.4.20-8/include/linux/zftape.h
/usr/src/linux-2.4.20-8/include/linux/zlib.h
/usr/src/linux-2.4.20-8/include/linux/zorro.h
/usr/src/linux-2.4.20-8/include/linux/zorro_ids.h
/usr/src/linux-2.4.20-8/include/linux/zutil.h
/usr/src/linux-2.4.20-8/include/math-emu
/usr/src/linux-2.4.20-8/include/math-emu/double.h
/usr/src/linux-2.4.20-8/include/math-emu/extended.h
/usr/src/linux-2.4.20-8/include/math-emu/op-1.h
/usr/src/linux-2.4.20-8/include/math-emu/op-2.h
/usr/src/linux-2.4.20-8/include/math-emu/op-4.h
/usr/src/linux-2.4.20-8/include/math-emu/op-8.h
/usr/src/linux-2.4.20-8/include/math-emu/op-common.h
/usr/src/linux-2.4.20-8/include/math-emu/quad.h
/usr/src/linux-2.4.20-8/include/math-emu/single.h
/usr/src/linux-2.4.20-8/include/math-emu/soft-fp.h
/usr/src/linux-2.4.20-8/include/net
/usr/src/linux-2.4.20-8/include/net/addrconf.h
/usr/src/linux-2.4.20-8/include/net/af_unix.h
/usr/src/linux-2.4.20-8/include/net/arp.h
/usr/src/linux-2.4.20-8/include/net/atmclip.h
/usr/src/linux-2.4.20-8/include/net/ax25.h
/usr/src/linux-2.4.20-8/include/net/bluetooth
/usr/src/linux-2.4.20-8/include/net/bluetooth/bluetooth.h
/usr/src/linux-2.4.20-8/include/net/bluetooth/hci.h
/usr/src/linux-2.4.20-8/include/net/bluetooth/hci_core.h
/usr/src/linux-2.4.20-8/include/net/bluetooth/l2cap.h
/usr/src/linux-2.4.20-8/include/net/bluetooth/rfcomm.h
/usr/src/linux-2.4.20-8/include/net/bluetooth/sco.h
/usr/src/linux-2.4.20-8/include/net/checksum.h
/usr/src/linux-2.4.20-8/include/net/datalink.h
/usr/src/linux-2.4.20-8/include/net/dn.h
/usr/src/linux-2.4.20-8/include/net/dn_dev.h
/usr/src/linux-2.4.20-8/include/net/dn_fib.h
/usr/src/linux-2.4.20-8/include/net/dn_neigh.h
/usr/src/linux-2.4.20-8/include/net/dn_nsp.h
/usr/src/linux-2.4.20-8/include/net/dn_route.h
/usr/src/linux-2.4.20-8/include/net/dsfield.h
/usr/src/linux-2.4.20-8/include/net/dst.h
/usr/src/linux-2.4.20-8/include/net/flow.h
/usr/src/linux-2.4.20-8/include/net/icmp.h
/usr/src/linux-2.4.20-8/include/net/if_inet6.h
/usr/src/linux-2.4.20-8/include/net/inet_common.h
/usr/src/linux-2.4.20-8/include/net/inet_ecn.h
/usr/src/linux-2.4.20-8/include/net/inetpeer.h
/usr/src/linux-2.4.20-8/include/net/ip.h
/usr/src/linux-2.4.20-8/include/net/ip6_fib.h
/usr/src/linux-2.4.20-8/include/net/ip6_fw.h
/usr/src/linux-2.4.20-8/include/net/ip6_route.h
/usr/src/linux-2.4.20-8/include/net/ip_fib.h
/usr/src/linux-2.4.20-8/include/net/ipconfig.h
/usr/src/linux-2.4.20-8/include/net/ipip.h
/usr/src/linux-2.4.20-8/include/net/ipv6.h
/usr/src/linux-2.4.20-8/include/net/ipx.h
/usr/src/linux-2.4.20-8/include/net/irda
/usr/src/linux-2.4.20-8/include/net/irda/ali-ircc.h
/usr/src/linux-2.4.20-8/include/net/irda/au1000_ircc.h
/usr/src/linux-2.4.20-8/include/net/irda/crc.h
/usr/src/linux-2.4.20-8/include/net/irda/discovery.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_core.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_event.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_lmp.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_param.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_ttp.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_tty.h
/usr/src/linux-2.4.20-8/include/net/irda/ircomm_tty_attach.h
/usr/src/linux-2.4.20-8/include/net/irda/irda-usb.h
/usr/src/linux-2.4.20-8/include/net/irda/irda.h
/usr/src/linux-2.4.20-8/include/net/irda/irda_device.h
/usr/src/linux-2.4.20-8/include/net/irda/iriap.h
/usr/src/linux-2.4.20-8/include/net/irda/iriap_event.h
/usr/src/linux-2.4.20-8/include/net/irda/irias_object.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_client.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_common.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_eth.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_event.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_filter.h
/usr/src/linux-2.4.20-8/include/net/irda/irlan_provider.h
/usr/src/linux-2.4.20-8/include/net/irda/irlap.h
/usr/src/linux-2.4.20-8/include/net/irda/irlap_event.h
/usr/src/linux-2.4.20-8/include/net/irda/irlap_frame.h
/usr/src/linux-2.4.20-8/include/net/irda/irlmp.h
/usr/src/linux-2.4.20-8/include/net/irda/irlmp_event.h
/usr/src/linux-2.4.20-8/include/net/irda/irlmp_frame.h
/usr/src/linux-2.4.20-8/include/net/irda/irmod.h
/usr/src/linux-2.4.20-8/include/net/irda/irport.h
/usr/src/linux-2.4.20-8/include/net/irda/irqueue.h
and so on.....
so..... does that mean that /usr/src/linux-2.4.20-8/ is the source thing?
Thanks,
Sloik2000
 
Old 04-14-2004, 07:57 AM   #7
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
yep
 
  


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
finding the kernel source Damon Spector Linux - Software 4 02-20-2005 10:45 AM
Finding the kernel path blacksunshine Linux - Software 2 10-03-2004 02:45 PM
What is the path to Linux Kernel source beginner16 Linux - Newbie 4 11-24-2003 04:21 AM
Trouble finding kernel source RPM for 2.4.20-20.9 (Redhat) dkaplowitz Linux - General 1 08-20-2003 09:35 PM
Linux Kernel Source Path smeckel Linux - Newbie 1 01-08-2002 05:04 PM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
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