LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-21-2009, 09:06 AM   #1
praveen_darshanam
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
RPM installation gives "error: cannot create %sourcedir /usr/src/redhat/SOURCES"


hi friendz,

i am trying to install ethereal rpm with root privileges with the following command
rpm -ivh --aid /home/praveen/softwares/ethereal-0.8.16-1.i386.rpm
i got the following error
error: cannot create %sourcedir /usr/src/redhat/SOURCES

one more thing...how ro install dependencies if there are any??

regards,
praveen darshanam
 
Old 01-22-2009, 02:01 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Regarding the "cannot create..." error, maybe you miss the rpm-build package. Install that first, since it should take care of creating /usr/src/redhat/SOURCES when needed. Then retry the installation of the ethereal package.

To install dependencies, you can try to use an interface to the rpm command which takes care of dependencies for you. On RedHat like systems you can try yum, on OpenSuse you can try zypper. Which Linux are you running on?
 
Old 01-22-2009, 02:04 AM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
The message is saying it could not create the directory /usr/src/redhat/SOURCES

I am guessing, but I would suspect that the /usr/src/redhat directory doesn't exist, therefore when it tries to create a sub-directory it fails.

run: ls /usr/src/redhat

If it tells you "No such file or directory" then create one (as root):
mkdir /usr/src/redhat
 
Old 01-24-2009, 05:49 AM   #4
praveen_darshanam
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
i created the directory SOURCES then i was able to install.

when i am running yum command iam getting an error regarding [repo] and the command closes.

i am trying to install ethereal on FC2.

thanx for the help.
 
Old 01-24-2009, 05:58 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
FC2 is like 5 years old, hopelessly outdated, vulnerable and should not be used. Next to that you're not installing an RPM package but a source (.src.rpm) package so your posted commandline can not be true. If you want Fedora then please keep up with releases. It's F10 now, thanks.
 
Old 01-24-2009, 05:59 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by praveen_darshanam View Post
when i am running yum command iam getting an error regarding [repo] and the command closes.
Please, post the exact error message (paste and copy from a terminal embedding in CODE tags) otherwise we cannot be of much help.

Edit: I agree to unSpawn's comment!

Last edited by colucix; 01-24-2009 at 06:01 AM.
 
  


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
Installing fusefs-kmod: "Set SRC_BASE if it is not in /usr/src" odiseo77 *BSD 5 07-14-2009 05:33 PM
error: cannot create %sourcedir /usr/src/redhat/SOURCES Eliaquim Linux - Newbie 3 12-07-2007 03:48 AM
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 12:22 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 10:35 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