O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 compiling Asterisk.

C compiler cannot create executables

If you receive the following error while attempting to compile Asterisk, you must install the gcc compiler and its dependencies:

    checking whether the C compiler (gcc ) works... no
    configure: error: installation or configuration problem: C compiler cannot
    create executables.
    make: *** [editline/libedit.a] Error 1

The following packages are required for gcc:

  • gcc

  • glibc-kernheaders

  • cpp

  • binutils

  • glibc-headers

  • glibc-devel

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.

bison: command not found

The following error may be encountered if the bison parser, which is required for parsing expressions in the extensions.conf file, is not found:

    bison ast_expr.y -name-prefix=ast_yy -o ast_expr.c
    make: bison: Command not found
    make: *** [ast_expr.c] Error 127

The following files are required in order to install Asterisk; they can be installed with the yum install bison command:

  • bison

  • m4

/usr/bin/ld: cannot find -lssl

The OpenSSL development packages are required by Asterisk within the res_crypto.so module for RSA key checks performed by the IAX2 protocol. If the OpenSSL development packages are not installed, the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required