Ask Your Question

Permission denied error while installing openNI and SensorKinect

asked 2019-06-03 18:42:56 -0600

medashan gravatar image

I am trying to install openNI and sensor kinect for my kinect2 in ubuntu 18.04. I am using the openNI 1.5.40 and sensor kinect version When i am trying to install both i was getting error "permission denied". I also changed my root password as well to double check if i forgot the password. Can anyone let me know what mistake i am doing?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-06-04 15:16:50 -0600

jamesislost gravatar image

Have you ran the install command using sudo? Otherwise check your user permissions, and add it as a superuser or to the dialout group depending on the specific error message. Examples of this can be found here:

edit flag offensive delete link more


I fixed the error which i got before. However, I am now getting a new error.

ls: cannot access '/home/rrluser/Downloads/openni_1.5.4.0.orig/OpenNI-OpenNI-e263e59/Platform/Linux/CreateRedist/./Lib/*': No such file or directory

medashan gravatar image medashan  ( 2019-06-04 16:43:34 -0600 )edit

Have you followed that file path to confirm the file exists? And if you can find the file check it is definitely on that route, if not either rename the route in the launch file or move the file.

jamesislost gravatar image jamesislost  ( 2019-06-04 22:25:38 -0600 )edit

If everything appears in the right places, maybe confirm the environment is properly sourced in the bashrc? run gedit ~/.bashrc scroll to the bottom and look for the following. source /opt/ros/kinetic/setup.bash source /WORKSPACE/devel/ export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH

jamesislost gravatar image jamesislost  ( 2019-06-04 22:26:37 -0600 )edit

The file exists and the filename is However, i am confused with the error. I have my bash file in CreateRedist. I am not sure what "./Lib/" points too in the error i got

I also checked the bashrc file. I have only one line at the bottom

source /opt/ros/melodic/setup.bash

I don't see other two lines

source /WORKSPACE/devel/ export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH

medashan gravatar image medashan  ( 2019-06-05 17:07:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-06-03 18:42:56 -0600

Seen: 102 times

Last updated: Jun 04 '19