Uploaded image for project: 'Apache QPID Interoperability Test Suite'
  1. Apache QPID Interoperability Test Suite
  2. QPIDIT-56

Rhea installs to /usr/lib regardless of cmake install dir

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: Rhea JavaScript Shim
    • Labels:
      None
    • Environment:
      Fedora 23 x64, bash

      Description

          export INSTALLPREFIX=/opt/local
          cd ${QPID_INTEROP_TEST_HOME}/build
          cmake -DCMAKE_BUILD_TYPE=Debug \
                -DCMAKE_INSTALL_PREFIX=${INSTALLPREFIX} \
                -DPROTON_INSTALL_DIR=${INSTALLPREFIX} \
                ..
      

      Fails when npm can't create a directory in /usr/lib

      npm ERR! Error: EACCES, mkdir '/usr/lib/node_modules/rhea'
      npm ERR!  { [Error: EACCES, mkdir '/usr/lib/node_modules/rhea']
      npm ERR!   errno: 3,
      npm ERR!   code: 'EACCES',
      npm ERR!   path: '/usr/lib/node_modules/rhea',
      npm ERR!   fstream_type: 'Directory',
      npm ERR!   fstream_path: '/usr/lib/node_modules/rhea',
      npm ERR!   fstream_class: 'DirWriter',
      npm ERR!   fstream_stack: 
      npm ERR!    [ '/usr/lib/node_modules/fstream/lib/dir-writer.js:36:23',
      npm ERR!      '/usr/lib/node_modules/mkdirp/index.js:37:53',
      npm ERR!      'Object.oncomplete (fs.js:108:15)' ] }
      npm ERR! 
      npm ERR! Please try running this command again as root/Administrator.
      

      My policy is to never run local builds as root. I have /opt/local set up as the target workspace for my local installs. Typically I build/install

      • qpid-proton
      • qpid-python
      • qpid-cpp
      • qpid-dispatch
      • qpid-interop-test

        Attachments

          Activity

            People

            • Assignee:
              kpvdr Kim van der Riet
              Reporter:
              chug Charles E. Rolke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: