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

How to Fix: linux driver installation error - “/lib/modules/2.6.18-194.el5/build: No such file or directory. Stop.”

Linux driver installation error fix for /lib/modules/2.6.18-194.el5/build: No such file or directory.

Quick Answer: Try updating the kernel to a newer version, as the current 2.6.18-194.el5 is outdated and may not support the moxa driver.

The error '/lib/modules/2.6.18-194.el5/build: No such file or directory. Stop.' occurs when attempting to install the MOXA driver on a Linux system, specifically with kernel version 2.6.18-194.el5. This issue affects users who are trying to install the MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver.

This error can be frustrating for users who have been unable to successfully install the driver, leading to a failed installation process and potentially causing issues with device connectivity. Fortunately, there is a solution to resolve this issue.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the '/lib/modules/2.6.18-194.el5/build' directory does not exist or is not accessible. This could be due to various reasons such as a corrupted kernel build, incorrect permissions, or an outdated system.
  • An alternative cause could be that the kernel version 2.6.18-194.el5 is no longer supported by the MOXA driver, resulting in compatibility issues.

🔧 Proven Troubleshooting Steps

Reinstalling the Linux kernel

  1. Step 1: To resolve this issue, we need to reinstall the Linux kernel using the 'yum' package manager. Open a terminal and run the command 'sudo yum install kernel-devel'. This will download and install the latest available kernel version.
  2. Step 2: Once the installation is complete, restart the system by running 'sudo reboot'. This will ensure that the new kernel version is loaded into memory.
  3. Step 3: After the system has booted up, attempt to install the MOXA driver again using the same command 'make install'. If the issue persists, proceed to the alternative solution.

Updating the kernel modules

  1. Step 1: An alternative solution is to update the kernel modules to ensure compatibility with the latest kernel version. Open a terminal and run the command 'sudo depmod -a'. This will update all kernel modules, including those required for the MOXA driver.
  2. Step 2: After updating the kernel modules, attempt to install the MOXA driver again using the same command 'make install'. If the issue persists, proceed to further troubleshooting or contact the device manufacturer for assistance.

🎯 Final Words

By following these steps, users should be able to resolve the '/lib/modules/2.6.18-194.el5/build: No such file or directory. Stop.' error and successfully install the MOXA driver on their Linux system.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions