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

I encontered error when I run roscore.

asked 2015-06-30 01:39:10 -0500

Spring gravatar image

updated 2015-06-30 06:59:29 -0500

gvdhoorn gravatar image

I encontered error when I run roscore.

Roslaunch got a 'No such file or directory' error while attempting to run:

/opt/ros/fuerte/share/rosout/bin/rosout __name:=rosout __log:=/home/xcmai/.ros/log/6641ddba-1ef1-11e5-9ce7-782bcb967059/rosout-1.log

Please make sure that all the executables in this command exist and have
executable permission. This is often caused by a bad launch-prefix.

Can anyone know how to solve it?

Edit: Thank you, redskydeng.

I added ros environment variables, and then I ran roscore again. There was another error happening:

... logging to /home/epuck/.ros/log/b6a4138c-bfde-11d3-a726-8f981662d4a4/roslaunch-epuck1-987.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/opt/ros/fuerte/bin/rosversion", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.6/dist-packages/", line 2659, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/dist-packages/", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: rospkg==1.0.2
Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion ros] returned with code [1]. 

Param xml is <param command="rosversion ros" name="rosversion"/>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-30 05:33:48 -0500

Make sure that environment variables are set. It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

echo "source /opt/ros/fuerte/setup.bash" >> ~/.bashrc
source ~/.bashrc

You can check it with


You will see something like this:

edit flag offensive delete link more

Question Tools


Asked: 2015-06-30 01:39:10 -0500

Seen: 910 times

Last updated: Jun 30 '15