[Home]

Summary:ASTERISK-24598: When running ./contrib/scripts/install_prereq install-unpackaged pjproject is installed in wrong place
Reporter:PowerPBX (PowerPBX)Labels:
Date Opened:2014-12-07 15:32:31.000-0600Date Closed:2018-01-25 07:39:44.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:13.0.1 Frequency of
Occurrence
Related
Issues:
Environment:CentOS v6.6 x86Attachments:
Description:When pjproject is not installed as a package resulting in {{./install_prereq install-unpackaged}} installing pjproject from source, the result is that it is install in {{/usr/local/lib}}.  Afterwards when running {{./configure}} Asterisk cannot find the pjproject dependency.

When installing pjproject manually from source according to these instructions:

https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+pjproject

pjproject is installed in {{/usr/lib}} and {{./configure}} is then able to find the pjproject dependency.
Comments:By: Rusty Newton (rnewton) 2015-01-07 17:36:22.741-0600

yeah it would be nice if it matched the defaults for Asterisk and was smart enough to install in /usr/lib or /usr/lib64 if necessary.

By: PowerPBX (PowerPBX) 2015-01-07 17:47:13.050-0600

Adding the following to the bash script will automate libdir selection based on OS architecture if using CentOS.  Ubuntu/Debian uses /usr/lib for 32 and 64 architecture.

ARCH=$(/usr/bin/getconf LONG_BIT | /bin/grep "64")
./configure --prefix=/usr --libdir=/usr/lib$ARCH --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS='-O2 -DNDEBUG'

By: Corey Farrell (coreyfarrell) 2018-01-07 13:27:53.839-0600

I think we should remove pjproject from install-unpackaged in 15/master since bundling enabled by default in those versions.  [~gjoseph] how do you feel about this?

By: Joshua C. Colp (jcolp) 2018-01-08 04:54:49.900-0600

+1 to that.

By: Friendly Automation (friendly-automation) 2018-01-25 07:39:47.117-0600

Change 7835 merged by Jenkins2:
install_prereq: For PJProject, point users to configure script.

[https://gerrit.asterisk.org/7835|https://gerrit.asterisk.org/7835]

By: Friendly Automation (friendly-automation) 2018-01-25 07:44:55.902-0600

Change 7836 merged by Jenkins2:
install_prereq: For PJProject, point users to configure script.

[https://gerrit.asterisk.org/7836|https://gerrit.asterisk.org/7836]

By: Friendly Automation (friendly-automation) 2018-01-25 07:47:50.890-0600

Change 7834 merged by Jenkins2:
install_prereq: For PJProject, point users to configure script.

[https://gerrit.asterisk.org/7834|https://gerrit.asterisk.org/7834]