rospack command not found.
Hello all, while trying to build my package in ROS, after typing sudo make in the terminal, i have:
make: rospack: Command not found Makefile:1: /cmake.mk: No such file or directory make: * No rule to make target `/cmake.mk'. Stop.
I think that should be a permission problem, so that root can not see rospack. Can anyone help me with that please? How shall i solve this?
Thanks
ls -l total 212 drwxr-xr-x 13 root root 4096 Aug 13 13:13 build drwxr-xr-x 2 nazemi nazemi 4096 Aug 29 15:25 Desktop drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Documents drwxr-xr-x 3 nazemi nazemi 4096 Aug 27 12:53 Downloads -rw-r--r-- 1 nazemi nazemi 8445 Aug 13 10:16 examples.desktop drwxrwxr-x 8 nazemi nazemi 4096 Aug 16 13:37 fuerte -rw-rw-r-- 1 nazemi nazemi 147512 Aug 13 17:32 iniKarte.pgm -rw-rw-r-- 1 nazemi nazemi 136 Aug 13 17:32 iniKarte.yaml drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Music drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Pictures drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Public drwxr-xr-x 16 nazemi nazemi 4096 Aug 29 16:30 ros_stacks drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Templates drwxr-xr-x 2 nazemi nazemi 4096 Aug 13 10:21 Videos drwxr-xr-x 20 nazemi ...(more)
You shouldn't be doing make as root.
in this case i just have a pile of errors and warnings,as below: $ make [rospack] Warning: error while crawling /opt/ros/fuerte/stacks/openni_camera/info: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/fuerte/stacks/openni_camera/info" [rospack] Warning: error while looking for /opt/ros/fuerte/stacks/openni_camera/info/rospack_nosubdirs: boost::filesystem::status: Permission denied: "/opt/ros/fuerte/stacks/openni_camera/info/rospack_nosubdirs" [rospack] Warning: error while looking for /opt/ros/fuerte/stacks/openni_camera/info/manifest.xml: boost::filesystem::status: Permission denied: "/opt/ros/fuerte/stacks/openni_camera/info/manifest.xml" [rospack] Warning: error while crawling /opt/ros/fuerte/stacks/openni_camera/info: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/fuerte/stacks/openni_camera/info" [rospack] Warning: error while crawling /opt/ros/fuerte/stacks/openni_camera/launch: boost::filesystem::directory_iterato
If you have run make as root somewhere in your /opt/ros/fuerte folder, you've probably messed up the installation. Your best bet of recovery is to uninstall all ros-fuerte-* packages (using Synaptic, aptitude, whatever) and reinstall them. Then never run make as root again.
no i did not do that in /opt/ros/fuerte folder, but in the folder that my new package is placed: ~/ros_stacks/simple_navigation_goals$