ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

problem creating directory: /opt/ros/kinetic

asked 2016-09-29 15:28:45 -0500

DannyMB gravatar image

updated 2016-09-30 00:26:39 -0500

gvdhoorn gravatar image

Hi, I am trying install ROS kinetic in my Raspberry Pi 3 and have this error when I execute this command

./src/catkin/bin/catkin_make_isolated --install -  DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

I want say that is my first time that I working with RaspberryPi

-- catkin 0.7.4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/ros_catkin_ws/build_isolated/catkin
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:38 (file):
  file problem creating directory: /opt/ros/kinetic

Makefile:66: recipe for target 'install' failed
make: *** [install] Error 1
<== Failed to process package 'catkin': 
  Command '['make', 'install']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/catkin && make install

Command failed, exiting.

Anyody can help me? please

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-29 19:40:10 -0500

The error message mentions

problem creating directory: /opt/ros/kinetic

Do you have enough permissions to create that directory? Try with sudo:

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

image description

edit flag offensive delete link more


Thanks, I am going to try it

DannyMB gravatar image DannyMB  ( 2016-09-29 20:02:15 -0500 )edit

thank you, very usefull

VictorArias gravatar image VictorArias  ( 2018-04-02 02:27:33 -0500 )edit

Question Tools


Asked: 2016-09-29 15:28:45 -0500

Seen: 1,406 times

Last updated: Sep 30 '16