LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 10-24-2001, 11:13 AM   #1
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Rep: Reputation: 15
rpm --rebuild: No such file or directory


I'm trying to rebuild NVIDIA_kernel drivers in RedHat 7.2.. As root running the command, I get the vauge error listed in the title. I've tried using the full path in the command line yet the problem persists.
 
Old 10-24-2001, 11:21 AM   #2
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Original Poster
Rep: Reputation: 15
Egad.. my first question here and I think i've answered it myself. "twas and operator error on my behalf.. dev software was not installed
 
Old 10-24-2001, 11:30 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
the nvidia RPM files generally don't work

you should ALWAYS compile from source.
 
Old 10-24-2001, 04:36 PM   #4
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Original Poster
Rep: Reputation: 15
Right, which is why i was trying to rebuild them

..now I have another problem with rebuilding them

By default, RedHat 7.2 I suppose does not install the source files of the kernel. So, when I throw the command rpm --rebuild NVIDIA_kernel.src.rpm it reports some ambigous errors dealing with having to use the kernel's source as reference. Needless to say, the location I'd expect to find that source (/usr/src/) has nothing but 'redhat' in it. I've chased links around to end up up at /lib/moduals/2.4.7-10 where i'm not at a loss as how to actually commit, much less locate, the 'real' kernel in the --rebuild proccess.
 
Old 10-24-2001, 04:56 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you won't find redhat listed in /usr/src. redhat is just the company that puts their distro together and fiddles with things so they *just* break when you don't want them to ;-).

install kernel-source-versionwhatever.rpm from the cdr's.

sorry, when i said compile from source, i meant to say use the tar.gz files instead of the rpm.
 
Old 10-24-2001, 05:13 PM   #6
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Original Poster
Rep: Reputation: 15
$make install
rm -f nv.o os-interface.o os-registry.o Module-linux NVdriver
cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O -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 -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=1541 -I. -I/lib/modules/2.4.7-10/build/include nv.c
In file included from nv.c:50:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make: *** [nv.o] Error 1

Thats the errata from a 'make install' of the tar file. Basically, the same thing the rpm reports.. just not as short.
 
Old 10-24-2001, 05:16 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
By the look of that, you've not got the kernel headers installed. stick them in too.

might help. i hope.
 
Old 10-24-2001, 06:21 PM   #8
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Original Poster
Rep: Reputation: 15
No suprise here.. adding the header rpm from the CD didn't happen. Using 'force', it completed with no errors, however, nothing has changed from last.

in /lib/moduals/2.4.7-10/ the symbolic link 'build' is broken. It thinks it pointing to /usr/src/linux-2.4.7-10 where ofcourse nothing exists.

should the rpms add with no qualm?
 
Old 10-25-2001, 05:32 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well, it shouldn't point to /usr/src as that's source code, not compiled. ls -l should tell you where the link is trying to point to.

what do you mean by 'didn't happen'? f you've installed the kernel source rpm, then it will always be located in /usr/src/linux-version/ You might need to symlink the source directory to an alternative name, such as just /usr/src/linux/ as some programs have trouble finding that location.

but source shouldn't really be needed, it should only require headers to get the job done.

i can't find out where the headers are meant to be at the moment, think it's /usr/include/linux, not sure tho. they really do need to be installed properly tho.

if you 're compiling from source, you should be able to define the locatino of the headers as an ./configure option, if it's simply a case of not being able to find them
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm rebuild Xris718 Linux - General 2 05-06-2005 01:34 PM
rpm --rebuild juworld Linux - Newbie 1 02-27-2004 02:30 PM
rpm rebuild talkinggoat Linux - Software 15 09-27-2003 03:02 PM
rpm --rebuild chrisknight Linux - General 1 07-13-2003 08:12 PM
RPM --rebuild function finds no directory. sk545 Linux - Software 1 08-27-2002 09:36 PM


All times are GMT -5. The time now is 07:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration