Red Hat RPM problem

I have my system setup different then the conventional setup:

[root@localhost root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdc2 2.0G 977M 936M 52% /
/dev/hdc1 97M 9.0M 83M 10% /boot
none 251M 0 251M 0% /dev/shm

So when I try to install a RPM which looks for /usr etc. I get an error:

[root@localhost root]# rpm -ivh exim-3.36-5.src.rpm
warning: exim-3.36-5.src.rpm: V3 DSA signature: NOKEY, key ID e01260f1
error: cannot create %sourcedir /usr/src/redhat/SOURCES

How do I fix this error?

Thanks
Jason

For this, put in your Red Hat CD 1 and mount it. Then type:

rpm --import /mnt/cdrom/RPM-GPG-KEY

For the second problem, You need to install the package rpm-build and it will create the directories under /usr/src/redhat for you.

Good Luck

OllieTech,

>rpm --import /mnt/cdrom/RPM-GPG-KEY

Ran the command, but the error is still generated.

>For the second problem, You need to install the >package rpm-build and it will create the >directories under /usr/src/redhat for you.

This did the job, thanks!
What does rpm-build do?

I really appreciate the help!
Jason