Common Compiling Issues
There are many common compiling issues that users often run into. Here are some of the more common problems, and how to resolve them.
Asterisk
First, let’s take a look at some of the errors you may encounter when running the configure script.
configure: error: no acceptable C compiler found in $PATH
If you receive the following error while attempting to run the configure script, you must install the gcc compiler and its dependencies:
configure: error: no acceptable C compiler found in $PATH
The following packages are required for gcc:
gcc
cpp
glibc-headers
glibc-devel
glibc-kernheaders
These can be installed manually, by copying the files off of
your distribution disks, or through the yum
package manager, with the command yum
install gcc.
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
The following error will be displayed if no C++ preprocessor is found installed on the system. You must install the gcc-c++ package and its dependencies:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
The
following packages are required for the gcc-c++
preprocessor; installed by running yum
install gcc-c++:
gcc-c++
libstdc++-devel
configure: error: *** termcap support not found
The following error may be encountered during initialization of the configure script if the libtermcap-devel package is not installed:
configure: error: *** termcap support not found
The following file is required in order to compile Asterisk;
it can be installed with the yum install libtermcap-devel ...