Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-08-02, 11:09 PM   #1
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Angry RPM Source problems

I've been trying forever to get the 2960 drivers to work for my Geforce 3 Ti 200. I'm running SuSE 8.0, I've searched through this forum many times, tried many things, finally I came across one which basically seemed to be the final answer. Installing from the RPM sources instead of the binaries. I'm still rather new to Linux, and have never tried doing that, so I had no idea what I was in for. The first time, I installed the binary for the kernel, then the src.rpm for the GLX but gave me a dependancy error, saying I needed kernel 2.2.0, so I said ok that doesn't sound right. Uninstalled and started over, this time I was planning on install the src for both files. So I installed the src.rpm for the kernel file, but this is what I got in respone...linux:~ # rpm --rebuild NVIDIA_kernel-1.0-2960.src.rpm
Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.89609
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf NVIDIA_kernel-1.0-2960
+ /bin/gzip -dc /usr/src/packages/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.89609
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=3.0.6
++ echo 3.0.6
++ awk -F . '{print $1;}'
+ RPMMAJOR=3
++ echo 3.0.6
++ awk -F . '{print $2;}'
+ RPMMINOR=0
++ echo 3.0.6
++ awk -F . '{print $3;}'
+ RPMPATCH=6
+ '[' 3 -le 3 -a 0 -le 0 -a 6 -lt 4 ']'
+ make NVdriver
/var/tmp/rpm-tmp.89609: make: command not found
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.89609
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.18-4GB
+ TARGET_KERNEL=2.4.18-4GB
+ '[' -d /lib/modules/2.4.18-4GB/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-4GB/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-4GB/kernel/drivers/video
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-4GB/kernel/drivers/video
install: cannot stat `NVdriver': No such file or directory
Bad exit status from /var/tmp/rpm-tmp.89609 (%install)
I'm assuming thats bad, So now I'm lost once again, and any help any of you may have would be greatly appreciated. Trying to get these drivers to work has been the reason I've stopped trying to use Linux at all, many times before, so I'm desperate to finally get it working. Thanks! - John
LaoTzuTao is offline   Reply With Quote
Old 09-09-02, 12:20 AM   #2
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

just read the output:

---snip----

+ make NVdriver
/var/tmp/rpm-tmp.89609: make: command not found
+ exit 0

--snap----

what about installing the needed software as stated in the readme from nvidia?

I don't know the package name exactly, but look in the development section for
"make" (just figured it's in "d2", and it's really called make)

HTH
mtrr is offline   Reply With Quote
Old 09-09-02, 12:00 PM   #3
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Default

Ok well I had no idea you actually had to install a 'make' program, I thought it was a standard program within the console, but I checked through SuSE's software packages and there it was, called 'make' So I installed the package, tried again, and this time, my response is...
Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.37720
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf NVIDIA_kernel-1.0-2960
+ /bin/gzip -dc /usr/src/packages/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.37720
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=3.0.6
++ echo 3.0.6
++ awk -F . '{print $1;}'
+ RPMMAJOR=3
++ echo 3.0.6
++ awk -F . '{print $2;}'
+ RPMMINOR=0
++ echo 3.0.6
++ awk -F . '{print $3;}'
+ RPMPATCH=6
+ '[' 3 -le 3 -a 0 -le 0 -a 6 -lt 4 ']'
+ make NVdriver
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
nv.c:12: linux/config.h: No such file or directory
nv.c:25: linux/module.h: No such file or directory
In file included from nv.c:27:
nv-linux.h:19: linux/config.h: No such file or directory
nv-linux.h:24: linux/version.h: No such file or directory
nv-linux.h:25: linux/wait.h: No such file or directory
nv-linux.h:26: linux/fs.h: No such file or directory
nv-linux.h:27: linux/poll.h: No such file or directory
nv-linux.h:28: linux/slab.h: No such file or directory
nv-linux.h:29: linux/vmalloc.h: No such file or directory
nv-linux.h:32: parse error
nv-linux.h:34: parse error
nv-linux.h:36: parse error
nv-linux.h:38: parse error
nv-linux.h:40: parse error
nv-linux.h:44: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:53: linux/autoconf.h: No such file or directory
nv-linux.h:109: linux/spinlock.h: No such file or directory
nv.c:32: linux/stddef.h: No such file or directory
nv.c:33: linux/mm.h: No such file or directory
nv.c:34: linux/kernel.h: No such file or directory
nv.c:35: linux/fs.h: No such file or directory
nv.c:36: linux/errno.h: No such file or directory
nv.c:37: linux/types.h: No such file or directory
nv.c:38: linux/proc_fs.h: No such file or directory
nv.c:39: linux/fcntl.h: No such file or directory
nv.c:40: linux/pci.h: No such file or directory
nv.c:41: linux/delay.h: No such file or directory
nv.c:42: linux/interrupt.h: No such file or directory
nv.c:43: linux/tqueue.h: No such file or directory
nv.c:44: linux/poll.h: No such file or directory
nv.c:53: asm/page.h: No such file or directory
nv.c:54: asm/pgtable.h: No such file or directory
nv.c:55: asm/system.h: No such file or directory
nv.c:56: asm/segment.h: No such file or directory
nv.c:57: asm/uaccess.h: No such file or directory
nv.c:58: asm/io.h: No such file or directory
nv.c:59: asm/softirq.h: No such file or directory
nv.c:62: linux/spinlock.h: No such file or directory
nv.c:63: linux/highmem.h: No such file or directory
nv.c:67: asm/smp.h: No such file or directory
nv.c:69: linux/wrapper.h: No such file or directory
nv.c:180: parse error
nv.c:784: parse error
nv.c:1098: parse error
nv.c:1127: parse error
nv.c:1470: parse error
nv.c:3020: parse error
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.37720
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.18-4GB
+ TARGET_KERNEL=2.4.18-4GB
+ '[' -d /lib/modules/2.4.18-4GB/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-4GB/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-4GB/kernel/drivers/video
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-4GB/kernel/drivers/video
install: cannot stat `NVdriver': No such file or directory
Bad exit status from /var/tmp/rpm-tmp.37720 (%install)

