Unable to install install_prereq 's pre-reqs

Hi
I am trying to compile asterisk 14 on Ubuntu 14.04
When doing ./install_prereq and asked to install the pre-reqs ; the script or aptitude command does not manage to install the pre-req

Running ./install_prereq test will always yield the following asking to install the following packages
aptitude update
aptitude install -y libcurl4-nss-dev libcurl4-gnutls-dev libcurl4-openssl-dev libjack-libjackd2-dev libjack-libjackd2-0

When I execute those commands ; it seem will try to remove some packages that is not installed and install some others. However at the end of it when running # ./install_prereq test again ; they are always shown as not installed.

Using apt-get install command does not fix this problem ; nor removing it first with # apt-get purge --auto-remove command.
I have uncommented the last two sources in /etc/apt/sources.list and this does not help also.
Please advice.
Thank you

Hello ,

Did you try ./contrib/script/install_prereq install ?

Regards,

Hello RDuoro,
Thank you for your help.
Here is a bit more detail what I did.

root@sys-88982:/usr/local/src/asterisk-14.6.0/contrib/scripts# ./install_prereq test
#############################################

test: test mode.

Use the commands here to install your system.

#############################################
aptitude update
aptitude install -y libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev libjack-jackd2-dev libmysqlclient-dev
root@sys-88982:/usr/local/src/asterisk-14.6.0/contrib/scripts# ./install_prereq install
Hit http://linuxrepo.dal-ebis.ihost.com trusty InRelease
Hit http://linuxrepo.dal-ebis.ihost.com trusty InRelease
Hit http://linuxrepo.dal-ebis.ihost.com trusty/at10.0 ppc64el Packages
Ign http://archive.canonical.com trusty InRelease
Hit http://linuxrepo.dal-ebis.ihost.com trusty/main ppc64el Packages
Hit http://archive.canonical.com trusty Release.gpg

Ign http://archive.canonical.com trusty InRelease
Hit http://linuxrepo.dal-ebis.ihost.com trusty/main ppc64el Packages

Ign http://linuxrepo.dal-ebis.ihost.com trusty/main Translation-en
Hit http://archive.canonical.com trusty/partner ppc64el Packages
Hit http://archive.canonical.com trusty/partner Translation-en
Ign http://ports.ubuntu.com trusty InRelease

Hit http://ports.ubuntu.com trusty/universe Translation-en
Ign http://ports.ubuntu.com trusty/main Translation-en_US
Ign http://ports.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ports.ubuntu.com trusty/restricted Translation-en_US
Ign http://ports.ubuntu.com trusty/universe Translation-en_US
Fetched 2,604 kB in 9s (277 kB/s)
The following NEW packages will be installed:
libcurl3-nss{a} libcurl4-gnutls-dev{b} libcurl4-nss-dev{b} libcurl4-openssl-dev{b} libgcrypt11-dev{a} libgnutls-dev{a} libgnutlsxx27{a}
libgpg-error-dev{a} libidn11-dev{a} libjack-jackd2-0{ab} libjack-jackd2-dev{b} libmysqlclient-dev libmysqlclient18{a} libnspr4-dev{a}
libnss3-dev{a} libp11-kit-dev{a} librtmp-dev{a} libtasn1-6-dev{a}
0 packages upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,916 kB/4,781 kB of archives. After unpacking 25.9 MB will be used.
The following packages have unmet dependencies:
libjack-jackd2-0 : Conflicts: libjack-0.116 which is a virtual package.
Conflicts: libjack0 but 1:0.121.3+20120418git75e3e20b-2.1ubuntu1 is installed.
libjack0 : Conflicts: libjack-0.116 which is a virtual package.
libmariadbclient-dev : Breaks: libmysqlclient-dev but 5.5.57-0ubuntu0.14.04.1 is to be installed.
libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2.10 is to be installed.
Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2.10 is to be installed.
libcurl4-gnutls-dev : Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2.10 is to be installed.
Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2.10 is to be installed.
libjack-jackd2-dev : Conflicts: libjack-dev but 1:0.121.3+20120418git75e3e20b-2.1ubuntu1 is installed.
libcurl4-nss-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2.10 is to be installed.
Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2.10 is to be installed.
The following actions will resolve these dependencies:

 Remove the following packages:
  1. libjack-dev
    
  2. libjack0
    
  3. libmariadbclient-dev
    

    Keep the following packages at their current version:

  4. libcurl4-nss-dev [Not Installed]
    
  5. libcurl4-openssl-dev [Not Installed]
    

