osx - cp: /usr/lib/libOpenNI.jni.dylib: Operation not permitted -


i trying install openni , sensorkinect drivers on mac os x el capitan. downloaded openni , sensorkinect drivers , used sudo ./install.sh , got this:

copying shared libraries...cp: /usr/lib/libopenni.dylib: operation not permitted cp: /usr/lib/libopenni.jni.dylib: operation not permitted cp: /usr/lib/libnimcodecs.dylib: operation not permitted cp: /usr/lib/libnimmocknodes.dylib: operation not permitted cp: /usr/lib/libnimrecorder.dylib: operation not permitted 

i can't find problem might , have checked similar posts here.

it security feature of apple's macos operating system introduced in os x el capitan.system integrity protection.that means can not copy file system folders if sudo command.

still can disable sip, not recommend.

the best way change install.sh copy lib files /usr/local/lib

74 install_lib=$rootfs/usr/lib 75 install_bin=$rootfs/usr/bin 76 install_inc=$rootfs/usr/include/ni 77 install_var=$rootfs/var/lib/ni 78 install_jar=$rootfs/usr/share/java 

to

74 install_lib=$rootfs/usr/local/lib 75 install_bin=$rootfs/usr/local/bin 76 install_inc=$rootfs/usr/local/include/ni 77 install_var=$rootfs/var/lib/ni 78 install_jar=$rootfs/usr/local/share/java 

and made it.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -