Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    33

    Nvidia drivers

    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 to the name of the compiler used by my kernel?

    I'm a little lost

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Hum?

    What distro are you using exactly?

    Never had to do that on Debian...

    But you need that have build-essential installed:
    Code:
    apt-get install build-essential
    If it still doesn't work, you can specify the cc compiler you want to use by default with:
    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

  3. #3
    Just 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?

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    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.

    Code:
    apt-get install kernel-source-$(uname -r)
    or if it doesn't work, then the right command for you is
    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

  5. #5
    Just Joined!
    Join Date
    Feb 2005
    Posts
    33
    Cool, thanks for the help - makes sense.

  6. #6
    Just Joined!
    Join Date
    Feb 2005
    Posts
    33
    Code:
    apt-get install kernel-source-$(uname -r)
    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?

  7. #7
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Check out the output of
    Code:
    uname -r
    It will probably be something like "2.6.12-10-386", that is your kernel (for example).

    Using Ubuntu, you are connected to the Ubuntu repositories, so typing
    Code:
    apt-get install linux-source-$(uname -r)
    will install your kernel specific source, from the Ubuntu repositories.
    "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

  8. #8
    Just Joined!
    Join Date
    Feb 2005
    Posts
    33
    aaah I understand now thanks antidrugue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •