[Asterisk-code-review] install prereq: For PJProject, point users to configure script. (asterisk[15])
Jenkins2
asteriskteam at digium.com
Thu Jan 25 07:43:39 CST 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7836 )
Change subject: install_prereq: For PJProject, point users to configure script.
......................................................................
install_prereq: For PJProject, point users to configure script.
The installation script and the new configure option --with-pjproject-bundled
aimed to accomplish the same. However, the installation script was out of
date. Users should go for the maintained configure option, or the Wiki.
ASTERISK-24598
Change-Id: Icbf4b562f81f7c05bd24a3805bd46c0beb4ebd44
---
M contrib/scripts/install_prereq
1 file changed, 8 insertions(+), 17 deletions(-)
Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index e3b217c..cd2c3b6 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -147,7 +147,7 @@
echo "*** Installing NBS (Network Broadcast Sound) ***"
svn co http://svn.digium.com/svn/nbs/trunk nbs-trunk
cd nbs-trunk
- make && make install
+ make all install
cd ..
# Only install libresample if it wasn't installed via package
@@ -155,7 +155,8 @@
echo "*** Installing libresample ***"
svn co http://svn.digium.com/svn/thirdparty/libresample/trunk libresample-trunk
cd libresample-trunk
- ./configure && make && make install
+ ./configure
+ make all install
cd ..
fi
@@ -164,7 +165,8 @@
echo "*** Installing jansson ***"
wget -O - http://www.digip.org/jansson/releases/jansson-${JANSSON_VER}.tar.gz | zcat | tar -xf -
cd jansson-${JANSSON_VER}
- ./configure && make all && make install
+ ./configure
+ make all install
cd ..
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf
/sbin/ldconfig
@@ -177,27 +179,16 @@
wget -O - http://github.com/cisco/libsrtp/archive/v2.tar.gz | zcat | tar -xf -
cd libsrtp-2
./configure --enable-openssl
- make shared_library uninstall install
+ make shared_library install
cd ..
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf
/sbin/ldconfig
fi
fi
- # Only install pjproject if it wasn't installed via package
if ! test -f /usr/include/pjlib.h; then
- echo "*** Installing pjproject ***"
- if [ ! -d pjproject ]; then
- git clone https://github.com/asterisk/pjproject.git
- cd pjproject
- else
- cd pjproject
- git pull
- fi
- ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --enable-shared --with-external-speex --with-external-gsm --with-external-srtp --disable-sound --disable-resample && make && make install
- cd ..
- echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf
- /sbin/ldconfig
+ echo "PJProject not installed, yet. Therefore, please, run"
+ echo "./configure --with-pjproject-bundled"
fi
}
--
To view, visit https://gerrit.asterisk.org/7836
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: Icbf4b562f81f7c05bd24a3805bd46c0beb4ebd44
Gerrit-Change-Number: 7836
Gerrit-PatchSet: 5
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180125/a8641638/attachment.html>
More information about the asterisk-code-review
mailing list