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

How to Fix: How do I resolve an error about AM_PROG_LIBTOOL when building libopus from git?

Error resolving AM_PROG_LIBTOOL in libopus build configuration.

Quick Answer: Run "m4 --version" to check if m4 is installed, and then run "sudo apt-get install autoconf automake

The error 'AM_PROG_LIBTOOL not found in library' occurs when the Autoconf build system is unable to locate the libtool executable. This typically affects users who have downloaded and built software from git repositories.

This issue can be frustrating for developers, especially those who are new to building software from source. However, with the right steps, you should be able to resolve this error and successfully build your project.

💡 Why You Are Getting This Error

  • The primary reason for this error is that libtool has been moved to a separate package in some Linux distributions. In order to use libtool, you need to install the 'libtool' package or its equivalent.
  • Alternatively, if you have installed the 'libtool-ltdl' package instead of 'libtool', you may also encounter this error.

🔧 Proven Troubleshooting Steps

Install libtool using your distribution's package manager

  1. Step 1: Open a terminal and type the following command to install libtool: sudo apt-get install libtool (for Ubuntu-based systems). For other distributions, use the corresponding package manager.
  2. Step 2: Once installed, try running 'make' again to see if the error is resolved.
  3. Step 3: If you still encounter issues, proceed with method 2.

Install libtool-ltdl and then install libopus

  1. Step 1: Open a terminal and type the following command to install libtool-ltdl: sudo apt-get install libtool-ltdl (for Ubuntu-based systems). For other distributions, use the corresponding package manager.
  2. Step 2: After installing libtool-ltdl, proceed with building libopus using the original instructions.
  3. Step 3: If you still encounter issues, try updating your system or reinstalling libopus.

✨ Wrapping Up

To resolve the 'AM_PROG_LIBTOOL not found in library' error when building libopus from git, follow one of the two primary fix methods outlined above. If you are still having trouble, consider seeking further assistance or checking the official documentation for your distribution's package manager for more information.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions