LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error: cannot create %sourcedir /usr/src/redhat/SOURCES (https://www.linuxquestions.org/questions/linux-newbie-8/error-cannot-create-sourcedir-usr-src-redhat-sources-605083/)

Eliaquim 12-06-2007 09:21 PM

error: cannot create %sourcedir /usr/src/redhat/SOURCES
 
I am installing OpenPegasus 2.7.0 Source RPM

Install the Source RPM using the following command:

rpm -ih tog-pegasus-2.7.0-2.src.rpm

[root@localhost Eliaquim]# rpm -ih tog-pegasus-2.7.0-2.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES

then this error come up....

Hey guys what should I do..........

Eliaquim 12-07-2007 01:59 AM

solved by mkdir
 
I solved this just by making the needed directories by using mkdir
but I have a new problem:

Install the Source RPM using the following command:
# rpm -ih tog-pegasus-2.7.0-2.src.rpm

[root@localhost Eliaquim]# rpm -ih tog-pegasus-2.7.0-2.src.rpm####################################### [100%]


Build the binary RPMs for OpenPegasus 2.7.0 and OpenPegasus SDK 2.7.0 using the following commands:

For RHEL:

rpmbuild -bb --define 'LINUX_VERSION {distro}' /usr/src/redhat/SPECS/tog-pegasus.spec

[root@localhost Eliaquim]# rpmbuild -bb --define 'LINUX_VERSION {distro}' /usr/src/redhat/SPECS/tog-pegasus.spec
error: Failed build dependencies:
pam-devel is needed by tog-pegasus-2.7.0-2.distro.i386
openssl-devel >= 0.9.6 is needed by tog-pegasus-2.7.0-2.distro.i386
net-snmp-devel is needed by tog-pegasus-2.7.0-2.distro.i386

Hey guy out there I would appreciate If anybody could help me about this error............................

btmiller 12-07-2007 02:21 AM

Quote:

error: Failed build dependencies:
pam-devel is needed by tog-pegasus-2.7.0-2.distro.i386
openssl-devel >= 0.9.6 is needed by tog-pegasus-2.7.0-2.distro.i386
net-snmp-devel is needed by tog-pegasus-2.7.0-2.distro.i386
You need to install the pam-devel, openssl-devel, and net-snmp-devel RPMs provided by your distro. What distro/version are you using? If something Red Hat based try seeing if yum is configured and set up to install packages, e.g. by running "yum install pam-devel openssl-devel net-snmp-devel".

Eliaquim 12-07-2007 03:48 AM

You save my day dude
 
Thank you very much........................


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