Obviously no luck this time either, for reasons I still can't understand. Just for kicks, I tried to the tar files also, but got a similar response...

linux:~/NVIDIA_kernel-1.0-2960 # make install
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
nv.c:12: linux/config.h: No such file or directory
nv.c:25: linux/module.h: No such file or directory
In file included from nv.c:27:
nv-linux.h:19: linux/config.h: No such file or directory
nv-linux.h:24: linux/version.h: No such file or directory
nv-linux.h:25: linux/wait.h: No such file or directory
nv-linux.h:26: linux/fs.h: No such file or directory
nv-linux.h:27: linux/poll.h: No such file or directory
nv-linux.h:28: linux/slab.h: No such file or directory
nv-linux.h:29: linux/vmalloc.h: No such file or directory
nv-linux.h:32: parse error
nv-linux.h:34: parse error
nv-linux.h:36: parse error
nv-linux.h:38: parse error
nv-linux.h:40: parse error
nv-linux.h:44: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:53: linux/autoconf.h: No such file or directory
nv-linux.h:109: linux/spinlock.h: No such file or directory
nv.c:32: linux/stddef.h: No such file or directory
nv.c:33: linux/mm.h: No such file or directory
nv.c:34: linux/kernel.h: No such file or directory
nv.c:35: linux/fs.h: No such file or directory
nv.c:36: linux/errno.h: No such file or directory
nv.c:37: linux/types.h: No such file or directory
nv.c:38: linux/proc_fs.h: No such file or directory
nv.c:39: linux/fcntl.h: No such file or directory
nv.c:40: linux/pci.h: No such file or directory
nv.c:41: linux/delay.h: No such file or directory
nv.c:42: linux/interrupt.h: No such file or directory
nv.c:43: linux/tqueue.h: No such file or directory
nv.c:44: linux/poll.h: No such file or directory
nv.c:53: asm/page.h: No such file or directory
nv.c:54: asm/pgtable.h: No such file or directory
nv.c:55: asm/system.h: No such file or directory
nv.c:56: asm/segment.h: No such file or directory
nv.c:57: asm/uaccess.h: No such file or directory
nv.c:58: asm/io.h: No such file or directory
nv.c:59: asm/softirq.h: No such file or directory
nv.c:62: linux/spinlock.h: No such file or directory
nv.c:63: linux/highmem.h: No such file or directory
nv.c:67: asm/smp.h: No such file or directory
nv.c:69: linux/wrapper.h: No such file or directory
nv.c:180: parse error
nv.c:784: parse error
nv.c:1098: parse error
nv.c:1127: parse error
nv.c:1470: parse error
nv.c:3020: parse error
make: *** [nv.o] Error 1

It seems like I'm missing a whole bunch of stuff, I have no idea. Sorry for the longs posts...But any ideas?? Am I missing some more packages??
LaoTzuTao is offline   Reply With Quote
Old 09-09-02, 12:51 PM   #4
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

missing a lot! look for the kernel headers, or install the kernel sources....


look in "/usr/src/linux" that's a nearly empty directory... (some nasty SuSE behaviour)


cheers
mtrr is offline   Reply With Quote
Old 09-09-02, 02:22 PM   #5
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Default

Ok well I checked and I don't even have a usr/src/linux dir, only a usr/src/packages dir. So what exactly do I need to install? I'm not sure what kernel headers are, yes yes, I'm very new, can anyone give me some more detailed directions as to what do now? Thanks!
LaoTzuTao is offline   Reply With Quote
Old 09-09-02, 02:31 PM   #6
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

