openni

permission denied while installing OPENNI on mac


I got this error while installing OpenNI ON MAC

./install.sh
Installing OpenNI
****************************

copying shared libraries...cp: /usr/lib/libOpenNI.dylib: Permission denied
cp: /usr/lib/libOpenNI.jni.dylib: Permission denied
cp: /usr/lib/libnimCodecs.dylib: Permission denied
cp: /usr/lib/libnimMockNodes.dylib: Permission denied
cp: /usr/lib/libnimRecorder.dylib: Permission denied

Can anyone help me


Solution

  • Try doing:

    sudo ./install.sh
    

    You'll be prompted for an admin password.