The following NEW packages will be installed:
libcurl4-gnutls-dev libgcrypt11-dev{a} libgnutls-dev{a} libgnutlsxx27{a} libgpg-error-dev{a} libidn11-dev{a} libjack-jackd2-0{a}
libjack-jackd2-dev libmysqlclient-dev libmysqlclient18{a} libp11-kit-dev{a} librtmp-dev{a} libtasn1-6-dev{a}
The following packages will be REMOVED:
libjack-dev{a} libjack0{a} libmariadbclient-dev{a} libmariadbclient18{u} mariadb-common{u}
0 packages upgraded, 13 newly installed, 5 to remove and 0 not upgraded.
Need to get 3,662 kB of archives. After unpacking 6,368 kB will be used.
Get: 1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libjack-jackd2-dev ppc64el 1.9.9.5+20130622git7de15e7a-1ubuntu1 [39.2 kB]
Get: 2 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libjack-jackd2-0 ppc64el 1.9.9.5+20130622git7de15e7a-1ubuntu1 [139 kB]
Get: 3 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libmysqlclient18 ppc64el 5.5.57-0ubuntu0.14.04.1 [575 kB]
Get: 4 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libgnutlsxx27 ppc64el 2.12.23-12ubuntu2.8 [17.6 kB]
Get: 5 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libgpg-error-dev ppc64el 1.12-0.2ubuntu1 [20.3 kB]
Get: 6 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libgcrypt11-dev ppc64el 1.5.3-2ubuntu4.5 [337 kB]
Get: 7 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libtasn1-6-dev ppc64el 3.4-3ubuntu0.5 [391 kB]
Get: 8 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libp11-kit-dev ppc64el 0.20.2-2ubuntu2 [56.4 kB]
Get: 9 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libgnutls-dev ppc64el 2.12.23-12ubuntu2.8 [405 kB]
Get: 10 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libidn11-dev ppc64el 1.28-1ubuntu2.1 [521 kB]
Get: 11 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main librtmp-dev ppc64el 2.4+20121230.gitdf6c518-1ubuntu0.1 [53.3 kB]
Get: 12 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libcurl4-gnutls-dev ppc64el 7.35.0-1ubuntu2.10 [247 kB]
Get: 13 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libmysqlclient-dev ppc64el 5.5.57-0ubuntu0.14.04.1 [859 kB]
Fetched 3,662 kB in 3s (1,044 kB/s)
dpkg: libjack-dev: dependency problems, but removing anyway as you requested:
portaudio19-dev depends on libjack-dev.

(Reading database … 117882 files and directories currently installed.)
Removing libjack-dev (1:0.121.3+20120418git75e3e20b-2.1ubuntu1) …
Selecting previously unselected package libjack-jackd2-dev:ppc64el.
(Reading database … 117770 files and directories currently installed.)
Preparing to unpack …/libjack-jackd2-dev_1.9.9.5+20130622git7de15e7a-1ubuntu1_ppc64el.deb …
Unpacking libjack-jackd2-dev:ppc64el (1.9.9.5+20130622git7de15e7a-1ubuntu1) …
dpkg: libjack0:ppc64el: dependency problems, but removing anyway as you requested:
libportaudio2:ppc64el depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0:ppc64el is not installed.
Package libjack-0.116 is not installed.
Package libjack-jackd2-0:ppc64el which provides libjack-0.116 is not installed.
Package libjack0:ppc64el which provides libjack-0.116 is to be removed.

