Installing Midnight Commander 4.7 on Mac OS X
Another short post just to remember the procedure for the next time I’ll be setting up a new mac. For those of my readers who do not know what Midnight Commander (aka mc) is, GNU Midnight Commander is a visual file manager, created under a heavy influence of Norton Commander file manager from dark DOS ages
For more information, you can visit their web site. Now, get to the installation topic itself.
To install mc on a Mac OS X machine, you need macports installed and then first thing you’ll need to do is to install some prerequisite libraries:
1 | $ sudo port install libiconv slang2 |
Next thing, download the sources from their web site and unpack them. When the sources are ready, you can configure the build:
1 2 3 4 5 6 7 8 | $ ./configure \ --prefix=/opt/mc \ --with-screen=slang \ --enable-extcharset \ --enable-charset \ --with-libiconv-prefix=/opt/local \ --with-slang-includes=/opt/local/include \ --with-slang-libs=/opt/local/lib |
Then, normal GNU-style build and install procedure:
1 2 3 | $ make ........ $ sudo make install |
And the last thing would be to add /opt/mc/bin to your PATH environment variable.
Related posts:
8 Responses to this entry
I have successfully installed mc 4.7 simply using macports
sudo port install mc
But here is another problem. How to access top MC menu from mac keyboard?
Esc,9Personally I use muCommander. It’s a GPL application freely downloadable here:
http://www.mucommander.com/
You don’t need macports for that and it’s simple as installing a DMG image.
Regards,
Luca
I have successfully installed mc 4.7 simply using macports
sudo port install mc
It’s a good illustration for mac users. But, unfortunately I am not using mac, I am working on Windows so its not for me. Thanks for the configuration settings.
Hi,
How can I configure mc to enable pageUp and pageDown keys?
Spasibo za pomosh’!
It should work out of the box. But if it does not, check out Options -> learn Keys menu.
Thanks for reply.
I can’t even use my mouse to go to Option menu. Do you know what’s wrong with my mc installation?