
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
3

Help with Installing packages and repositories

asked 2011-06-28 18:18:53 -0600

updated 2011-09-28 04:18:52 -0600

I am trying to install a few different packages but am at a loss on getting them to work.

For example, I am trying to install usb_cam and getting this error mkdir: cannot create directory `build': Permission denied

Also, when there is a repository how do I add it? I keep trying to find it in the documentation but if someone wouldn't mind giving me an example.

mary_tts or usb_cam would be a good working example for me to go by if someone doesn't mind helping.

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
9

answered 2011-06-28 21:22:36 -0600

updated 2011-06-29 04:36:34 -0600

Generally you should not install packages by hand in system directories such as /opt/ros/diamondback. People normally create an overlay in their home directory. An easy way of creating such an overlay (and installing stacks/packages) is by using rosinstall. To create an overlay in ~/ros, you can do the following:

rosinstall ~/ros /opt/ros/diamondback

Then replace the line

source /opt/ros/diamondback/setup.bash

in your ~/.bashrc with the line

source ~/ros/setup.bash

Now, if you want to install a new stack that is not available as a debian package (e.g. bosch_drivers which contains usb_cam), execute the following:

roslocate info bosch_drivers > ~/bosh_drivers.rosinstall
rosinstall ~/ros ~/bosh_drivers.rosinstall

After opening a new terminal to reload setup.bash you will have the package usb_cam in your package path and you should be able to rosmake it.

edit flag offensive delete link more
0

answered 2011-06-28 19:59:04 -0600

updated 2011-06-28 20:12:54 -0600

Well it seems I was just having a permission problem and I should have realized how to fix it. I tried changing the folder to 775 before but the trick in here helped. http://roslauragalindez.blogspot.com/2011/01/usbcam-and-rviz-compilation.html

This tutorial about building stacks should be on the main tutorial page. It was very hard to find. Anyone trying to find the how to install a stack from scratch or through SVN should check this out --> http://www.ros.org/wiki/ROS/Tutorials/StackInstallation

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

4 followers

Stats

Asked: 2011-06-28 18:18:53 -0600

Seen: 6,478 times

Last updated: Jun 29 '11
{"cc_re__cc_re__cc_by_sa_3_0_le": ["p> <p> <a href=\"/question/243756/ros-indigo-install-on-rpi3-urdf-compile-errors/\">ROS Indigo Install on RPI3 - URDF Compile Errors</a> </p> <p> <a href=\"/question/71071/problem-installing-openni-driver/\">Problem installing OpenNI driver</a> </p> <p> <a href=\"/question/405349/outbuf-size-mismatch-usb_cam/\">Outbuf size mismatch usb_cam</a> </p> </div> </div> <div class=\"box\"> </div> </div> </div> <!-- template footer.html --> <div id=\"ground\"> <div class=\"content-wrapper\"> <div class=\"copyright\"> <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\"> <img\n                            class=\"license-logo\"\n                            src=\"/m/default/media/images/cc-by-sa.png?v=28\"\n                            title=\"cc-by-sa\"\n                            alt=\"cc-by-sa\"\n                        /> </a>\n                \n                ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\">Creative Commons Attribution Share Alike 3.0</", "ss=\"content-wrapper\"> <div class=\"copyright\"> <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\"> <img\n                            class=\"license-logo\"\n                            src=\"/m/default/media/images/cc-by-sa.png?v=28\"\n                            title=\"cc-by-sa\"\n                            alt=\"cc-by-sa\"\n                        /> </a>\n                \n                ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\">Creative Commons Attribution Share Alike 3.0</a> license.\n\n            </div> <div class=\"footer-links\" > <a href=\"/about/\">about</a><span class=\"link-separator\"> |</span> <a href=\"/faq/\">faq</a><span class=\"link-separator\"> |</span> <a href=\"/help/\" title=\"help\">help</a> <span class=\"link-separator\"> |</span> <a href=\"/privacy/\">privacy policy</a><span class=\"link-separator\"> |</span> <a href=\"/terms/\">terms of service</a> </div> <div class=\"powered-link\"> <a href=\"http://askbot.com\" target=\"_b"], "copyright__copyright__copyright": [" be on the main tutorial page. It was very hard to find. Anyone trying to find the how to install a stack from scratch or through SVN should check this out --> http://www.ros.org/wiki/ROS/Tutorials/StackInstallation\n\nedit flag offensive delete link more\n\nYour Answer\n\nPlease start posting anonymously - your entry will be published after you log in or create a new account.\n\nAdd Answer\n\nQuestion Tools\n\n4 followers\n\nStats\n\nAsked: 2011-06-28 18:18:53 -0600\n\nSeen: 6,478 times\n\nLast updated: Jun 29 '11"]}