no prob

newbies are welcome..... you could install the kernel source (it's in d3) after
that you should be set. don't know the name for the header only package....

use yast to add the missing packages.

cheers

you can contact me via ICQ in about one hour
mtrr is offline   Reply With Quote
Old 09-09-02, 05:15 PM   #7
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Default

Thank you! I finally got it the drivers working. But, as always, theres still a problem. My glx isn't loading properly, so I checked the log and this is what it says...
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/glx.so
(EE) LoadModule: Module glx does not have a glxModuleData data object.
(II) UnloadModule: "glx"
(II) Unloading /usr/X11R6/lib/modules/glx.so
(EE) Failed to load module "glx" (invalid module, 0)

So I'm reading through the README once again, searching for clues, any ideas? Thanks!
LaoTzuTao is offline   Reply With Quote
Old 09-09-02, 05:44 PM   #8
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

what about installing the nvidia glx package? sounds like an option to me

seems that you finally managed to compile and install the driver.
there is a second component that is needed.

http://download.nvidia.com/XFree86_4...use80.i386.rpm

get it and install it


cheers
mtrr is offline   Reply With Quote

Old 09-09-02, 07:31 PM   #9
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Default

I already installed the GLX driver. I installed both files, they're both verified by 3ddiag, and are listed in my package list as installed. Let me try to describe what I did...First, I rpm --rebuilt the kernel source, which ran fine and created a new rpm for me to install. So then I rpm --ivh the newly created kernel.rpm file. All ran smooth. I did the same thing for the GLX driver...rpm --rebuild, created new rpm, installed the rpm. I edited the config, and bam, it was all working fine. Tested it with 3ddiag, and all was verified. However, when I ran any OpenGL apps, it would run deathly slow. So I searched the NVIDIA README some more. And I came across this...

Q: Why do OpenGL applications run so slow?

A: The application is probably using a different library still on your system, rather than the NVIDIA supplied OpenGL library. Please see APPENDIX C for details.

Also...

You should also check that the correct extensions are present; 'xdpyinfo' should show the "GLX", "NV-GLX" and "NVIDIA-GLX" extensions present. If these three extensions are not present, then there is most likely a problem with the glx module getting loaded or it is unable to implicitly load GLcore. Check your XF86Config file and make sure that you are loading glx (see "Editing Your XF86Config File" above). If your XF86Config file is correct, then check the XFree86 log file for warnings/errors pertaining to GLX. Also check that all of the necessary symlinks are in place (refer to Appendix C).

So I ran xdpyinfo and out of those I only had NV-GLX, and although it's not listed there I also have NV-CONTROL. Also thats when I checked my log and found the GLX load error which I pasted in the last post.
Was I only supposed to compile the kernel source, then download the stock SuSE 8.0 GLX? It just seems to me like the GLX I installed left out a lot of stuff. I'm gonna keep toying around with it for a while longer. Geez, sorry for the long posts, but I'm trying to give you guys as much info as possible. Thanks for all the help!
LaoTzuTao is offline   Reply With Quote
Old 09-09-02, 07:58 PM   #10
LaoTzuTao
Registered User
 
Join Date: Sep 2002
Posts: 23
Send a message via AIM to LaoTzuTao
Default

WOOHOO! Well, I guess I wasn't supposed to compile the GLX source, I uninstalled it and installed the stock SuSE8.0 GLX rpm and just restarted x, and it works finally. I was getting 90+ fps in the app now. Thanks so much for all your help! I think I'm gonna have to start another post now on how to get FSAA and Anisoptric filtering to work Thanks again!
LaoTzuTao is offline   Reply With Quote
Old 01-19-03, 05:15 AM   #11
MoMo
Registered User
 
MoMo's Avatar
 
Join Date: Jan 2003
Posts: 1
Default

Hi LaoTzuTao,

I've got actully the same problems as you.
I want to rebuild the src.rpm-Kernel because the "normal" rpm-package doesn't run, but get any output like yours.
Do you exactly know how to install kernel source from the SuSE DVD/CDs? A step-by-step introduction for YaST2 would be nice.

Yours,
MoMo
MoMo is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interview: Edd Dumbill on the Drivers of Open Source at OSCON News Archived News Items 0 07-15-12 01:40 AM
Team Fortress 2, Counter-Strike: Source, Day of Defeat: Source and Half-Life 2: Death News Archived News Items 0 07-03-12 02:30 AM
What is the Current Status of the iZ3D Driver Open Source Project News Archived News Items 0 06-30-12 07:50 AM
My source RPM won't build right! z28Power NVIDIA Linux 5 09-18-02 11:55 AM
Mandrake 8.2 Nvidia src.rpm problems Mr_Malcontent NVIDIA Linux 8 09-11-02 09:53 PM

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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.