ROS: /bin/sh: 1: catkin_make: not found

Share:
# /bin/sh: 1: catkin_make: not found Error: ```sh /bin/sh: 1: catkin_make: not found ERROR: Service 'turtlebot3_simulator' failed to build: The command '/bin/sh -c /bin/bash -c "source ~/.bashrc" && mkdir -p /root/catkin_ws/src && cd ~/catkin_ws/ && catkin_make' returned a non-zero code: 127 ``` Solution: ```sh sudo apt install ros-noetic-catkin source /opt/ros/[noetic/melodic/kinetic]/setup.bash ``` # Docker sample Correct sample: ```sh WORKDIR /root/catkin_ws RUN /bin/bash -c "source /opt/ros/noetic/setup.bash && \ catkin_make" ``` 我在这里花费了很多时间,不太清楚为什么把source及catkin_make写在单独的一个RUN块里,并且用 bash包起来才行。 Wrong sample: ```sh RUN source /opt/ros/noetic/setup.bash && \ catkin_make ``` Wrong sample 2: ```sh RUN /bin/bash -c "source /opt/ros/noetic/setup.bash" && \ /bin/bash -c "catkin_make" ```` cover

No comments