Download and install the system dependencies for turtlesim:
roscd turtlesim cat package.xml rosdep install turtlesim rosdep resolve roscpp