Friday, June 17, 2011

Debian Squeeze - Changing the Default Compiler

v 0.2

Once, when installing the proprietary NVidia drivers in Debian Lenny, I was stumped by the message that the available compiler was different than the one required.  I've seen several techniques to change the default compiler, but the two I've seen that are the most understandable involve changing the symlink or exporting a variable pointing to the required compiler.

Changing the Variable pointing to the Compiler:
 
# export CC=/usr/bin/gcc-4.1
# ./NVIDIA-installer-xxx-whatever


Changing the Symlink:

# ln -s -f /usr/bin/gcc-4.1 /usr/bin/gcc


http://www.linuxquestions.org/questions/debian-26/need-an-older-gcc-version-690246/


Later ...........

No comments:

Post a Comment