LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GCC, Environ paths and Vars(Nvidia drivers too) (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-environ-paths-and-vars-nvidia-drivers-too-477395/)

Trov 08-25-2006 06:08 PM

GCC, Environ paths and Vars(Nvidia drivers too)
 
Well, thing is, I don't understand them much.
See, I'm trying to install the Nvidia drivers to system. However, I always end up at the screen which tells me that my kernel was compiled with GCC 3.3 and I'm currently using GCC 4. Ok I can understand that. Then I search this forum on ways around it. I can either Recompile the Kernel or re-set my GCC path. Problem is, I don't know how.

I don't wanna recompile, seems like too much work, too much time, and uses too much harddrive space for my very little drive.

So ya, if anyone can help me make this thing use the GCC v3.3 I already have installed instead of the GCC v4 Thats the default. That would be great.

blahblahblah 08-25-2006 06:21 PM

What distro are you using?

Trov 08-25-2006 06:31 PM

Quote:

Originally Posted by blahblahblah
What distro are you using?

Opps. haha, I thought I made that apparent. Debian Etch.

blahblahblah 08-25-2006 06:58 PM

Try this thread.

Trov 08-25-2006 07:17 PM

Ah, I already saw that thread(Doesn't help me with the error I'm getting.), and your first idea(before you editted) almost worked, but really it just gave me another error about not finding the development tool 'cc' in the path.

blahblahblah 08-25-2006 07:37 PM

I thought the link would provide a better answer. The core problem seemed to be installing nVidia drivers on Etch, so I figured why beat around the bush?

Anyway, yeah, "ln -sf /usr/bin/gcc-3.3 /usr/bin/gcc" will make it use the older version, but that's rarely the only thing that has to be changed.

Could you post the error message?

blahblahblah 08-25-2006 07:45 PM

This is for Ubuntu, but Ubuntu has a Debian base so it might at least help provide an idea.

Trov 08-25-2006 07:49 PM

I don't think it's the installation itself as it's the problem with the kernel being compiled differently from what I now have.

Here is the log file. The error I am focusing on is in bold.
Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Aug 25 19:09:00 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall              : false
  driver info            : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files    : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup              : false
  kernel module only      : false
  sanity                  : false
  add this kernel        : false
  no runlevel check      : false
  no network              : false
  no ABI note            : false
  no RPMs                : false
  no kernel module        : false
  force SELinux          : default
  force tls              : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path  : (not specified)
  OpenGL install prefix  : (not specified)
  OpenGL install libdir  : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name            : (not specified)
  kernel include path    : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path    : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
  ke the installer to attempt to download a kernel interface for your kernel f
  rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
  that the installer will need to compile a new kernel interface.
ERROR: Unable to find the development tool `cc` in your path; please make sure
      that you have the package 'gcc' installed.  If gcc is installed on your
      system, then please check that `cc` is in your PATH.

ERROR: Installation has failed.  Please see the file
      '/var/log/nvidia-installer.log' for details.  You may find suggestions
      on fixing installation problems in the README available on the Linux
      driver download page at www.nvidia.com.


blahblahblah 08-28-2006 05:35 PM

/usr/bin/cc is usually just a link to /usr/bin/gcc (try "ls -l /usr/bin/cc" to see what it is now). Since you don't want to use /usr/bin/gcc, try "ln -sf /usr/bin/gcc-3.3 /usr/bin/cc".


All times are GMT -5. The time now is 03:03 PM.