add the workspace to your ROS permission denied
hello I have a problem to add the workspace in the ROS environment.
I am following the tutorial and when I have to add the workspace in the ROS environment
$ . ~/catkin_ws/devel/setup.bash
I get the following:
bash: /home/jonatan/catkin_ws/devel/setup.bash: permission denied
What should I do to solve it?
Edit:
BEFORE:
jonatan@jonatan-TECRA-S4:~/catkin_ws2/devel$ ls -l
total 40
- rwxr-xr-x 1 jonatan jonatan 506 mar 16 13:13 env.sh
- drwxrwxr-x 3 jonatan jonatan 4096 mar 16 12:46 etc
- drwxrwxr-x 3 jonatan jonatan 4096 mar 16 13:03 lib
- rw-r--r-- 1 jonatan jonatan 260 mar 16 13:13 setup.bash
- rw-r--r-- 1 jonatan jonatan 2384 mar 16 13:13 setup.sh
- rwxr-xr-x 1 jonatan jonatan 12274 mar 16 13:13 _setup_util.py
- rw-r--r-- 1 jonatan jonatan 250 mar 16 13:13 setup.zsh
- drwxrwxr-x 3 jonatan jonatan 4096 mar 16 13:03 share
AFTER:
jonatan@jonatan-TECRA-S4:~/catkin_ws2$ rm -r devel
jonatan@jonatan-TECRA-S4:~/catkin_ws2$ rm -r build
jonatan@jonatan-TECRA-S4:~/catkin_ws2$ catkin_make
jonatan@jonatan-TECRA-S4:~/catkin_ws2$ ls -l
total 12
drwxrwxr-x 8 jonatan jonatan 4096 mar 16 13:55 build
drwxrwxr-x 5 jonatan jonatan 4096 mar 16 13:55 devel
drwxrwxr-x 3 jonatan jonatan 4096 mar 16 13:00 src
jonatan@jonatan-TECRA-S4:~/catkin_ws2$ ~/catkin_ws2/devel/setup.bash
bash: /home/jonatan/catkin_ws2/devel/setup.bash: permission denied
*(NOTE: catkin_ws = catkin_ws2)
It seems broken. What did you do to create this?
@JLL: please only update your original question with new information. Don't post answers with new information. I've merged your answer into your question this time.
@JLL: without the dot (ie:
. /path/to/setup.bash
), bash will not sourcesetup.bash
, but try to execute it. Is the missing dot a typo? Could you please try sourcing withsource /path/to/setup.bash
?This would explain the error. Without +x the setup.bash is not executable (which it doesn't need to be, actually it should not be!)