LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-03-2004, 10:47 AM   #1
ticro
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
rpm error: cannot create %sourcedir


very newbie here

using redhat 9

I am trying to install samba 3.0.2a-1. This is the first rpm install I've tried. When using the install command # rpm -ivh [filename] I get the following error message:

error: cannot create %sourcedir/usr/src/redhat/sources

Do I have to make a directory to put it in? What directory do I put it in?If so how do I specify rpm to put it there?

Thanks

Ticro
 
Old 04-03-2004, 01:42 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 446

Rep: Reputation: 32
That meesage either means you need to be root to create a directory, or a directory is missing, or the directory is write protected. It could also mean the directory is undefined because of an error in the rpm file.
 
Old 04-03-2004, 02:49 PM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
*are you root?
*is the file a .RPM or a .SRC.RPM which is different?
 
Old 04-26-2004, 12:37 AM   #4
sawoy
LQ Newbie
 
Registered: Mar 2004
Location: Russia
Posts: 13

Rep: Reputation: 0
i also find the answer on this question.
platform: Red Hat Advansed Server 3.0

i'm root.
i want to install mc-4.5.55-5.src.rpm

when i run:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[root@rhas root]# rpm -ivvh /sawoy/mc-4.5.55-5.src.rpm
D: ============== /sawoy/mc-4.5.55-5.src.rpm
D: Expected size: 5973578 = lead(96)+sigs(433)+pad(7)+data(5973042)
D: Actual size: 5973578
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
warning: /sawoy/mc-4.5.55-5.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
D: added source package [0]
D: found 1 source and 0 binary packages
D: Expected size: 5973578 = lead(96)+sigs(433)+pad(7)+data(5973042)
D: Actual size: 5973578
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
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

how i can install this package?
 
Old 04-26-2004, 01:40 AM   #5
sawoy
LQ Newbie
 
Registered: Mar 2004
Location: Russia
Posts: 13

Rep: Reputation: 0
i fiound answer.
 
Old 02-09-2008, 08:15 AM   #6
rshendershot
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by sawoy View Post
i fiound answer.
I have the same problem AMD x86_64 fedora 8. What was your solution?
 
Old 02-09-2008, 03:50 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
One way at least is to build the rpm

Suppose the .src.rpm is in /usr/src

rpmbuild --rebuild package.src.rpm

You should then find the binary rpm in the /usr/src/redhat somewhere, and install as usual
 
Old 01-16-2012, 01:15 PM   #8
joelgriffiths
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
I'm just adding this because it was never properly answered and the thread indexes high on google:

# yum install rpm-build

You are probably missing the rpm-build package. That package creates the missing directory.
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm error: can't create transaction lock NL-Stitch Linux - Newbie 5 10-19-2011 07:50 AM
Create Rpm sjacobs Linux - Software 0 11-03-2005 07:19 AM
Create a RPM of webpages. sachinnshah Linux - General 3 06-03-2004 08:40 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
How can I create an RPM file mayankjohri Linux - Software 1 04-16-2002 08:13 AM


All times are GMT -5. The time now is 02:54 AM.

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