Find the answer to your Linux question:
Results 1 to 8 of 8
I have decided that it is about time I installed the NVIDIA drivers for my beastie and I have hit a snag. I downloaded the drivers from the NVIDIA site ...
  1. #1
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,287

    Installing NVIDIA Drivers

    I have decided that it is about time I installed the NVIDIA drivers for my beastie
    and I have hit a snag. I downloaded the drivers from the NVIDIA site and started
    in single user mode.

    The first time I attempted to install it failed as I didn't have the appropriate headers.
    I installed build-essential and tried again. This time it got further and then complained
    about the version of gcc. Apparently, according to Google anyway, I have to
    change the version of gcc I am using. How do I do so and to what version?
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  2. #2
    Linux Newbie objuan's Avatar
    Join Date
    Jul 2006
    Location
    california
    Posts
    218
    Hello

    the easy way to do this is to just do a install from the command line
    first do a search for what is available
    apt-cache search gcc this will give you a list
    choose the lastest version like gcc-4.3 to install it
    apt-get install gcc-4.3
    Hope this helps.

  3. #3
    Linux Newbie
    Join Date
    Aug 2006
    Location
    england
    Posts
    138
    the recommended method is the debian way or alternatively the installer from nvidia.
    NvidiaGraphicsDrivers - Debian Wiki

  4. #4
    Just Joined! geniuz's Avatar
    Join Date
    Mar 2008
    Location
    Netherlands, Europe
    Posts
    71
    to change your gcc version, you can try something like:
    export CC="gcc-4.1", offcourse where it says gcc-4.1 you should change that into the full path to your gcc-4.1 compiler.

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I had this exact problem, the solution that the previous post said about setting the CC environment variable before running the installer was the fix to my problem, however, you need to make sure you have that version of gcc installed first

    edit:
    alternatively you can build your own kernel (which I did) then the error never happens

  6. #6
    Linux Enthusiast Manchunian's Avatar
    Join Date
    Dec 2007
    Location
    France but my heart stays in Britain
    Posts
    675
    Actually, I built my own kernel on this Arch Linux box recently and encountered this exact problem.
    Distribution: Archlinux
    Processor: 3 x Amd 64 bit
    Ram: 4 GB
    Graphics card: Nvidia GeForce 9800 GT

  7. #7
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,287
    That's good to know for future reference. That implies that I can have more
    than one version gcc installed. My main machine has gone back to Ubuntu as I
    needed to get things done as opposed to spending time fighting* with the
    operating system.

    I do have a couple of follow on questions though, which relate while being
    generic, so I will still post them here.

    If I start compiling my own kernel and software does that mean I lose the auto
    updates from the repositories?

    Even if I use the source repositories?

    * That's what it felt like anyway.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  8. #8
    Linux Enthusiast Manchunian's Avatar
    Join Date
    Dec 2007
    Location
    France but my heart stays in Britain
    Posts
    675
    If I start compiling my own kernel and software does that mean I lose the auto
    updates from the repositories?
    Yes, it does!
    Distribution: Archlinux
    Processor: 3 x Amd 64 bit
    Ram: 4 GB
    Graphics card: Nvidia GeForce 9800 GT

Posting Permissions

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