Software⏱️ 3 min read📅 2026-06-11

How to Fix: Midnight Commander: configure error: S-Lang library version 2.0 or newer not found

Midnight Commander configuration error due to outdated S-Lang library version.

Quick Answer: Check if the installed libslang2 version matches the required version (2.0 or newer) and update it if necessary.

Midnight Commander is a popular file manager, and when it encounters an error during configuration, it can be frustrating. The 'S-Lang library version 2.0 or newer not found' error specifically affects users who have installed Midnight Commander on systems where the S-Lang library is not properly configured.

This issue may seem daunting, but by following a step-by-step approach, you should be able to resolve it and get back to using Midnight Commander.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the S-Lang library version required by Midnight Commander is not installed or not properly configured on your system. This can happen if the installation process did not include the necessary dependencies, or if the library was previously removed and not reinstalled.
  • Another possible cause is a mismatch between the version of the S-Lang library that is installed and the one required by Midnight Commander. In this case, it may be necessary to reinstall or update the S-Lang library.

🛠️ Step-by-Step Verified Fixes

Reinstalling the S-Lang library

  1. Step 1: Open a terminal as a root user (or use sudo) and run the command `sudo apt-get install libslang2` to reinstall the latest version of the S-Lang library.
  2. Step 2: If you have an older version installed, you can remove it using `sudo apt-get purge libslang2`, then proceed with the installation of the new version.
  3. Step 3: Once the installation is complete, try running `./configure` again to see if the error persists.

Updating the S-Lang library

  1. Step 1: Open a terminal as a root user (or use sudo) and run the command `sudo apt-get update && sudo apt-get install libslang2` to check for any available updates and install the latest version of the S-Lang library.
  2. Step 2: If an update is not available, you can try updating the package list using `sudo apt-get update`, then proceed with installing the new version.

✨ Wrapping Up

After following these steps, you should be able to resolve the 'S-Lang library version 2.0 or newer not found' error in Midnight Commander and successfully install the latest version (4.8.23). If you encounter any further issues, consider reaching out to the Midnight Commander community or seeking additional support.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions