Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
05-07-2006, 08:13 PM
|
#1
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
in dire need of help installing Nvidia drivers.
hello and thank you for any help. here is the system specs and followed by the steps taken, then the error msg i am getting:
P4 2.4G 800Mhz FSB
1G pc 3200 ram
Nvidia 6600GT 128M vid card.
Debian testing respository
apt-get upgrade last night, thus the problems today.
/var/log/nvidia-installer.log
Code:
cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun May 7 20:50:43 2006
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: true
no ncurses color : false
query latest driver ver : false
OpenGL header files : true
no questions : false
silent : 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
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : 2.6.11-1-686
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.
-> There appears to already be a driver installed on your system (version: 1.0-
7667). As part of installing this driver (version: 1.0-7676), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> Not probing for precompiled kernel interfaces.
-> Kernel source path: '/lib/modules/2.6.11-1-686/build'
-> Performing rivafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.11-1-686/bu
ild SYSOUT=/lib/modules/2.6.11-1-686/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.11-1-686/build SUBDIRS=/tmp
/selfgz14011/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv modules
/bin/sh: /usr/src/kernel-headers-2.6.11-1-686/scripts/gcc-version.sh: No suc
h file or directory
mkdir -p /tmp/selfgz14011/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/.tmp_ver
sions
make -f scripts/Makefile.build obj=/tmp/selfgz14011/NVIDIA-Linux-x86-1.0-767
6-pkg1/usr/src/nv
make[3]: scripts/Makefile.build: No such file or directory
make[3]: *** No rule to make target `scripts/Makefile.build'. Stop.
make[2]: *** [_module_/tmp/selfgz14011/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/sr
c/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
Code:
uname -a
Linux p4ssmahome 2.6.11-1-686 #1 Mon Jun 20 22:00:38 MDT 2005 i686 GNU/Linux
in the /usr/src directory i have the following:
Code:
ls -la /usr/src/
total 2392
drwxrwsr-x 6 root src 4096 2006-05-06 15:33 .
drwxr-xr-x 13 root root 4096 2006-05-06 15:44 ..
-rw-r--r-- 1 root root 2417970 2006-04-23 11:08 alsa-driver.tar.bz2
drwxr-xr-x 16 root root 4096 2005-07-03 08:33 kernel-headers-2.6.11-1
drwxr-xr-x 3 root root 4096 2005-07-03 08:33 kernel-headers-2.6.11-1-686
drwxr-xr-x 3 root root 4096 2005-07-05 00:19 kernel-patches
drwxrwsr-x 3 root src 4096 2005-06-08 15:24 modules
so you can see i have the latest kernerl-headers installed and working but the Nvidia installer dies when trying to build the kernel portion of the install
Code:
ERROR: Unable to build the NVIDIA kernel module.
OK
that is the error i get, then the installer stops. now my glxgears is between 5800 - 7000 normal, if i minimize the gears it will jump to almost 12000 FPS so the current set of Nvidia drivers are working correctly, but they are no longer working with cedega and EverQuest the game.
ill post my XF86.... file if that will help, but as stated above it all worked until last night. FYI, i thought debian had moved from Xfree to xorg, but i do not have the /etc/X11/xorg.conf file in that directory.
A. what can i do to get the bloody nvidia drivers to install?
B. if we can not install them, what can i do to go BACK to were my system was last night before my apt-get upgrade?
C. what more info do you need to help you help me?
|
|
|
05-07-2006, 09:07 PM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
debian has appropriately packaged nvidia drivers in the repositories... are you using those or the nvidia.com installer?
|
|
|
05-07-2006, 09:21 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
the nvidia self extracting installer. its the only way ive ever done it since Nvidia made their drivers that way.
IIRC the way you are talking about does not work any more. apt-get install nvidia-xxx and what not...
i did it that way 1 time a long time ago.
|
|
|
05-09-2006, 12:09 AM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
still in dire need of help here. thanks.
|
|
|
05-09-2006, 05:07 AM
|
#5
|
Member
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540
Rep: 
|
The first error is
Quote:
/bin/sh:/usr/src/kernel-headers-2.6.11-1-686/scripts/gcc-version.sh:No such file or directory
|
This shows your kernel sources are not installed or configured correctly.
You should look in this direction to have the running kernel and the kernel sources matching perfectly.
I don't use Debian distribution, so I can only advice to ask or seek in Debian forums, about configuration of kernel sources.
You will get it done with a good configuration of kernel sources.
|
|
|
05-09-2006, 06:06 AM
|
#6
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
gcc-version.sh means it wants to check the gcc version the kernel was compiled with.
You do want to find out where this file is.
Check to see if there are any other kernel/development packages you havn't obtained.
(Though I note that this installer seemed to work before?)
Normally I would suggest using the debian installer instead of the nvidia one. It uses the same driver, but it knows more about debian.
|
|
|
05-09-2006, 10:35 AM
|
#7
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
Code:
ls /usr/src/kernel-headers-2.6.11-1-686/scripts
/usr/src/kernel-headers-2.6.11-1-686/scripts
its there. ok now that we are talking about gcc we are getting over my head and fast. IIRC when i ran my last upgrade gcc was upgraded, could that cause the issue? if so how do i resolve it?
Code:
ls /usr/src
alsa-driver.tar.bz2 kernel-headers-2.6.11-1-686 modules
kernel-headers-2.6.11-1 kernel-patches
so yes the headers are in the correct directory.
Code:
ls /usr/src/kernel-headers-2.6.11-1-686
arch fs ipc Makefile net sound
crypto include kernel mm scripts usr
drivers init lib Module.symvers s
and there is the directory looking for the scripts and it is there. and here is the long vs:
Code:
ls -la /usr/src/kernel-headers-2.6.11-1-686
total 300
drwxr-xr-x 3 root root 4096 2005-07-03 08:33 .
drwxrwsr-x 6 root src 4096 2006-05-06 15:33 ..
lrwxrwxrwx 1 root root 31 2005-07-03 08:33 arch -> ../kernel-headers-2.6.11-1/arch
-rw-r--r-- 1 root root 59728 2005-05-20 03:29 .config
lrwxrwxrwx 1 root root 33 2005-07-03 08:33 crypto -> ../kernel-headers-2.6.11-1/crypto
lrwxrwxrwx 1 root root 34 2005-07-03 08:33 drivers -> ../kernel-headers-2.6.11-1/drivers
-rw-r--r-- 1 root root 7 2005-05-20 04:58 .extraversion
lrwxrwxrwx 1 root root 29 2005-07-03 08:33 fs -> ../kernel-headers-2.6.11-1/fs
drwxr-xr-x 4 root root 4096 2005-07-03 08:33 include
lrwxrwxrwx 1 root root 31 2005-07-03 08:33 init -> ../kernel-headers-2.6.11-1/init
lrwxrwxrwx 1 root root 30 2005-07-03 08:33 ipc -> ../kernel-headers-2.6.11-1/ipc
lrwxrwxrwx 1 root root 33 2005-07-03 08:33 kernel -> ../kernel-headers-2.6.11-1/kernel
lrwxrwxrwx 1 root root 30 2005-07-03 08:33 lib -> ../kernel-headers-2.6.11-1/lib
lrwxrwxrwx 1 root root 35 2005-07-03 08:33 Makefile -> ../kernel-headers-2.6.11-1/Makefile
lrwxrwxrwx 1 root root 29 2005-07-03 08:33 mm -> ../kernel-headers-2.6.11-1/mm
-rw-r--r-- 1 root root 220545 2005-05-20 04:04 Module.symvers
lrwxrwxrwx 1 root root 30 2005-07-03 08:33 net -> ../kernel-headers-2.6.11-1/net
lrwxrwxrwx 1 root root 34 2005-07-03 08:33 scripts -> ../kernel-headers-2.6.11-1/scripts
lrwxrwxrwx 1 root root 35 2005-07-03 08:33 security -> ../kernel-headers-2.6.11-1/security
lrwxrwxrwx 1 root root 32 2005-07-03 08:33 sound -> ../kernel-headers-2.6.11-1/sound
lrwxrwxrwx 1 root root 30 2005-07-03 08:33 usr -> ../kernel-headers-2.6.11-1/usr
is something else fubar there that i am not seeing?
|
|
|
05-09-2006, 10:42 AM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
how do i find out what vs of gcc was used to build my kernel, and what vs do i have now?
|
|
|
05-09-2006, 11:20 AM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
|
|
|
05-09-2006, 11:26 AM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
just out of curiosity, could you show us the output of this command: also:
Quote:
Originally Posted by lleb
so yes the headers are in the correct directory.
ls /usr/src/kernel-headers-2.6.11-1-686
|
is that like a debian-specific location or something??
cuz kernel headers usually go in /usr/include (at least on most distros)...
Last edited by win32sux; 05-09-2006 at 11:31 AM.
|
|
|
05-09-2006, 04:14 PM
|
#11
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
yes that is the default for debian for the kernel info:
Code:
ray@p4ssmahome:~$ /lib/libc.so.6
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.0.3 20051023 (prerelease) (Debian 4.0.2-3).
Compiled on a Linux 2.6.13 system on 2005-11-13.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
ray@p4ssmahome:~$ gcc --version
gcc (GCC) 3.3.6 (Debian 1:3.3.6-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ok there are the gcc version and the results of the /lib/libc.so.6 i hope that helps.
|
|
|
05-09-2006, 04:18 PM
|
#12
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
Quote:
Originally Posted by lleb
Code:
ls /usr/src/kernel-headers-2.6.11-1-686/scripts /usr/src/kernel-headers-2.6.11-1-686/scripts
its there.
|
What is where? You are looking for "gcc-version.sh" - wot the error message tells you is not present. All you've done here is verified that the "scripts" directory exists.
gcc --version only ells you the version of gcc that is currently installed, not the version that the kernel was compiled with. These can be different. If you upgraded gcc and the kernel at the same time, then they are the same. dmesg | grep gcc gives you a line which tells you the gcc version used to build the kernel - it's stored in other places but I forget. However - I don't think this is the problem. The problem is, the installer cannot find the script it wants.
It looks in directory: /usr/src/kernel-headers-2.6.11-1-686/scripts/
The file "scripts" in /usr/src/kernel-headers-2.6.11-1-686/ is a symlink: scripts -> ../kernel-headers-2.6.11-1/scripts ... i.e. to itself!
So it follows that your kernel headers are not installed or not configured properly. If you have a reason to believe they are installed (i.e. you, personally, physically installed them yourself and you recall typing in the command - apt-get install linux-kernel-development - to do so) then you need to find out where they are installed and change that symlink to point to the correct directory.
Different distros put the headers and so forth in different places. For eg. fedora likes kernel-source things in /usr/src/kernel/`$uname -r`/
I see my new dapper has nothing in /usr/src - so I'm reminded to install the kernel source and headers soon.
/usr/src/ ... is a pretty conventional place to find them. Most distros will have symlinks in there if they don't.
Last edited by Simon Bridge; 05-09-2006 at 04:35 PM.
|
|
|
05-09-2006, 04:28 PM
|
#13
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
Original Poster
|
Code:
su -
Password:
p4ssmahome:~# apt-get update
Hit http://download.videolan.org sid/main Packages
Hit http://security.debian.org testing/updates/main Packages
Get:1 http://security.debian.org testing/updates/main Release [98B]
Hit http://security.debian.org testing/updates/contrib Packages
Get:2 http://security.debian.org testing/updates/contrib Release [101B]
Ign http://download.videolan.org sid/main Release
Hit http://download.videolan.org sid/main Sources
Ign http://download.videolan.org sid/main Release
Hit http://plaisthos.de ./ Sources
Ign http://plaisthos.de ./ Release
Hit http://www.plaisthos.de ./ Packages
Ign http://www.plaisthos.de ./ Release
Get:3 ftp://ftp.debian.org testing/main Packages [3923kB]
Hit ftp://ftp.nerim.net etch/main Packages
Hit http://www.planet-moll.de sarge/main Packages
Hit http://www.planet-moll.de sarge/main Release
Hit ftp://ftp.nerim.net etch/main Release
Hit ftp://ftp.nerim.net sarge/main Packages
Hit ftp://ftp.nerim.net sarge/main Release
Get:4 ftp://ftp.debian.org testing/main Release [81B]
Fetched 3923kB in 5s (675kB/s)
Reading Package Lists... Done
p4ssmahome:~# apt-cache search kernel | grep 2.6.11
kernel-source-2.6.11 - Linux kernel source for version 2.6.11 with Debian patches
kernel-headers-2.6.11-1 - Header files related to Linux kernel version 2.6.11
kernel-headers-2.6.11-1-686 - Linux kernel headers 2.6.11 on PPro/Celeron/PII/PIII/P4
kernel-image-2.6.11-1-686 - Linux kernel image for version 2.6.11 on PPro/Celeron/PII/PIII/P4.
kernel-patch-debian-2.6.11 - Debian patches to Linux 2.6.11
p4ssmahome:~# apt-get install kernel-headers-2.6.11-1-686
Reading Package Lists... Done
Building Dependency Tree... Done
kernel-headers-2.6.11-1-686 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 405 not upgraded.
my kernel headers are installed, so states apt-get.
|
|
|
05-09-2006, 06:50 PM
|
#14
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
OK - so where are they?
Go look for the file "gcc-version.sh" - it ain't where the installer is looking for it, it is presumably installed, so where is it? Go look!
|
|
|
05-09-2006, 07:04 PM
|
#15
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
ahah! I didn't read my own post correctly...
Quote:
Originally Posted by simon
It looks in directory: /usr/src/kernel-headers-2.6.11-1-686/scripts/
The file "scripts" in /usr/src/kernel-headers-2.6.11-1-686/ is a symlink: scripts -> ../kernel-headers-2.6.11-1/scripts ... i.e. to itself!
|
No! Not to itself! But to the generic headers.
look in directory /usr/src/kernel-headers-2.6.11-1/scripts (spot the difference).
Failing that: slocate -u (wait) slocate gcc-version.sh
|
|
|
All times are GMT -5. The time now is 07:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|