Start with the following prerequisite:
sudo port install libiconv slang2
Installation of GNU Midnight Commander is as follows:
- Download the source code from its website and unpack it.
- 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
- Build the sources as per the following:
- 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.