Mac OS: MacPorts Install

Not all necessary applications are available (for free) in AppleStore. Therefore, using MacPorts may be useful.

Start with the following prerequisite:

sudo port install libiconv slang2

Installation of GNU Midnight Commander is as follows:

  1. Download the source code from its website and unpack it.
  2. Prepare the environment using the following commands:
    ./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
  3. Build the sources as per the following:
    make
  4. And finally, install the compiled software:
    sudo make install

It is recommended to add the /opt/mc/bin directory path to your PATH environment variable.

Advertisements
This entry was posted in Apple and tagged , , , . Bookmark the permalink.