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

sourcing setup.bash does not work in galactic

asked 2021-10-04 15:52:19 -0500

feri73 gravatar image

Hello,

So I installed ros2 galactic using the installation instructions, but when I use source /opt/ros/galactic/setup.bash it does not work, e.g. ros2 command is not found. That being said, when I use . ~/ros2_galactic/ros2-linux/setup.bash (mentioned in the installation instructions), it does do what it's supposed to do. Please help me!

Thank you

edit retag flag offensive close merge delete

Comments

Which installation instructions did you follow?

Geoff gravatar image Geoff  ( 2021-10-04 17:41:16 -0500 )edit
feri73 gravatar image feri73  ( 2021-10-04 17:46:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-04 23:06:00 -0500

Geoff gravatar image

As the instructions you followed say, when installing from a pre-built binary tarball you have to use source ~/ros2_galactic/ros2-linux/setup.bash to activate ROS. It has been installed to ~/ros2_galactic. If you want it installed in /opt/ros then you need to follow these instructions to install using Debian packages. This works on Ubuntu, despite the name of the package format.

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

2 followers

Stats

Asked: 2021-10-04 15:27:16 -0500

Seen: 362 times

Last updated: Oct 04 '21