Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Let me start out first by saying I've perused the forums before posting. None of the threads I looked at provided a solution.
Shortly after I bought my graphics card (~6 months ago) I began trying to install the latest drivers and always ran into roadblocks. It didn't matter then, since I wasn't going to get hardware acceleration anyway, but now that I finally have kernel 2.6 working, I'd like to get this. I think it's always been the same problem, which is that the installer fails on the gcc check. It complains that the gcc version used to compile the kernel source (4.0) doesn't match the one for the kernel interface (4.1) it's trying to get, or something to this effect. I cannot check the specifics right now because X is running and nvidia-installer.log has been overwritten. I've done: CC=/usr/bin/gcc-4.1, export CC. Nothing. I actually have multiple versions of gcc (3.3,4.0,4.1) but when I try to remove them, dpkg complains about broken depends. I could do a --force-depends but I don't want to break anything. I have the latest binutils and modutils, the corresponding kernel source and headers.
One final thing...
I cannot directly execute the .run file, so I'm forced to extract it and run nvidia-installer myself. This works just fine but I'm confused why I can't just use the self-extracting file to install. As it is right now, it uncompresses the file and then I just get the following:
./NVIDIA-Linux-x86-1.0-8762-pkg1.run: line 864: ./nvidia-installer: Permission denied
The file is chmod 755 so I don't see the problem. Also, line 864 marks the beginning of binary.
It would be export CC=/usr/bin/gcc-4.0 then run the installer but I do not see why you are not using the Debian sources for the nvidia driver. Put this in your sources.list temporarily then apt-get update.
Code:
## Unstable Sources
deb http://ftp2.de.debian.org/debian/ sid main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ sid main contrib non-free
Then install the module-assistant package and as root module-assistant choose PREPARE to have the kernel-headers installed and linked properly. Next use SELECT with up/down arrow keys to move in the list once at the nvidia-kernel-source selection use spacebar to select then enter key to go back to the menu. Choose BUILD to build the module package once it completes answer yes to install the package. Now if the nvidia-glx package was not installed install it and make the edits necessary to your xorg.conf then comment out the lines for unstable in your sources.list and update again. Now you are probably better off rebooting as the last couple of times I have installed a new module it was necessary to get everything initialized properly.
Well, I have the nvidia-kernel-2.6.16-2-686-smp package installed. I was reading the description of the package and it's different than I thought it was, although I've read about it in the past. For whatever reason, I thought the binary driver from nvidia was also required to have full-fledged hardware acceleration. I take it I'm wrong about this...
glxinfo displays:
Xlib: extension "GLX" missing on display ":0.0".
(and I have 'Load "glx"' in xorg.conf)
I have the appropriate kernel source and headers installed and I specify the directory with --kernel-source-path. I select not to download the kernel interfaces from nvidia and have the installer compile them directly.
The pertinent information in the nvidia-installer log (I have selected to ignore gcc version mismatch)...
Using built-in stream 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.
-> Performing CC test with CC="cc".
-> gcc-version-check failed:
The compiler used to compile the kernel (gcc 4.0) does not exactly match the current compiler (gcc 4.1). The Linux 2.6 kernel module loader rejects kern el modules built with a version of gcc that does not exactly match that of t he compiler used to build the running kernel.
If you know what you are doing and want to ignore the gcc version check, sel ect "No" to continue installation. Otherwise, select "Yes" to abort install ation, set the CC environment variable to the name of the compiler used to c ompile your kernel, and restart installation. Abort now? (Answer: No)
-> Using the kernel source path '/usr/src/linux-source-2.6.16' as specified by
the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-source-2.6.16'
-> Kernel output path: '/usr/src/linux-source-2.6.16'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s).
nvidia: version magic '2.6.16 SMP 686 gcc-4.1' should be '2.6.16-2-686-smp
SMP 686 gcc-4.0'
I have done 'CC=gcc-4.0 export CC' and still get the gcc error.
nvidia: version magic '2.6.16 SMP 686 gcc-4.1' should be '2.6.16-2-686-smp
SMP 686 gcc-4.0'[/i]
I have done 'CC=gcc-4.0 export CC' and still get the gcc error.
I have already given you the proper command to use just before compile export CC=/usr/bin/gcc-4.0 that is how to tell it to use the 4.0 version or if necessary as root ln -sfn /usr/bin/gcc-4.0 /usr/bin/gcc to change the link don't forget to change it back to the 4.1 version.
The symlink suggestion worked. Thanks. I'm still confused why adding CC to the environment didn't work but recreating the link did. Anyway, the driver appears to have installed successfully, but the results suggest otherwise.
If it did in fact install correctly, I should be able to load the 'nvidia' driver, but I'm not for some reason.
The only error I get during installation is the following:
Unable to perform the runtime configuration check for library
'libGL.so.1' ('/usr/lib/libGL.so.1.0.8762'); assuming successful
installation.
The symlink suggestion worked. Thanks. I'm still confused why adding CC to the environment didn't work but recreating the link did. Anyway, the driver appears to have installed successfully, but the results suggest otherwise.
If it did in fact install correctly, I should be able to load the 'nvidia' driver, but I'm not for some reason.
The only error I get during installation is the following:
Unable to perform the runtime configuration check for library
'libGL.so.1' ('/usr/lib/libGL.so.1.0.8762'); assuming successful
installation.
That is a good question the export CC= has always worked for me in the past. So your saying the module built but will not load because of the above. Do you have the xserver-xorg-dev package installed? I seem to remember reading on the nvnews.net that it is required for the driver to find the proper places to put it parts.
Installing xserver-xorg-dev worked... sort of. I'm now able to load all modules. Well, all except for speedo, which I just read has been disabled in xorg by default, and this was way back in 2004, so I don't know why it hasn't been taken out of the conf. I can't say as I know what it is/does anyway.
I ran nvidia-installer (w/ and w/o --uninstall) again and the nvidia driver loaded fine, as well as glx etc. However, when I actually try to start X, the screen is blank and just flickers every 3 seconds. Then, it just goes black, so I hit Ctrl and I'm able to see the Xorg errors, just like normal. The thing is, there are no errors.
Your welcome, what does your xorg.conf file look like can you post that and even the log file (/var/log/Xorg.0.log) just so we can get a look at it you will need to put this one in two posts it is rather big.
Hopefully this was just changed back to nv so you can run otherwise it should be nvidia for the driver. And for the log file it would need to be when the nvidia driver is used to start copy it to a backup before restarting the X server with the nv driver otherwise it will be overwritten with the new start of X.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.