Install Midnight Commander from source
I’ve already noticed that the Ubuntu repositories are sometimes very out-of-date. A good example for this is the “mc” package. There is a PPA for Midnight Commander that should solve this problem but it’s also very old. At the time of writing (August 10, 2011), the current stable release is 184.108.40.206 while the PPA contains the version 220.127.116.11 (updated on Sept. 15, 2010).
Since I wanted to use a fresh release of MC, I installed it from source. Steps to follow:
- Download the latest stable source and unpack it.
- For a successful compilation I had to install this package too: “sudo apt-get install libslang2-dev libglib2.0-dev”.
- If it was successful then you should have a binary “
mc” file in the
src/folder. If it’s there, you can remove your current version with “
sudo apt-get remove mc“.
- Then install the new version with “
sudo make install“.
I also had to modify my
.bashrc a bit:
# old: #alias mc='. /usr/share/mc/bin/mc-wrapper.sh' # new: alias mc='. /usr/local/libexec/mc/mc-wrapper.sh'
Installing mc from source is now integrated in jabbatron.