(Reading database … 117795 files and directories currently installed.)
Removing libjack0:ppc64el (1:0.121.3+20120418git75e3e20b-2.1ubuntu1) …
Processing triggers for libc-bin (2.19-0ubuntu6.13) …
Selecting previously unselected package libjack-jackd2-0:ppc64el.
(Reading database … 117786 files and directories currently installed.)
Preparing to unpack …/libjack-jackd2-0_1.9.9.5+20130622git7de15e7a-1ubuntu1_ppc64el.deb …
Unpacking libjack-jackd2-0:ppc64el (1.9.9.5+20130622git7de15e7a-1ubuntu1) …
(Reading database … 117796 files and directories currently installed.)
Removing libmariadbclient-dev (5.5.57-1ubuntu0.14.04.1) …
Removing libmariadbclient18:ppc64el (5.5.57-1ubuntu0.14.04.1) …
Removing mariadb-common (5.5.57-1ubuntu0.14.04.1) …
Processing triggers for man-db (2.6.7.1-1ubuntu1) …
Processing triggers for libc-bin (2.19-0ubuntu6.13) …
Selecting previously unselected package libmysqlclient18:ppc64el.
(Reading database … 117485 files and directories currently installed.)
Preparing to unpack …/libmysqlclient18_5.5.57-0ubuntu0.14.04.1_ppc64el.deb …
Unpacking libmysqlclient18:ppc64el (5.5.57-0ubuntu0.14.04.1) …
Selecting previously unselected package libgnutlsxx27:ppc64el.
Preparing to unpack …/libgnutlsxx27_2.12.23-12ubuntu2.8_ppc64el.deb …
Unpacking libgnutlsxx27:ppc64el (2.12.23-12ubuntu2.8) …
Selecting previously unselected package libgpg-error-dev.
Preparing to unpack …/libgpg-error-dev_1.12-0.2ubuntu1_ppc64el.deb …
Unpacking libgpg-error-dev (1.12-0.2ubuntu1) …
Selecting previously unselected package libgcrypt11-dev.
Preparing to unpack …/libgcrypt11-dev_1.5.3-2ubuntu4.5_ppc64el.deb …
Unpacking libgcrypt11-dev (1.5.3-2ubuntu4.5) …
Selecting previously unselected package libtasn1-6-dev.
Preparing to unpack …/libtasn1-6-dev_3.4-3ubuntu0.5_ppc64el.deb …
Unpacking libtasn1-6-dev (3.4-3ubuntu0.5) …
Selecting previously unselected package libp11-kit-dev.
Preparing to unpack …/libp11-kit-dev_0.20.2-2ubuntu2_ppc64el.deb …
Unpacking libp11-kit-dev (0.20.2-2ubuntu2) …
Selecting previously unselected package libgnutls-dev.
Preparing to unpack …/libgnutls-dev_2.12.23-12ubuntu2.8_ppc64el.deb …
Unpacking libgnutls-dev (2.12.23-12ubuntu2.8) …
Selecting previously unselected package libidn11-dev.
Preparing to unpack …/libidn11-dev_1.28-1ubuntu2.1_ppc64el.deb …
Unpacking libidn11-dev (1.28-1ubuntu2.1) …
Selecting previously unselected package librtmp-dev.
Preparing to unpack …/librtmp-dev_2.4+20121230.gitdf6c518-1ubuntu0.1_ppc64el.deb …
Unpacking librtmp-dev (2.4+20121230.gitdf6c518-1ubuntu0.1) …
Selecting previously unselected package libcurl4-gnutls-dev:ppc64el.
Preparing to unpack …/libcurl4-gnutls-dev_7.35.0-1ubuntu2.10_ppc64el.deb …
Unpacking libcurl4-gnutls-dev:ppc64el (7.35.0-1ubuntu2.10) …
Selecting previously unselected package libmysqlclient-dev.
Preparing to unpack …/libmysqlclient-dev_5.5.57-0ubuntu0.14.04.1_ppc64el.deb …
Unpacking libmysqlclient-dev (5.5.57-0ubuntu0.14.04.1) …
Processing triggers for man-db (2.6.7.1-1ubuntu1) …
Processing triggers for install-info (5.2.0.dfsg.1-2) …
Setting up libjack-jackd2-0:ppc64el (1.9.9.5+20130622git7de15e7a-1ubuntu1) …
Setting up libjack-jackd2-dev:ppc64el (1.9.9.5+20130622git7de15e7a-1ubuntu1) …
Setting up libmysqlclient18:ppc64el (5.5.57-0ubuntu0.14.04.1) …
Setting up libgnutlsxx27:ppc64el (2.12.23-12ubuntu2.8) …
Setting up libgpg-error-dev (1.12-0.2ubuntu1) …
Setting up libgcrypt11-dev (1.5.3-2ubuntu4.5) …
Setting up libtasn1-6-dev (3.4-3ubuntu0.5) …
Setting up libp11-kit-dev (0.20.2-2ubuntu2) …
Setting up libgnutls-dev (2.12.23-12ubuntu2.8) …
Setting up libidn11-dev (1.28-1ubuntu2.1) …
Setting up librtmp-dev (2.4+20121230.gitdf6c518-1ubuntu0.1) …
Setting up libcurl4-gnutls-dev:ppc64el (7.35.0-1ubuntu2.10) …
Setting up libmysqlclient-dev (5.5.57-0ubuntu0.14.04.1) …
Processing triggers for libc-bin (2.19-0ubuntu6.13) …

#############################################

install completed successfully

#############################################
root@sys-88982:/usr/local/src/asterisk-14.6.0/contrib/scripts# ./install_prereq test
#############################################

test: test mode.

Use the commands here to install your system.

#############################################
aptitude update
aptitude install -y libcurl4-nss-dev libcurl4-openssl-dev libjack-dev libmariadbclient-dev


It is back to where I started !

There is only one thing that I made changes to install;
Because I am using Ubuntu on an IBM POWER ppc le server ; I updated the all the config.guess and config.sub files in and all sub folders of the source /usr/local/src/asterisk-14.6.0 directory else I will get error messages like below


root@sys-88901:/usr/src/asterisk/asterisk-15.0.0-beta1/contrib/scripts/pjproject# ./configure --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS=’-O2 -DNDEBUG’
checking build system type… ./config.guess: unable to guess system type

This script, last modified 2012-06-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to config-patches@gnu.org in order to provide the needed
information to handle your system.

config.guess timestamp = 2012-06-17

uname -m = ppc64le
uname -r = 4.4.0-66-generic
uname -s = Linux
uname -v = #87-Ubuntu SMP Fri Mar 3 15:30:20 UTC 2017

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = ppc64le
UNAME_RELEASE = 4.4.0-66-generic
UNAME_SYSTEM = Linux
UNAME_VERSION = #87-Ubuntu SMP Fri Mar 3 15:30:20 UTC 2017
aconfigure: error: cannot guess build type; you must specify one


The install_prereq command in the above at the beginning is run with the updated config.guess and config.sub.

root@sys-88982:/usr/local/src/asterisk-14.6.0/contrib/scripts# uname -a
Linux sys-88982 3.13.0-112-generic #159-Ubuntu SMP Fri Mar 3 15:29:14 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

Thank you