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

Install ROS Package Globally

asked 2014-08-08 08:59:16 -0500

rtoris288 gravatar image

I was wondering if it was possible to install a ROS package from source globally via catkin_make install? i.e., I would want the package installed into the /opt/ros/indigo/... location instead of the catkin workspace. The use case is for a package not in the build farm that we wanted all users on our robot to have access to.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-08 12:12:37 -0500

Dirk Thomas gravatar image

You can change the install location as for any CMake project ( ) by passing:

edit flag offensive delete link more


This had been working for me historically. However, it seems as of late catkin is not respecting the -DCMAKE_INSTALL_PREFIX option. Is this a regression? I'm running the latest version of Indigo as of 4/24/15.

Tom Panzarella gravatar image Tom Panzarella  ( 2015-04-24 11:04:27 -0500 )edit

OK. I have this sorted out now. It seems as though you need to specify the -DCMAKE_INSTALL_PREFIX when calling the install target instead of at compile time, which is what used to work. No big deal, just unexpected.

Tom Panzarella gravatar image Tom Panzarella  ( 2015-04-24 11:30:42 -0500 )edit

answered 2014-08-08 11:47:12 -0500

ahendrix gravatar image

/opt/ros/indigo is managed by the package manager, and it may overwrite files and directories there at any time, so I don't recommend installing packages into /opt/ros/indigo. (conversely, if the package manager finds files there that it isn't managing, it may fail to install future packages.)

As an alternative, you can create a global overlay that isn't managed by the package manager, and install packages from source there. /opt/ros/indigo_overlay or /opt/ros/indigo_local might be a good choices.

edit flag offensive delete link more


Good point, I think I'll do that with the -DCMAKE_INSTALL_PREFIX

rtoris288 gravatar image rtoris288  ( 2014-08-08 13:15:42 -0500 )edit

We've used /opt/ros/indigo/local in the past for this type of thing, but there isn't a strong convention around it.

mikepurvis gravatar image mikepurvis  ( 2014-08-08 14:29:07 -0500 )edit

Question Tools



Asked: 2014-08-08 08:59:16 -0500

Seen: 2,039 times

Last updated: Aug 08 '14