Error while sourcing ROS Melodic

asked 2020-07-16 00:20:44 -0600

Vedant gravatar image

I recently installed ROS melodic on my system. While setting up my environment, I did :

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

This gives me the error

bash: export: `/opt/ros/melodic/setup.bash': not a valid identifier

whenever I source my .bashrc or .profile files. However when I manually do

source /opt/ros/melodic/setup.bash

no error occurs. How can I resolve this?

edit retag flag offensive close merge delete