Asterisk-13.18.2 file installation error

Dears

The below message came during the installation of asterisk-13.18.2 file
installation .

[root@localhost src]# cd asterisk-13.18.2/
[root@localhost asterisk-13.18.2]# ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking whether char is unsigned… no
checking for uname… /bin/uname
checking for g++… no
checking for c++… no
checking for gpp… no
checking for aCC… no
checking for CC… no
checking for cxx… no
checking for cc++… no
checking for cl.exe… no
checking for FCC… no
checking for KCC… no
checking for RCC… no
checking for xlC_r… no
checking for xlC… no
checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking how to run the C preprocessor… gcc -E
checking how to run the C++ preprocessor… /lib/cpp
configure: error: in /usr/local/src/asterisk-13.18.2’: configure: error: C++ preprocessor “/lib/cpp” fails sanity check Seeconfig.log’ for more details

Pld advice

As it says, check the logs.

configure checks lots of development tools and libraries to make sure they are compatible,and also to select compile time options to cope with differences. It looks like, when it came to check cpp it couldn’t recognize it as any known variation.

Thanks for the reply

Do you think downloading the latest version will solve the issue ?

Rgd

Haitham

Downloading the latest version won’t change anything. Your system doesn’t appear to be able to build programs. I’d suggest using the “install_prereq” script in the contrib/scripts directory to ensure everything is installed that needs to be installed to build Asterisk.

1 Like

Dear Jcolp

After using “install_prereq” script in the contrib/scripts directory, the below message came:-1

[root@localhost scripts]# ./install_prereq
./install_prereq: a script to install distribution-specific prerequirement
Revision: $Id$

Usage: ./install_prereq: Shows this message.
Usage: ./install_prereq test Prints commands it is about to run.
Usage: ./install_prereq install Really install.
Usage: ./install_prereq install-unpackaged Really install unpackaged requirements.
[root@localhost scripts]# ./install_prereq install
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
No package automake available.
No package gcc-c++ available.
No package ncurses-devel available.
No package openssl-devel available.
No package libxml2-devel available.
No package unixODBC-devel available.
No package libcurl-devel available.
No package libogg-devel available.
No package libvorbis-devel available.
No package speex-devel available.
No package spandsp-devel available.
No package freetds-devel available.
No package net-snmp-devel available.
No package iksemel-devel available.
No package corosynclib-devel available.
No package newt-devel available.
No package popt-devel available.
No package libtool-ltdl-devel available.
No package lua-devel available.
No package sqlite-devel available.
No package libsqlite3x-devel available.
No package radiusclient-ng-devel available.
No package portaudio-devel available.
No package postgresql-devel available.
No package libresample-devel available.
No package neon-devel available.
No package libical-devel available.
No package openldap-devel available.
No package gmime22-devel available.
No package sqlite2-devel available.
No package mysql-devel available.
No package bluez-libs-devel available.
No package jack-audio-connection-kit-devel available.
No package gsm-devel available.
No package libedit-devel available.
No package libuuid-devel available.
No package jansson-devel available.
No package libsrtp-devel available.
No package pjproject-devel available.
No package subversion available.
No package git available.
No package libxslt-devel available.
No package python-devel available.
Error: Nothing to do

Any advice

Rgd

Haitham

I don’t use Redhat based systems, but it appears as though you have none of the packages available which are required to build Asterisk. Why that is I have no idea.

@jcolp I completed a Centos 7 Server installation of 13.19.2 yesterday and the only file I am having a problem with is libresample-devel and there was gmime22-devel but I installed this after downloading. The question is libresample a necessity for asterisk to work with an issue?