LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-11-2009, 07:58 PM   #1
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 65

Rep: Reputation: 15
Debian Lenny symlink gcc question for nVidia Driver(s) compilation and Installation


I am attempting to install the latest nVidia drivers from nVidia. Unfortuantely, they only provide an executable which does all of this for me. When it responded that the kernal of this version of Lenny was compiled with gcc-4.1 and gcc-4.3 is installed on the machine. I posted a question about how to compile the kernal with the latest version of gcc, but only received the following response.

"Just install gcc-4.1 and then temporarily change the symlink for gcc from gcc-4.3 to gcc-4.1. "

I have installed gcc-4.1 (by sudo apt-get install gcc-4.1). While the remainder of the suggestion sounds like it should work, I am still to new to Linux to know how to do this (hence the post to the newbie forum).

a) Which symlink should be modified?
b) Where is this symlink located?
c) Is there anything "special" I must do, or not do because this is a symlink?
d) Is there a specific editor required, or will any text editor do?
e) Does doing this also use the correct "MAKE" facility, if one is necessary?

Basically what else do I need to know to solve my driver compile/make/install/compatibility problems?


Thank you in advance for your time, patients, and assistance.
 
Old 06-12-2009, 10:08 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
No need to do that symlink, when it asks about the GCC version proceed by ignoring it and let it compile anyways it will work fine.
 
Old 06-12-2009, 10:10 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
P.S. Let it write a new xorg config for you too
 
Old 06-13-2009, 01:30 PM   #4
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
I have attempted to run the installation program and selected the option which ignored the compiler issue. Unfortunately, the results were still non-functional.

As for the xorg.conf file, I did allow the utility to write this file, but I already had a custom video configuration after having spent quite a bit of time on the xorg.conf man page. So that's really not much of an issue.

I would ask again:

a) Which symlink should be modified?
b) Where is this symlink located?
c) Is there anything "special" I must do, or not do because this is a symlink?
d) Is there a specific editor required, or will any text editor do?
e) Does doing this also use the correct "MAKE" facility, if one is necessary?

Basically what else do I need to know to solve my driver compile/make/install/compatibility problems?

Additionally, as I currently know nothing of how to address this issue, it is not unreasonable to assume that I could encounter the need to modify symlinks in the future. This will be a good learning experience.


Thank you for your assistance
 
Old 06-13-2009, 05:29 PM   #5
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
The following link may help with gcc versions:

http://www.linuxquestions.org/questi...ge+gcc+version

To install the Nvidia driver i do the following:

aptitude install module-assistant build-essential

Then run the following commands as root:

m-a update
m-a prepare

Next,stop X and run the installer script.
Let the installer modify your Xorg.conf file,restart X or reboot.
If all is well you should see the Nvidia logo when X restarts.
 
Old 06-13-2009, 05:47 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Do it the easy way and use smxi. http://smxi.org/

do, as root: cd /usr/local/bin && wget smxi.org/smxi.zip && unzip smxi.zip && smxi

Sgfxi currently supports ATI fglrx and Nvidia drivers. It also supports converting from or to xorg free drivers like ati, intel, or nv. Smxi uses sgfxi as its graphics driver installer engine, but simply adds some option support for users.

The default driver is the driver that is installed if no arguments are used to override it. Unless your card is too old, and requires a legacy driver, in which case the script will it determine for you.

When you run the script, it will stop, and tell you what driver it is going to install. You can accept that, or exit and redo it with an override option if you want something different.
 
Old 06-16-2009, 10:49 AM   #7
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by the trooper View Post
The following link may help with gcc versions:

http://www.linuxquestions.org/questi...ge+gcc+version

To install the Nvidia driver i do the following:

aptitude install module-assistant build-essential

Then run the following commands as root:

m-a update
m-a prepare

Next,stop X and run the installer script.
Let the installer modify your Xorg.conf file,restart X or reboot.
If all is well you should see the Nvidia logo when X restarts.
the trooper,
Thanks for the information. I shall give this a try.
 
Old 06-16-2009, 10:53 AM   #8
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by craigevil View Post
Do it the easy way and use smxi. http://smxi.org/

do, as root: cd /usr/local/bin && wget smxi.org/smxi.zip && unzip smxi.zip && smxi

Sgfxi currently supports ATI fglrx and Nvidia drivers. It also supports converting from or to xorg free drivers like ati, intel, or nv. Smxi uses sgfxi as its graphics driver installer engine, but simply adds some option support for users.

The default driver is the driver that is installed if no arguments are used to override it. Unless your card is too old, and requires a legacy driver, in which case the script will it determine for you.

When you run the script, it will stop, and tell you what driver it is going to install. You can accept that, or exit and redo it with an override option if you want something different.

craigevil
I have never heard of the smxi. The website looks intriguing. I shall give the smxi a nice close look, and a try.

Fast Question, Is the "/usr/local/bin" directory the place to store scripts in a Debian (or any other linux distro)?
 
Old 06-16-2009, 05:47 PM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
smxi was orginally wriitern for sidux, but since then it has been rewritten to work on any debian distro. For installing nvidia and using to install new kernels and apt-get dist-upgrade it works great.
 
  


Reply

Tags
debian, drivers, gcc, lenny, nvidia, symlink


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
[SOLVED] Symlink for Java on Debian Lenny riganta Linux - Desktop 10 03-11-2010 10:01 AM
[SOLVED] BRL-CAD-7.14.6 compilation fails on Debian Lenny (stable) Pentium 6 mike11 Linux - Software 4 08-02-2009 10:52 PM
Lenny :Nvidia install kernel does not match GCC version knobby67 Debian 6 04-23-2009 07:45 AM
NVIDIA Driver Installation on Debian Current gibran Debian 31 08-18-2005 08:41 PM
Debian / nVidia Driver / Kernel 2.6.2 / gcc muzicman82 Linux - Hardware 3 02-15-2004 06:19 AM


All times are GMT -5. The time now is 06:13 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