How to correct ros configuration

asked 2022-05-31 21:51:06 -0600

lost_robot gravatar image

My Melodic ros configuration got corrupted. Now when I run catkin_make, I receive the following error

OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/rosdep-0.21.0.dist-info'

How can I fix this?

john@john-PCX0DX:~/projects/catkin_rosbag_ws$ printenv | grep ROS
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/home/john/projects/catkin_rosbag_ws/src:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/john/projects/catkin_rosbag_ws/devel/share/common-lisp
ROS_DISTRO=melodic
john@john-PCX0DX:~/projects/catkin_rosbag_ws$ catkin_make
Base path: /home/john/projects/catkin_rosbag_ws
Source space: /home/john/projects/catkin_rosbag_ws/src
Build space: /home/john/projects/catkin_rosbag_ws/build
Devel space: /home/john/projects/catkin_rosbag_ws/devel
Install space: /home/john/projects/catkin_rosbag_ws/install
#### #### Running command: "make cmake_check_build_system" in "/home/john/projects/catkin_rosbag_ws/build" ####
-- Using CATKIN_DEVEL_PREFIX: /home/john/projects/catkin_rosbag_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/john/projects/catkin_rosbag_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/john/projects/catkin_rosbag_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/john/projects/catkin_rosbag_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:41 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:48 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 21 packages in topological order:
-- ~~  - image_pipeline (metapackage)
-- ~~  - ros_gpu_stereo_processor
-- ~~  - realsense2_description
-- ~~  - turtlebot3_simulations (metapackage)
-- ~~  - camera_calibration
-- ~~  - swim_data
-- ~~  - image_proc
-- ~~  - image_publisher
-- ~~  - ros_node_cpp
-- ~~  - stereo
-- ~~  - image_view
-- ~~  - stereo_image_proc
-- ~~  - swim_rosbag
-- ~~  - depth_image_proc
-- ~~  - my_realsense
-- ~~  - my_pcl_tutorial
-- ~~  - realsense2_camera
-- ~~  - image_rotate
-- ~~  - turtlebot3_fake
-- ~~  - turtlebot3_gazebo
-- ~~  - wass_data
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'image_pipeline'
-- ==> add_subdirectory(image_pipeline/image_pipeline)
-- +++ processing catkin package: 'ros_gpu_stereo_processor'
-- ==> add_subdirectory(ros_gpu_stereo_processor)
-- +++ processing catkin package: 'realsense2_description'
-- ==> add_subdirectory(realsense-ros/realsense2_description)
CMake Deprecation Warning at realsense-ros/realsense2_description/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or ...
(more)
edit retag flag offensive close merge delete