View Full Version : Can't rebuild Srouce RPM for Nvidia in Linux
Hi all,
Follow the Nvidia linux instruction, I downloaded and tried to install the Source RPM on my machine. (Toshiba Satellite Pro 6100 Notebook) using the command:
rpm --rebuild NVIDIA_kernel-1.0-2590.src.rpm
(this Souce RPM is recommaned by the NVchooser program)
However, i got error messages like:
install: cannot stat 'NVdriver': No such file or directory
error: Bad exit Status from /var/tmp/rpm-tmp.40627
Can anyone plz point out what I may missed out?
Thank you very much in advance.
Thunderbird
08-04-02, 03:29 AM
Can you post more of the output when trying to build the source rpm. The real error isn't there. It seems the kernel module didn't compile for some reason and we don't know that reason now. (likely missing kernel headers)
Hi,
I have the same problem. Have you found a solution to your problem?
The probelm was solved easily in my case.
At the first time, the "NVchooser" program reprot I should install the SRMP file, i tried but i got error message.
The second time, it told me I should install the i686.rpm file, i installed it and works fine.
So you should just try install the rph3up686(can't remember the them).
Hope this helps
Okay guys, I just went through these same hoops in Mandrake 8.2. For starters it was no fun... but I did get it working.
Your .src.rpm file is actually a combination of two files, the NVidia source tarball, and a "what to do with it" file similar to a Makefile. I downloaded the tarballs and built them with make, and found that it was complaining about a particular file not being found, unfortunately I didn't write down the filename, not important at this point though, I looked in the makefile and did not see a direct call for this file as in it was a file that make was trying to use directly, so it must be a file that one of the programs make is trying to call must need. So I searched for the file in Software Manager (Mandrake's rpm front end) and found four installable packages with this file, one of which was the gcc 3.0 compiler, anyway I installed all of the packages and then went to rebuild the rpms, the build went smooth and the install went flawlessly after that point.
I am not sure if this helps, but I don't think it can hurt. Good luck! You won't regret it once you get your cards working right... These things rock!
dshipton
08-12-02, 10:36 AM
To rebuild the NVIDIA_kernel .src.rpm you need to have the kernel source installed. You also need to have the same gcc compiler that the kernel was built from. You can override the latter one with an option but their is no getting around not having the kernel source.
Yeah, I figured that one out the hard way... I guess that is the way I learn stuff.
The Butler
08-12-02, 07:33 PM
Where do you get the source?
I have tried up2date -u kernel-source
but it sais None of the packages you requested where found, or they where already updated.
All I want to do is play quake on my linux box .. :( ,..
Not sure what up2date is. But in the wonderful world of Mandrake, kernel sources are in the CDs, simply use Software Manager, click on Installable, and search for kernel and install anything that looks like sources...
...or you could download it here (not fast though)
http://www.rpmfind.net/linux/rpm2html/search.php?query=kernel-source&submit=Search+...&system=&arch=
(Ahhh.. i LOVE rpmfind! :D)
Thunderbird
08-13-02, 07:07 AM
You can find the kernel source and header rpms on your distro cd's.
The Butler
08-13-02, 08:26 AM
Ok .. so .. before I try to recompile the drivers I need to download and install the kernel source first correct? .. This is will the take are of the "no such file or directory" errors that I am receiving when I try and compile the drivers? ..
Also I plan on reinstalling my OS should I not run the up2date?
Also the name for the kernel source on the CD .. is it kernal-source-xxxxx.src.rpm? ..
Sorry for all the questions .. I am really new a linux .. and really want to learn the linux OS.
I suggest befor you do anyting go to here
http://www.nvidia.com/view.asp?PAGE=linux
and carefully read the README file.
It will save your time to do unnecessary steps!
Thunderbird
08-13-02, 08:35 AM
Yeah, the package name is something like: kernel-source-2.4.18-3.rpm and for the headers the same but then with kernel-headers instead of kernel-source. You only need the headers package not the full source.
The Butler
08-13-02, 05:51 PM
The only one I have is the kernan source. I cant fine the kernel headers on the cdom.
So I hopefully installed them correctly ..
rpm -ivh kernel-source-whatever.src.rpm
correct? .. I dont want to screw this up again .. <g>
AlfredSka
08-15-02, 02:38 PM
Ah! Please don't end this thread unanswered, I'm watching and waiting for an answer myself!
I'm in almost the same boat as The Butler, the only difference for myself is that I've updated the kernel to 2.4.18-5 for athlon(Redhat 7.3). I'm also trying to use the SRPM and get the same compile error, so I've downloaded "kernel-2.4.18-5.src.rpm" from redhat and this is where I'm at now.
I'd really like confirmation on The Butler's inquiry as to whether
rpm -ivh kernel-source-whatever.src.rpm
is the correct procedure? Since I used -Uvh when I updated my kernel, I just want to make sure I shouldn't use -Uvh for the source also. (Man, I must sound REALLY new to this, how embarrasing)
I was also unable to find a kernel-header-source, so I'm hoping that the package I downloaded will be enough. Am I correct? (Is The Butler correct?)
Should I also download anything to do with GCC (Like I saw in an earlier post), I just noticed GCC3.2 was released yesterday (though who knows if I'd actually figure out how to install it).
Thanks much.
Thunderbird
08-15-02, 03:28 PM
You need to do:
rpm --rebuild rpmname.src.rpm and then the rpm will be build and placed in /usr/src/redhat/RPMS/i386.
(make sure you have the kernel headers ....)
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.