Results 1 to 8 of 8
Busy trying to install latest Nvidia drivers, but it throws an error about the compiler -
Could not complete compile gcc-version-check.c.
Apparently I have to set the "CC" environment variable ...
- 04-13-2006 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Nvidia drivers
Busy trying to install latest Nvidia drivers, but it throws an error about the compiler -
Apparently I have to set the "CC" environment variable to the name of the compiler used by my kernel?Could not complete compile gcc-version-check.c.
I'm a little lost
- 04-13-2006 #2
Hum?
What distro are you using exactly?
Never had to do that on Debian...
But you need that have build-essential installed:
If it still doesn't work, you can specify the cc compiler you want to use by default with:Code:apt-get install build-essential
Code:update-alternatives --config cc
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 04-13-2006 #3Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Cool installing the essentials seems to have done something...
Now its throwing an error "unable to find the kernel source tree for the current running kernel"
I need to specify the `--kernel-source-path`, what would I set this to?
- 04-13-2006 #4
Nope, you need those 3 things installed before installing NVIDIA drivers:
gcc (build-essential)
make (build-essential as well)
kernel-source (depends on your kernel)
You don't need to spefify the path to kernel source, you just have to install it.
or if it doesn't work, then the right command for you isCode:apt-get install kernel-source-$(uname -r)
Code:apt-get install linux-source-$(uname -r)
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 04-13-2006 #5Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Cool, thanks for the help - makes sense.
- 04-13-2006 #6Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Sorry if this is a retarded question, but surely these aren't the best to install? Surely you would want to get Ubuntu specific kernels only?Code:apt-get install kernel-source-$(uname -r)
- 04-13-2006 #7
Check out the output of
It will probably be something like "2.6.12-10-386", that is your kernel (for example).Code:uname -r
Using Ubuntu, you are connected to the Ubuntu repositories, so typing
will install your kernel specific source, from the Ubuntu repositories.Code:apt-get install linux-source-$(uname -r)
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 04-14-2006 #8Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
aaah I understand now thanks antidrugue


Reply With Quote
