Problem when I do source /opt/ros/melodic/setup.bash
I get the below message when I try to source /opt/ros/melodic/setup.bash
bash: /bin/sed: Argument list too long
bash: /bin/sed: Argument list too long
bash: /usr/bin/env: Argument list too long
What I did?
I was trying to build tesseract_ros
from here.
I cloned it and navigated into the directory.
I was trying to install the dependencies, by running the below command
rosinstall /opt/ros/melodic dependencies.rosinstall
after this, I started getting those above messages.
I went inside /opt/ros/melodic
and found out that 6 packages are created inside /opt/ros/melodic.
I removed all those six packages, and I till get those messages.
Why don't you clone it to a workspace in home directory? It's better if you don't mess with /opt directory if you aren't sure of what you are doing.
I initially tried doing it in workspace directory only. I got some errors. I looked about that error on ROS answers, I followed a ROS answer, which lead me to this issue.