zsh: permission denied: ros2
I'm running macOS 11.1 and trying to install ROS2 Eloquent. I have followed the tutorial on index.ros.org. When I try to run the demo listener and talker, I get the permission denied error. Using sudo does not help. The error comes after sourcing the ROS2 setup file and running ros2 run demo_nodes_cpp talker
. All users do have execution permissions on the ros2 unix executable file being referenced.
This isn't enough detail to help you. Please show the code you use and how you are calling it.
Same problem. macOS 11.2.2 after installing ROS2 Foxy. SIP has been disabled. donald@MacBook-Pro ~ % ros2 run demo_nodes_cpp talker zsh: permission denied: ros2 Removed com.apple.quarantine attribute: xattr -dr com.apple.quarantine ros2_foxy Still get the same error.
I added the command that caused the error
what do you get when you type
which ros2
andls -la $(which ros2)
which ros2
gives me/Users/kaycee/ros2_eloquent/ros2-osx/bin/ros2
ls -la $(which ros2)
gives me-rwxrwxrwx@ 1 kaycee staff 958 Feb 28 12:00
thanks. Do you get the same error when you just run
ros2
(without any arguments)?Yes, it's the same error