Asterisk
  1. Asterisk
  2. ASTERISK-24598

When running ./contrib/scripts/install_prereq install-unpackaged pjproject is installed in wrong place

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: 13.0.1
    • Target Release Version/s: 13.20.0, 15.3.0, 16.0.0
    • Component/s: pjproject/pjsip
    • Security Level: None
    • Labels:
      None
    • Environment:
      CentOS v6.6 x86

      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.

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Rusty Newton added a comment - - edited

          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.

          Show
          Rusty Newton added a comment - - edited 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.
          Hide
          PowerPBX added a comment - - edited

          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'

          Show
          PowerPBX added a comment - - edited 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'
          Hide
          Corey Farrell added a comment -

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

          Show
          Corey Farrell added a comment - I think we should remove pjproject from install-unpackaged in 15/master since bundling enabled by default in those versions. George Joseph how do you feel about this?
          Hide
          Joshua C. Colp added a comment -

          +1 to that.

          Show
          Joshua C. Colp added a comment - +1 to that.
          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/7835

          Show
          Friendly Automation added a comment - Change 7835 merged by Jenkins2: install_prereq: For PJProject, point users to configure script. https://gerrit.asterisk.org/7835
          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/7836

          Show
          Friendly Automation added a comment - Change 7836 merged by Jenkins2: install_prereq: For PJProject, point users to configure script. https://gerrit.asterisk.org/7836
          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/7834

          Show
          Friendly Automation added a comment - Change 7834 merged by Jenkins2: install_prereq: For PJProject, point users to configure script. https://gerrit.asterisk.org/7834

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: