LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-06-2007, 09:21 PM   #1
Eliaquim
LQ Newbie
 
Registered: Dec 2007
Location: Cebu, Phillippines
Posts: 6

Rep: Reputation: 0
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..........
 
Old 12-07-2007, 01:59 AM   #2
Eliaquim
LQ Newbie
 
Registered: Dec 2007
Location: Cebu, Phillippines
Posts: 6

Original Poster
Rep: Reputation: 0
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............................
 
Old 12-07-2007, 02:21 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,082

Rep: Reputation: 299Reputation: 299Reputation: 299
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".
 
Old 12-07-2007, 03:48 AM   #4
Eliaquim
LQ Newbie
 
Registered: Dec 2007
Location: Cebu, Phillippines
Posts: 6

Original Poster
Rep: Reputation: 0
You save my day dude

Thank you very much........................
 
  


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 error: cannot create %sourcedir ticro Red Hat 13 04-01-2013 08:27 AM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
Fc5 /usr/src/redhat Fredstar Linux - Newbie 3 04-16-2006 05:54 PM
where are located the ethernet-card driver sources code in OpenBSD /usr/src/...? maqelgav *BSD 5 06-09-2004 03:02 AM
No sources in /usr/src after Installation opa_munster Linux - Newbie 3 07-31-2003 01:07 AM


All times are GMT -5. The time now is 06:55 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