LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need to upgrade gcc to install kernel-source? (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-upgrade-gcc-to-install-kernel-source-102254/)

downdb 10-09-2003 06:13 PM

need to upgrade gcc to install kernel-source?
 
i've got a new install of rh9, and have run into the nvidia driver hell that's all over these forums like a rash.

when i attempted to install the drivers i downloaded from nvidia, i got the message saying i needed to install the kernel-source first. checked my kernel and got this:

# uname -r
2.4.20-20.9

okay, fine. so i go and download the following:

kernel-source-2.4.20-20.9.i386.rpm

and put it in /usr/src, and then i get this:

# rpm -ivh kernel-source-2.4.20-20.9.i386.rpm
error: Failed dependencies:
gcc >= 2.96-98 is needed by kernel-source-2.4.20-20.9

so now i guess i need to update gcc? here's where i gotta admit that the some total of my linux experience is about four days, and i've got no idea how to go about doing this.

contrasutra 10-09-2003 07:19 PM

Actually, you need an OLDER version of GCC.

redhat is all messed up in that respect.

You dont have to use an RPM for source.

Just go to kernel.org and download the appropriate kernel source tarball. Then extract it to /usr/src/linux, like:

Code:

su -
[enter password]
cd /usr/src/linux
tar -xvjf /path/to/kernelsource.tar.bz2


downdb 10-10-2003 09:49 AM

thanks! i'm at work right now, but i'll give it a try when i get home tonight.


All times are GMT -5. The time now is 04:38 PM.