I carefully followed the install instructions for installing ROS2 Humble binary.


The install had no errors. And I did the talker-listener test to make sure.

But none of the ROS environment variables are set.

When I type printenv I don't see ROS_VERSION=2,ROS_PYTHON_VERSION=3 or ROS_DISTRO=humble.

The tutorials page just says to go back to the installation page or get help from the community. So here I am :)

Thanks in advance!


1 Answer 1


To have those environment variables exported in every command line automatically, the easiest thing to do is to add export VARIABLE_NAME=VALUE for each one at the end of the ~/.bashrc file.

After saving, you need to open a new terminal window or call source ~/.bashrc for the changes to take effect.


You shouldn't have to export those variables by yourself as those are taken care of by the setup.bash script inside your ros humble instalation.

Please make sure you have your ros installation sourced in ~/.bashrc via source /opt/ros/humble/setup.bash

Docs here

  • $\begingroup$ Thank you. I had forgotten the step of sourcing the setup.bash script. $\endgroup$
    – rosnoob
    Commented Sep 25, 2023 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.