LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-07-2011, 05:28 AM   #1
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Angry Can't find 'mc' in redhat enterprise 6


Dear all,
I have just installed redhat enterprise 6, to my surprise I didn't find Midnight commander" mc, I can't live without this tool, I tried "yum install mc", I get "no package", I googled for 3 days now and couldn't find a solution. Please help me, many thanks.
Nour.
 
Old 02-07-2011, 05:38 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

The mc rpm can be found here: mc 4.5.39 0.91

Mixed up redhat 6 with redhat 6 el....... Sorry......

Hope this helps.

Last edited by druuna; 02-07-2011 at 12:12 PM.
 
Old 02-07-2011, 11:16 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

Redhat EL 6.0 : You will have to activate your Redhat account, to use yum.
I.e. no pay no packages : EL 6 is a commercial OS.

( The mc version is mc-4.7.0.2-3.el6.)

EL6 source code http://ftp.redhat.com/pub/redhat/lin...t/en/os/SRPMS/

P.S. : mc 4.5.39 0.91 is a twelve years old package.
..

Last edited by knudfl; 02-07-2011 at 11:18 AM.
 
1 members found this post helpful.
Old 02-07-2011, 02:15 PM   #4
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you knudfl,
Yes of course I am registered and my account is activated, but when I type "yum install mc", it doesn't install anything, it gives me:.....no package.
So I will download the version that you sent me and will try to install it, many thanks.
Nour.
 
Old 02-07-2011, 03:47 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
I'd guess that 'mc' is in a repo, you haven't enabled.
( Please ask Redhat : That's what the support is for.)


Be aware, that the package you can download from the above link,
is source code. # rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm
will create an installable package.

..
 
Old 02-07-2011, 05:10 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
If the current RHEL6 doesn't carry Midnight Commander (which would be odd considering they do carry the .src.rpm) then IIGC EPEL and other repo's may carry RHEL6 addons already. See their respective web sites or for instance http://www.linuxquestions.org/questi...tories-811575/ for an example yum config.

YMMV(VM) as always.
 
Old 02-08-2011, 06:13 AM   #7
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
group mockbuild does not exist- using root

Dear all,
Thank you very much for your help, another maybe trivial question sorry about that, when I type: rpm -ivh mc-4.7.0.2-3.el6.src.rpm, I get this:warning: group mockbuild does not exist - using root.
I have spent the whole day googling, found no solution. I have even tried to download the .tar.gz file of mc but then once unzipped and entered the directory mc, I run ./configue, I get :configure: error: cannot find install-sh or install.sh in config.

Any help will be very appreciated.
Nour.
 
Old 02-08-2011, 07:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
rpm -Uvh mc-4.7.0.2-3.el6.src.rpm will unpack the source code files
to probably /usr/src/redhat/SOURCES/
( 'rpm -ivh' is an unusual command : yum uses 'rpm -Uvh'.)

The idea is to run # rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm
or : rpmbuild -bb mc.spec , to get an installable package.

The information "group mockbuild does not exist" comes from the
cpio archive inside the package : Tells, who the packager is.

Please do not download an mc.4.7.0.2.tar.bz2 : You already have it in
/usr/src/redhat/SOURCES/

..
 
Old 02-09-2011, 06:26 AM   #9
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
No package rpmbuild available

Dear knudfl,
I am embarassed to post another question, when I type as you told me :rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm , I get: bash: rpmbuild: command not found. So I typed : yum install rpm ,the answer I get is: Package rpm-4.8.0-12.el6.x86_64 already installed and latest version. I tried to run : locate rpmbuild, I found it in :/usr/share/man/ja/man8/rpmbuild.8.gz , do I have to configure it from there then make and make install.
Also I couldn't find the directory redhat, I found the directory rpmbuild in : /root/rpmbuild/SOURCES.
I am honestly confused.
Kind regards.
Nour.
 
Old 02-09-2011, 09:19 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Installing 'rpm-build' : # yum install rpm-build
There are some search functions that are nice to know.
( Please read 'man yum', etc. http://www.centos.org/docs/5/html/yum/ )

1) yum search rpm : Will also include rpm-build.

2) yum provides */rpmbuild : Will reply /usr/bin/rpmbuild + the package name.


Setting up an unprivileged rpmbuild account in /home/<user-name> : post#13 here
http://www.linuxquestions.org/questi...1-a-766486/#13

It is a disadvantage to use rpmbuild as root.
With the above you can use rpmbuild without switching to root : No su.

..
 
Old 02-14-2011, 02:16 PM   #11
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
where is the directory redhat

I am frankly puzzled, I have made a lot of progress thanks to knudfl, I have built the rpmbuild tree as suggested:
mkdir -p --verbose $HOME/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} && etc...
all went well, but when I execute rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm , I get: bash: rpmbuild: command not found, I sourced the .bashrc but still the same problem. What puzzled me most is the fact that I don't have /usr/src/redhat/SOURCES, I only have /usr/src and when I run ls I get : kernel and debugs but not redhat. Also mc.4.7.0.2.tar.bz2 is in /home/my name/rpmbuild/SOURCES but not in /usr/src/redhat/SOURCES.
This might be trivial for many of you but I can't see it, so any help please will be appreciated.
Nour.
 
Old 02-15-2011, 06:25 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Quote:
I don't have /usr/src/redhat/SOURCES
Not really required, but will appear, when you install the package 'rpm-build'.

REPEAT : # yum install rpm-build

..
 
Old 02-15-2011, 11:56 PM   #13
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
No package rpm-build available.

Hi,
When I run: yum install rpm-build, this is what I get: No package rpm-build available.
Does that mean that I have to look for it from somewhere else and not redhat enterprise linux 6.

many thanks.
 
Old 02-16-2011, 12:53 AM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
what repos do you have installed and turned on
Code:
yum repolist all
that will give the info for all installed repos
Also i have found it ALWAYS better to first run a yum search THEN install using the search results
Code:
yum search rpm*
also it is odd that MC is not in the rhn extras
it is in 'Scientific Linux 6' that i run
there is a variation on it Gnome-commander

Last edited by John VV; 02-16-2011 at 12:55 AM.
 
Old 02-16-2011, 01:35 AM   #15
nour
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
No matches found for: rpmbuild

Dear John,
when I run yum search rpm* , I get: No matches found for: rpmbuild, yes I agree that it is strange that redhat didn't put mc in the extras, in particular for a newcomer like me, it is true that I am learning which is good but sometimes one wants to give up but I won't.
Regards. Nour.
 
  


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
How to find/recover Redhat Enterprise Linux 3 username & password for login fruitplus Linux - Newbie 1 05-07-2010 08:02 AM
To run Redhat Enterprise 5 in Redhat 4 Enterprise compatibility mode. pvpnguyen Red Hat 4 05-01-2010 10:36 AM
Why `strace -f /usr/bin/mc' locks ? firstfire Programming 2 10-17-2006 04:38 AM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Newbie 1 08-11-2005 05:11 PM
Firewire DVD on Redhat Enterprise 3 Can't Find 1394 Modules to load rhunley Linux - Hardware 0 01-27-2005 01:49 PM


All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration