[ros-users] [Discourse.ros.org] [Next Generation ROS] Cannot run executable and lib using ros2 run after building using ament

William Woodall ros.discourse at gmail.com
Thu Sep 14 13:15:33 UTC 2017

Your CMake installs you binary to bin, but ros2 run only looks in the "libexec" folder (actually `lib/pkg`) for executables. Your binary is just on the PATH, so you don't need ros2 run to easily execute it. 

See our examples for how to install to libexec:


[Visit Topic](https://discourse.ros.org/t/cannot-run-executable-and-lib-using-ros2-run-after-building-using-ament/2640/2) or reply to this email to respond.

More information about the ros-users mailing list