ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

how to rosmake as sudo?

asked 2011-07-20 02:12:29 -0500

Bemfica gravatar image

updated 2014-01-28 17:10:04 -0500

ngrennan gravatar image

hi guys! I installed openni on a "old" laptop that doesn't support SSE3 instructions. So I did this modification on the CMakeLists.txt but I don't know how to rosmake it to generate the new node. I tried to rename ROS_NOBUILD but when I do rosmake I got this message:

mkdir: impossible create directory "build": Permission denied

thank you!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-07-20 02:15:44 -0500

Eric Perko gravatar image

I assume you installed from .debs. Changing files inside the .debs installed directories is not recommended (as any update at a later date could mess up your install). You should install from source following the directions for your OS and chosen ROS release.

edit flag offensive delete link more


It works Eric. Thank you
Bemfica gravatar image Bemfica  ( 2011-07-20 02:39:47 -0500 )edit

answered 2011-07-20 03:25:44 -0500

embeddedheaven gravatar image

you can switch to root account and run rosmake like "sudo rosmake" by

sudo -s <- change to root


rosmake <-- work like sudo rosmake

edit flag offensive delete link more

answered 2011-07-20 02:19:37 -0500

ben gravatar image

I'd suggest that you generally don't modify and recompile the stock installation but if you want to, then you need to:

sudo bash
. /opt/ros/diamondback/setup.bash   // assuming you have diamondback installed
roscd {desired package}
rm ROS_NOBUILD         // in each package that you want to recompile
edit flag offensive delete link more


by safety I'm trying the Eric suggestion first! but thank you :)
Bemfica gravatar image Bemfica  ( 2011-07-20 02:25:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-07-20 02:12:29 -0500

Seen: 1,712 times

Last updated: Jul 20 '11