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

Installing packages from source for all users

asked 2018-04-25 14:56:17 -0600

BrettHemes gravatar image

I would like to deploy a custom package and am having trouble getting it to work for all users on the machine. Currently I have my targets installable using CMake's install() and things are working fine for a single user (i.e., I install to some install space and then source the resulting setup.bash file).

My problem is when I try to move my install space somewhere for all users to access. Currently I am trying something to the effect of /usr/local/ros/kinetic/. If I set my install space as such I get write permission errors; catkin build with sudo seems wrong (environment setup issues); and installing locally and then copying/moving the resulting folder results in sourcing the resulting setup.bash having no effect.

I am using catkin-tools on Kinetic. Any advice would be greatly appreciated at this point.

-Brett

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-25 18:20:53 -0600

tfoote gravatar image

If you're having trouble with write permissions using sudo. I'd recommend changing the permissions temporarily for the install destination to allow user write permissions. And then turn that off again after you've completed the installation.

edit flag offensive delete link more

Comments

This is indeed an acceptable work-around.

@BrettHemes: I've used either sudo -E catkin_make install in the past (as catkin_make separates install phase from configure & build), or sudo -E catkin build .. as that should keep env vars around.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-26 02:06:18 -0600 )edit

"-E The -E (preserve environment) option indicates to the security policy that the user wishes to preserve their existing environment variables."

Nice!, I will try this out. Thanks!

BrettHemes gravatar image BrettHemes  ( 2018-04-26 08:08:13 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-04-25 14:56:17 -0600

Seen: 440 times

Last updated: Apr 25 '18