PDA

View Full Version : src help please



Graard
28th January 2005, 03:27 PM
I'm running FC3 and trying to install kernel source. I log in as root and when I run
rpm -ivh kernel-2.6.10-1.741_FC3.src.rpm , I get this error - cannot create %sourcedir /usr/src/redhat/SOURCE.
Any help would be appreciated.
thanks in advance.

Jman
29th January 2005, 04:50 AM
That directory is named SOURCES in my install.

Other than that, I don't see why it wondn't work. You are root, after all.

Try it with rpm -ivvh to get even more verbose information, like if it was a permission denied error.

Graard
30th January 2005, 12:21 AM
Hi Jman,
I tried the rpm ivvh like you suggested and this is what i got :

[root@localhost downloads]# rpm -ivvh kernel-2.6.10-1.741_FC3.src.rpm
D: ============== kernel-2.6.10-1.741_FC3.src.rpm
D: Expected size: 37296613 = lead(96)+sigs(344)+pad(0)+data(37296173)
D: Actual size: 37296613
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 579 Header sanity check: OK
D: ========== DSA pubkey id b44269d04f2a6fd2
D: kernel-2.6.10-1.741_FC3.src.rpm: V3 DSA signature: OK, key ID 4f2a6fd2
D: added source package [0]
D: found 1 source and 0 binary packages
D: Expected size: 37296613 = lead(96)+sigs(344)+pad(0)+data(37296173)
D: Actual size: 37296613
error: cannot create %sourcedir /usr/src/redhat/SOURCES
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
[root@localhost downloads]

any thing elsei might try ?
thanks again

macemoneta
30th January 2005, 12:58 AM
The message means that you don't have the /usr/src/redhat directory setup:

Copy/paste this block to correct the directory structure (into a root terminal session):

/bin/rm -rf /usr/src/redhat
/bin/mkdir /usr/src/redhat
/bin/mkdir /usr/src/redhat/BUILD
/bin/mkdir /usr/src/redhat/RPMS
/bin/mkdir /usr/src/redhat/SOURCES
/bin/mkdir /usr/src/redhat/SPECS
/bin/mkdir /usr/src/redhat/SRPMS

Void Main
30th January 2005, 01:06 AM
Or just install the rpm-build package which you might want installed anyway if you want to build the new kernel as an RPM.

Graard
30th January 2005, 03:03 AM
Thanks for the help all. I got it

Heon2574
23rd April 2005, 06:03 PM
The message means that you don't have the /usr/src/redhat directory setup:

Copy/paste this block to correct the directory structure (into a root terminal session):

/bin/rm -rf /usr/src/redhat
/bin/mkdir /usr/src/redhat
/bin/mkdir /usr/src/redhat/BUILD
/bin/mkdir /usr/src/redhat/RPMS
/bin/mkdir /usr/src/redhat/SOURCES
/bin/mkdir /usr/src/redhat/SPECS
/bin/mkdir /usr/src/redhat/SRPMS

Thanks, this works.