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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-01-03, 02:36 PM   #1
akidd
Registered User
 
Join Date: Mar 2003
Posts: 2
Default Can't install Nvidia Drivers - stupid and frustrated

I had the same problems with release RH 8.0, but I'm now running phoebe beta 3. Beta 3 is more stable on my machine - so no lectures, OK? I've read the Nvidia README and 3 guides online and the forums, and I am still missing something. You would be my hero if you could help... feel free to insult and call me newbie:

First thing usually quoted as the problem, the dependencies to build verified here:

[root@ShuttleXLinux tmp]# rpm -qa|grep rpm-build
rpm-build-4.2-0.66
[root@ShuttleXLinux tmp]# rpm -qa|grep gcc
gcc-g77-3.2.1-7
gcc-java-3.2.1-7
libgcc-3.2.1-7
compat-gcc-7.3-2.96.118
gcc-3.2.1-7
gcc-c++-3.2.1-7
compat-gcc-c++-7.3-2.96.118
gcc-gnat-3.2.1-7
[root@ShuttleXLinux tmp]# rpm -qa|grep binutils
binutils-2.13.90.0.18-6
[root@ShuttleXLinux tmp]# rpm -qa|grep glibc-devel
glibc-devel-2.3.1-46
[root@ShuttleXLinux tmp]# rpm -qa|grep glibc-kernheaders
glibc-kernheaders-2.4-8.10
[root@ShuttleXLinux tmp]# rpm -qa|grep kernel-source
kernel-source-2.4.20-2.48

-------------

Verify kernel:

[root@ShuttleXLinux tmp]# uname -a
Linux ShuttleXLinux 2.4.20-2.48 #1 Thu Feb 13 11:52:55 EST 2003 i686 i686 i386 GNU/Linux

-------------

Next, correct files from NVIDIA:

NVIDIA_GLX-1.0-4191.i386.rpm (tried the source GLX also)
NVIDIA_kernel-1.0-4191.src.rpm

-------------

Next, are you root? Yes

-------------

I run rpm -ivh NVIDIA*

The two .spec files are located ls /usr/src/redhat/SPECS
NVIDIA_GLX.spec NVIDIA_kernel.spec

-------------

Then rpmbuild --bb NVIDIA*

[root@ShuttleXLinux tmp]# rpmbuild --rebuild NVIDIA_kernel-1.0-4191.src.rpm
Installing NVIDIA_kernel-1.0-4191.src.rpm
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.83756
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-4191
+ /bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-4191.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-4191
++ /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.83756
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.2
++ echo 4.2
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.2
++ awk -F . '{print $2;}'
+ RPMMINOR=2
++ echo 4.2
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 2 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.83756: line 35: [: too many arguments
+ make nvidia.o
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 -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.20-2.48/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-2.48/build/include/linux/vmalloc.h:8,
from nv-linux.h:64,
from nv.c:14:
/lib/modules/2.4.20-2.48/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-2.48/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1282: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer from integer without a cast
nv.c:1282: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1282: too few arguments to function `remap_page_range_R839d959e'
nv.c:1301: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer from integer without a cast
nv.c:1301: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1301: too few arguments to function `remap_page_range_R839d959e'
nv.c:1387: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer from integer without a cast
nv.c:1387: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1387: too few arguments to function `remap_page_range_R839d959e'
nv.c: In function `nv_get_phys_address':
nv.c:2250: warning: implicit declaration of function `pte_offset'
nv.c:2250: invalid type argument of `unary *'
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.85105
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.20-2.48
+ TARGET_KERNEL=2.4.20-2.48
+ '[' -d /lib/modules/2.4.20-2.48/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.20-2.48/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-2.48/kernel/drivers/video
+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-2.48/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.85105 (%install)

RPM build errors:
user buildmeister does not exist - using root
group buildmeister does not exist - using root
user buildmeister does not exist - using root
group buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.85105 (%install)

-------------

As I said, feel free to abuse me for being stupid. But I've spent hours running variations of the above and searching for answers. So I'm stupid, please help?
akidd is offline   Reply With Quote
Old 03-01-03, 06:46 PM   #2
DustSmoke
Registered User
 
Join Date: Dec 2002
Posts: 24
Default

Are you saying that you rpm -ivh the src.rpm?

That's not the way to go about it.

get src glx and kernel

rpmbuild --rebuild (both files)

THEN

rpm -ivh /usr/src/redhat/RPMS/path to where rpmbuild says WROTE: /usr/src/redhat/RPMS/blabla

then edit X86Config like in the instructions.

or use the tarballs,
./configure
make
make install
DustSmoke is offline   Reply With Quote
Old 03-02-03, 02:37 AM   #3
akidd
Registered User
 
Join Date: Mar 2003
Posts: 2
Default still don't work...

Dustsmoke,

Thanks for the reply. Appreciated. I get the same exact error msg doing it the way you suggest.

I'll try the tarballs - but I'd really like to understand why I can't make the RPMs work and everyone else on the planet apparently can. I want to learn so I can solve probs like this myself
akidd is offline   Reply With Quote
Old 03-02-03, 04:42 AM   #4
ppieti
Registered User
 
Join Date: Feb 2003
Posts: 8
Default

Hi, please see the "Phoebe HOWTO" thread for information on how to get things running (and read it completely, my original posting missed an important step). There's also links to RPMS that work with phoebe (no personal experience)
ppieti 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


All times are GMT -5. The time now is 05:56 AM.


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