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

How to Correct wrong Environment setup?

asked 2014-09-30 10:48:45 -0600

GoBaxter gravatar image

updated 2014-09-30 10:54:56 -0600

I was trying to set up my environment variables and typed in the following code:

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

Later i realised i only had groovy, so i changed electric in above to groovy but whenever i try to run ros or baxter, always this message gets displayed that

bash: /opt/ros/electric/setup.bash: No such file or directory

My question is how to get the wrong environment set-up command disabled so that the irritating message is not displayed again and again? Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-30 10:54:41 -0600

dornhege gravatar image

Just remove all lines with electric from your ~/.bashrc with a text editor.

The second message seems to indicate that not roscore is running.

edit flag offensive delete link more


Where is ~/.bashrc located?

GoBaxter gravatar image GoBaxter  ( 2014-09-30 11:14:23 -0600 )edit

in your home directory

dornhege gravatar image dornhege  ( 2014-09-30 11:50:14 -0600 )edit

Thanks. That solved my problem.

GoBaxter gravatar image GoBaxter  ( 2014-09-30 12:41:00 -0600 )edit

Question Tools

1 follower


Asked: 2014-09-30 10:48:45 -0600

Seen: 152 times

Last updated: Sep 30 '14