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

How to Fix glib-2 Error – ERROR: Dependency "mount" not found, tried pkgconfig and cmake Linux while trying to install glib-2.60.0

glib-2 error fix: dependency mount not found

Quick Answer: Check if the 'mount.pc' file exists in your system's pkg-config directory. If it doesn't, you can try installing the 'mount' package or using a different build system like CMake.

The 'mount' dependency is required by the glib-2.60.0 package, but it was not found during installation. This error affects users who are trying to install or update this package using Meson, a build system for C and C++ projects.

This error can be frustrating because it prevents the user from completing the installation process. However, there is a solution that can help resolve this issue.

💡 Why You Are Getting This Error

  • The 'mount' dependency is required by glib-2.60.0 because it provides functionality for working with file systems and network mounts. If this dependency is not found, the build system cannot proceed with the installation.
  • Another possible reason for this error is that the package manager or distribution being used does not provide a 'mount' dependency in its package. This can happen if the package depends on a custom or outdated version of the 'mount' library.

🔧 Proven Troubleshooting Steps

Install the 'mount' package manually

  1. Step 1: Open a terminal and navigate to the directory where you downloaded the glib-2.60.0 package.
  2. Step 2: Use the 'sudo apt-get install mount' command (for Ubuntu-based systems) or 'sudo yum install mount' command (for RHEL-based systems) to install the 'mount' package.

Check if a custom or outdated version of the 'mount' library is being used

  1. Step 1: Open the 'meson-log.txt' file and search for any lines that mention the 'mount' dependency. Check if there are any warnings or errors related to this dependency.
  2. Step 2: If you find a warning or error, check your package manager's configuration files (e.g., `/etc/apt/sources.list` or `/etc/yum.repos.d/`) to see if there are any custom or outdated versions of the 'mount' library being used.

💡 Conclusion

To resolve the 'mount' dependency issue, try installing the 'mount' package manually using your package manager's command. If the problem persists, check for custom or outdated versions of the 'mount' library and update them accordingly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions