Click to See Complete Forum and Search --> : Linux says it can't find the file when it's right there!


Siskmarek
11-13-2001, 01:21 AM
Okay, this is a really odd and annoying problem.

Got a GF2MX400 recently and I'm trying to install the NVidia drivers for it. Since I'm using Mandy 8.1 I can't use any of the distribution-specific RPMs (it complains about wanting an older kernel with the 8.0 packages, and if I force it, bad things tend to happen o.0 ;). So I downloaded the sRPMs instead and tried to compile it for myself:
$rpm --rebuild NVIDIA_kernel-xxx.src.rpm
NVIDIA_kernel-xxx.src.rpm: No such file or directory.
$

...

Excuse me?

Yes, I am in the exact same directory as the file, just to let you know I'm not a complete and utterly pathetic newbie.

So... why is it doing this when I use the --rebuild option?

I've grabbed the tarballs any way, and from the looks of it the drivers are complaining that I don't have kernel-source installed (and I can't find the package any where on any of the install CDs... very disturbing), so I'll have to download a new kernel, compile and install it so that hopefully the nvidia drivers will know where the new kernel source is. But I'm so inexperienced with kernel compiles, even after 5 attempts which all failed. Hell, I don't even know if getting a new kernel will help solve the problem.

But that's not what my question is. While I can probably eventually get around the tarball compile problem, rpm not even being able to find a file in the exact same directory that I am is... well... a problem!

~ Siskie

vee-eye
11-13-2001, 01:30 AM
Try:

rpm --rebuild ./NVIDIA_kernel-xxx.src.rpm

That just might work. Also, do:

ls NVIDIA_kernel-xxx.src.rpm

and see if ls reports that the file exists (just to make sure ;)).

Siskmarek
11-13-2001, 01:33 AM
Well, I found the kernel-source package. For some reason Mandrake's Software Manager wasn't seeing it at all so I had to go cd-hunting.

But my problem with the damned rpm --rebuild not being able to see jack still remains. ='P

~ Siskie

Siskmarek
11-13-2001, 01:37 AM
Ack! People posting while I'm posting! ='P

Any way, I did:
$ rpm --rebuild ./NVIDIA_kernel-1.0-1541.src.rpm
./NVIDIA_kernel-1.0-1541.src.rpm: No such file or directory

stuff and that didn't work, as you can see. Doing the:

$ ls NVIDIA_kernel-1.0-1541.src.rpm
NVIDIA_kernel-1.0-1541.src.rpm

gives that..

I guess that means it is there.

But rpm --rebuild still can't see it. Argh!

~ Siskie

SUOrangeman
11-13-2001, 11:52 AM
I believe there are Mandrake-specific RPMs of the latest nVidia drivers on the MandrakeUser or MandrakeExpert website (can't remember which).

-SUO

Matches Malone
11-13-2001, 12:37 PM
Make sure ya take note of CASE too :D
Lin is SO DERN PICKY hehehe

Siskmarek
11-13-2001, 12:53 PM
I use tab completion, so I don't think this is a case-sensitive issue.

I'll hunt around for the Mandrake-specific RPMS on those aforementioned sites, but my question is still not answered as to why rpm --rebuild cannot see a file in the same directory I am in. ='P

~ Siskie

camelrider
11-13-2001, 03:44 PM
Have you tried:
rpm --rebuild /complete/path/to/package.rpm
?

p2
11-13-2001, 08:12 PM
Have you tried doing it as root?