LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-28-2003, 01:11 AM   #1
eats85
Member
 
Registered: Aug 2003
Location: Wisconsin USA
Distribution: Slackware 9.1
Posts: 36

Rep: Reputation: 15
nVidia Drivers needs kernel source


I am trying to install my nVidia drivers but they need to have the kernel source installed but my problem is that i cant get it to install properly i get this error
"error: kernel-source-2.4.20-20.9.i386.rpm: headerRead failed: hdr blob(1491548): BAD, read returned 1105399
error: kernel-source-2.4.20-20.9.i386.rpm cannot be installed"

Any ideas on how to fix this?
thanks
eats85
 
Old 08-28-2003, 01:30 AM   #2
MaulingMonkey
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 16
It sounds like (to me) that the rpm isn't valid. Try re-downloading it from redhat.

The closest I found on a quick search:

http://www.redhat.com/swr/i586/kerne...20.9.i586.html

under the 'source rpm:' bit
 
Old 08-28-2003, 10:25 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
or type:
redhat-config-packages
and install the development tools
the kernel source is on your distro's cds
 
Old 08-28-2003, 11:10 AM   #4
eats85
Member
 
Registered: Aug 2003
Location: Wisconsin USA
Distribution: Slackware 9.1
Posts: 36

Original Poster
Rep: Reputation: 15
I have upgraded the kernel since installation so the source on the cds would not work would they? or would they?

thanks eats85
 
Old 08-28-2003, 11:32 AM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
that is true, you can't use what is on the cd's since you upgraded, so how did you do the kernel upgrade? manually, or up2date?
 
Old 08-28-2003, 11:32 AM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
You need the stuff with your running kernel/compiler combo.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 08-28-2003 at 11:33 AM.
 
Old 08-28-2003, 12:56 PM   #7
eats85
Member
 
Registered: Aug 2003
Location: Wisconsin USA
Distribution: Slackware 9.1
Posts: 36

Original Poster
Rep: Reputation: 15
bad file

Thanks everyone I got it under controll now it was just a bad file or bad download like Mr. MaulingMonkey siad. But now after getting a new file I got it installed and the nVidia drivers installed with no problems.

Thanks for your help!
eats
 
  


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
Kernel-Source, NVIDIA- Drivers Sherpa Linux - Software 20 11-09-2004 01:58 PM
Kernel source location? (nVidia drivers) Neoslash Fedora 3 03-28-2004 12:10 AM
Nvidia drivers and kernel source trees anticitan Linux - Software 2 03-24-2004 11:33 PM
Install nVidia drivers? (Need Kernel source!) Jojo87 Linux - Newbie 6 02-15-2004 12:32 AM
kernel source and nvidia drivers Ryknow215 Linux - Hardware 7 02-04-2004 03:48 PM


All times are GMT -5. The time now is 10:41 PM.

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