LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-27-2009, 08:51 AM   #1
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Rep: Reputation: 18
Debian: Kernel + gcc not accepting graphic card driver


Few days back i have installed Debian Lenny 5.01 on my laptop!!

When i was installing nVidia driver for my graphic card (which is in .run format) i get an error that the kernel is compiled with gcc 4.1 and so the driver should be compiled with the same, but my system has gcc 4.3 pre-installed in it!! so what to do??

kernel version: 2.6.26-2-686
 
Old 10-27-2009, 08:58 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Easiest way use smxi.

or do it the debian way: http://wiki.debian.org/NvidiaGraphicsDrivers

Last edited by craigevil; 10-27-2009 at 08:59 AM.
 
Old 10-27-2009, 08:59 AM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
That's mostly stupidity from nvidia's side, you don't need the same gcc version.

Just install gcc-4.1 (it's in your repo) and run this command (as root) before running the installer:
Code:
export CC=/usr/bin/gcc-4.1
 
Old 10-27-2009, 10:57 AM   #4
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Original Poster
Rep: Reputation: 18
After going through the above procedure gcc problem was resolved but now i am facing the following error!!

ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
 
Old 10-27-2009, 12:12 PM   #5
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Original Poster
Rep: Reputation: 18
i have now fixed it!!!!!!!

thank you all for your help!!

*************************thread closed***************************
 
Old 10-27-2009, 12:18 PM   #6
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Just the headers are enough:
Code:
apt-get install linux-headers-`uname -r`
EDIT: ...ah... I'm really slow

Last edited by jens; 10-27-2009 at 12:19 PM.
 
  


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
About chipset on graphic card having driver for amd64 satimis *BSD 1 06-02-2007 03:07 AM
driver for SiS 660 graphic card j-ray Linux - Hardware 0 02-02-2005 09:02 AM
graphic card driver dimsun Linux - Newbie 2 10-25-2004 01:34 AM
Driver for STS graphic card? akihandyman Mandriva 0 09-24-2004 03:52 PM
Debian / nVidia Driver / Kernel 2.6.2 / gcc muzicman82 Linux - Hardware 3 02-15-2004 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:22 PM.

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