Red Hat This forum is for the discussion of Red Hat Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
04-03-2004, 10:47 AM
#1
LQ Newbie
Registered: Sep 2003
Posts: 1
Rep:
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
04-03-2004, 01:42 PM
#2
Member
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 446
Rep:
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.
04-03-2004, 02:49 PM
#3
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
*are you root?
*is the file a .RPM or a .SRC.RPM which is different?
04-26-2004, 12:37 AM
#4
LQ Newbie
Registered: Mar 2004
Location: Russia
Posts: 13
Rep:
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?
04-26-2004, 01:40 AM
#5
LQ Newbie
Registered: Mar 2004
Location: Russia
Posts: 13
Rep:
i fiound answer.
02-09-2008, 08:15 AM
#6
LQ Newbie
Registered: Jun 2006
Posts: 3
Rep:
Quote:
Originally Posted by
sawoy
i fiound answer.
I have the same problem AMD x86_64 fedora 8. What was your solution?
02-09-2008, 03:50 PM
#7
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
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
01-16-2012, 01:15 PM
#8
LQ Newbie
Registered: Jan 2012
Posts: 1
Rep:
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.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:54 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News