LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 02: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, 03:21 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 04: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 09: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 09:43 AM
Fc5 /usr/src/redhat Fredstar Linux - Newbie 3 04-16-2006 06:54 PM
where are located the ethernet-card driver sources code in OpenBSD /usr/src/...? maqelgav *BSD 5 06-09-2004 04:02 AM
No sources in /usr/src after Installation opa_munster Linux - Newbie 3 07-31-2003 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration