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: Open
    • Severity: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 13.0.1
    • Target Release Version/s: None
    • 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

          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'

            People

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

              Dates

              • Created:
                Updated:

                Development